ApiBlock.php: spacing & coding style tweaks, more braces, fixed copyright symbol
[lhc/web/wiklou.git] / includes / api / ApiHelp.php
index 21150a6..a089222 100644 (file)
  * 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.'
                );
@@ -60,4 +64,3 @@ class ApiHelp extends ApiBase {
                return __CLASS__ . ': $Id$';
        }
 }
-