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 ApiDisabled extends ApiBase {
00042
00043 public function __construct($main, $action) {
00044 parent :: __construct($main, $action);
00045 }
00046
00047 public function execute() {
00048 $this->dieUsage("The ``{$this->getModuleName()}'' module has been disabled.", 'moduledisabled');
00049 }
00050
00051 public function isReadMode() {
00052 return false;
00053 }
00054
00055 public function getAllowedParams() {
00056 return array ();
00057 }
00058
00059 public function getParamDescription() {
00060 return array ();
00061 }
00062
00063 public function getDescription() {
00064 return array(
00065 'This module has been disabled.'
00066 );
00067 }
00068
00069 protected function getExamples() {
00070 return array ();
00071 }
00072
00073 public function getVersion() {
00074 return __CLASS__ . ': $Id: ApiDisabled.php 48091 2009-03-06 13:49:44Z catrope $';
00075 }
00076 }