MediaWiki REL1_32
ApiDisabled.php
Go to the documentation of this file.
1<?php
33class 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 getDescriptionMessage() {
44 return 'apihelp-disabled-summary';
45 }
46
47 protected function getSummaryMessage() {
48 return 'apihelp-disabled-summary';
49 }
50
51 protected function getExtendedDescription() {
52 return 'apihelp-disabled-extended-description';
53 }
54}
This abstract class implements many basic API functions, and is the base of all API classes.
Definition ApiBase.php:37
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
Definition ApiBase.php:1987
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:539
API module that dies with an error immediately.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
getSummaryMessage()
Return the summary message.
getExtendedDescription()
Return the extended help text message.
getDescriptionMessage()
Return the description message.
isReadMode()
Indicates whether this module requires read rights.