MediaWiki  1.34.4
ApiDisabled.php
Go to the documentation of this file.
1 <?php
33 class ApiDisabled extends ApiBase {
34 
35  public function execute() {
36  $this->dieWithError( [ 'apierror-moduledisabled', $this->getModuleName() ] );
37  }
38 
39  public function isReadMode() {
40  return false;
41  }
42 
43  protected function getSummaryMessage() {
44  return 'apihelp-disabled-summary';
45  }
46 
47  protected function getExtendedDescription() {
48  return 'apihelp-disabled-extended-description';
49  }
50 }
ApiDisabled\getExtendedDescription
getExtendedDescription()
Return the extended help text message.
Definition: ApiDisabled.php:47
ApiBase\dieWithError
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
Definition: ApiBase.php:2014
ApiDisabled\getSummaryMessage
getSummaryMessage()
Return the summary message.
Definition: ApiDisabled.php:43
ApiBase
This abstract class implements many basic API functions, and is the base of all API classes.
Definition: ApiBase.php:42
ApiDisabled\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiDisabled.php:35
ApiDisabled\isReadMode
isReadMode()
Indicates whether this module requires read rights.
Definition: ApiDisabled.php:39
ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition: ApiBase.php:520
ApiDisabled
API module that dies with an error immediately.
Definition: ApiDisabled.php:33