MediaWiki REL1_39
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 getSummaryMessage() {
40 return 'apihelp-query+disabled-summary';
41 }
42
43 public function getExtendedDescription() {
44 return [ [
45 'apihelp-query+disabled-extended-description',
46 'api-help-no-extended-description',
47 ] ];
48 }
49}
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition ApiBase.php:1372
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:498
This is a base class for all Query modules.
API module that does nothing.
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.