00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 if ( !defined( 'MEDIAWIKI' ) ) {
00026
00027 require_once ( "ApiBase.php" );
00028 }
00029
00030
00041 class ApiQueryDisabled extends ApiQueryBase {
00042
00043 public function __construct( $main, $action ) {
00044 parent :: __construct( $main, $action );
00045 }
00046
00047 public function execute() {
00048 $this->setWarning( "The ``{$this->getModuleName()}'' module has been disabled." );
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 array(
00061 'This module has been disabled.'
00062 );
00063 }
00064
00065 protected function getExamples() {
00066 return array ();
00067 }
00068
00069 public function getVersion() {
00070 return __CLASS__ . ': $Id: ApiQueryDisabled.php 60930 2010-01-11 15:55:52Z simetrical $';
00071 }
00072 }