MediaWiki REL1_31
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 getDescriptionMessage() {
44 return 'apihelp-query+disabled-summary';
45 }
46
47 public function getSummaryMessage() {
48 return 'apihelp-query+disabled-summary';
49 }
50
51 public function getExtendedDescription() {
52 return 'apihelp-query+disabled-extended-description';
53 }
54}
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition ApiBase.php:1819
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:521
This is a base class for all Query modules.
API module that does nothing.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
getSummaryMessage()
Return the summary message.
getExtendedDescription()
Return the extended help text message.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
getDescriptionMessage()
Return the description message.