00001 <?php 00002 00025 if ( !defined( 'MEDIAWIKI' ) ) { 00026 // Eclipse helper - will be ignored in production 00027 require_once( "ApiBase.php" ); 00028 } 00029 00040 class ApiDisabled extends ApiBase { 00041 00042 public function __construct( $main, $action ) { 00043 parent::__construct( $main, $action ); 00044 } 00045 00046 public function execute() { 00047 $this->dieUsage( "The ``{$this->getModuleName()}'' module has been disabled.", 'moduledisabled' ); 00048 } 00049 00050 public function isReadMode() { 00051 return false; 00052 } 00053 00054 public function getAllowedParams() { 00055 return array(); 00056 } 00057 00058 public function getParamDescription() { 00059 return array(); 00060 } 00061 00062 public function getDescription() { 00063 return array( 00064 'This module has been disabled.' 00065 ); 00066 } 00067 00068 protected function getExamples() { 00069 return array(); 00070 } 00071 00072 public function getVersion() { 00073 return __CLASS__ . ': $Id: ApiDisabled.php 62783 2010-02-21 18:09:00Z ashley $'; 00074 } 00075 }