MediaWiki REL1_30
ApiQueryDisabled.php
Go to the documentation of this file.
1<?php
38
39 public function execute() {
40 $this->addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ] );
41 }
42
43 public function getAllowedParams() {
44 return [];
45 }
46
47 public function getDescriptionMessage() {
48 return 'apihelp-query+disabled-summary';
49 }
50
51 public function getSummaryMessage() {
52 return 'apihelp-query+disabled-summary';
53 }
54
55 public function getExtendedDescription() {
56 return 'apihelp-query+disabled-extended-description';
57 }
58}
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition ApiBase.php:1779
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:512
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.