MediaWiki REL1_37
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 [ [
49 'apihelp-query+disabled-extended-description',
50 'api-help-no-extended-description',
51 ] ];
52 }
53}
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition ApiBase.php:1354
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:497
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.