* http://www.gnu.org/copyleft/gpl.html
*/
-if (!defined('MEDIAWIKI')) {
+if ( !defined( 'MEDIAWIKI' ) ) {
// Eclipse helper - will be ignored in production
- require_once ('ApiBase.php');
+ require_once ( 'ApiBase.php' );
}
/**
* This is a simple class to handle action=help
- *
- * @addtogroup API
+ *
+ * @ingroup API
*/
class ApiHelp extends ApiBase {
- public function __construct($main, $action) {
- parent :: __construct($main, $action);
+ public function __construct( $main, $action ) {
+ parent :: __construct( $main, $action );
}
/**
* Stub module for displaying help when no parameters are given
*/
public function execute() {
- $this->dieUsage('', 'help');
+ $this->dieUsage( '', 'help' );
}
public function shouldCheckMaxlag() {
return false;
}
- protected function getDescription() {
+ public function isReadMode() {
+ return false;
+ }
+
+ public function getDescription() {
return array (
'Display this help screen.'
);
return __CLASS__ . ': $Id$';
}
}
-