MediaWiki  1.23.1
ApiDisabled.php
Go to the documentation of this file.
1 <?php
37 class ApiDisabled extends ApiBase {
38 
39  public function execute() {
40  $this->dieUsage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled' );
41  }
42 
43  public function isReadMode() {
44  return false;
45  }
46 
47  public function getAllowedParams() {
48  return array();
49  }
50 
51  public function getParamDescription() {
52  return array();
53  }
54 
55  public function getDescription() {
56  return 'This module has been disabled.';
57  }
58 
59  public function getExamples() {
60  return array();
61  }
62 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ApiBase
This abstract class implements many basic API functions, and is the base of all API classes.
Definition: ApiBase.php:42
ApiDisabled\getDescription
getDescription()
Returns the description string for this module.
Definition: ApiDisabled.php:55
ApiDisabled\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiDisabled.php:39
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
ApiDisabled\getExamples
getExamples()
Returns usage examples for this module.
Definition: ApiDisabled.php:59
ApiDisabled\getParamDescription
getParamDescription()
Returns an array of parameter descriptions.
Definition: ApiDisabled.php:51
ApiBase\dieUsage
dieUsage( $description, $errorCode, $httpRespCode=0, $extradata=null)
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an...
Definition: ApiBase.php:1363
ApiDisabled\isReadMode
isReadMode()
Indicates whether this module requires read rights.
Definition: ApiDisabled.php:43
ApiDisabled\getAllowedParams
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
Definition: ApiDisabled.php:47
ApiDisabled
API module that dies with an error immediately.
Definition: ApiDisabled.php:37