MediaWiki  1.34.0
ApiQueryDisabled.php
Go to the documentation of this file.
1 <?php
34 
35  public function execute() {
36  $this->addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ] );
37  }
38 
39  public function getAllowedParams() {
40  return [];
41  }
42 
43  public function getSummaryMessage() {
44  return 'apihelp-query+disabled-summary';
45  }
46 
47  public function getExtendedDescription() {
48  return 'apihelp-query+disabled-extended-description';
49  }
50 }
ApiQueryDisabled\getSummaryMessage
getSummaryMessage()
Return the summary message.
Definition: ApiQueryDisabled.php:43
ApiBase\addWarning
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition: ApiBase.php:1933
ApiQueryDisabled\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiQueryDisabled.php:35
ApiQueryDisabled\getAllowedParams
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
Definition: ApiQueryDisabled.php:39
ApiQueryDisabled\getExtendedDescription
getExtendedDescription()
Return the extended help text message.
Definition: ApiQueryDisabled.php:47
ApiQueryBase
This is a base class for all Query modules.
Definition: ApiQueryBase.php:34
ApiQueryDisabled
API module that does nothing.
Definition: ApiQueryDisabled.php:33
ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition: ApiBase.php:520