MediaWiki master
ApiQueryDisabled.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Api;
24
36
37 public function execute() {
38 $this->addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ] );
39 }
40
41 public function getSummaryMessage() {
42 return 'apihelp-query+disabled-summary';
43 }
44
45 public function getExtendedDescription() {
46 return [ [
47 'apihelp-query+disabled-extended-description',
48 'api-help-no-extended-description',
49 ] ];
50 }
51}
52
54class_alias( ApiQueryDisabled::class, 'ApiQueryDisabled' );
getModuleName()
Get the name of the module being executed by this instance.
Definition ApiBase.php:571
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition ApiBase.php:1483
This is a base class for all Query modules.
API module that does nothing.
getExtendedDescription()
Return the extended help text message.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
getSummaryMessage()
Return the summary message.