MediaWiki  REL1_19
ApiDisabled.php
Go to the documentation of this file.
00001 <?php
00037 class ApiDisabled extends ApiBase {
00038 
00039         public function __construct( $main, $action ) {
00040                 parent::__construct( $main, $action );
00041         }
00042 
00043         public function execute() {
00044                 $this->dieUsage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled' );
00045         }
00046 
00047         public function isReadMode() {
00048                 return false;
00049         }
00050 
00051         public function getAllowedParams() {
00052                 return array();
00053         }
00054 
00055         public function getParamDescription() {
00056                 return array();
00057         }
00058 
00059         public function getDescription() {
00060                 return 'This module has been disabled';
00061         }
00062 
00063         public function getExamples() {
00064                 return array();
00065         }
00066 
00067         public function getVersion() {
00068                 return __CLASS__ . ': $Id$';
00069         }
00070 }