MediaWiki
master
ApiQueryDisabled.php
Go to the documentation of this file.
1
<?php
9
namespace
MediaWiki\Api
;
10
21
class
ApiQueryDisabled
extends
ApiQueryBase
{
22
23
public
function
execute
() {
24
$this->
addWarning
( [
'apierror-moduledisabled'
, $this->
getModuleName
() ] );
25
}
26
28
public
function
getSummaryMessage
() {
29
return
'apihelp-query+disabled-summary'
;
30
}
31
33
public
function
getExtendedDescription
() {
34
return
[ [
35
'apihelp-query+disabled-extended-description'
,
36
'api-help-no-extended-description'
,
37
] ];
38
}
39
}
40
42
class_alias( ApiQueryDisabled::class,
'ApiQueryDisabled'
);
MediaWiki\Api\ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition
ApiBase.php:543
MediaWiki\Api\ApiBase\addWarning
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition
ApiBase.php:1429
MediaWiki\Api\ApiQueryBase
This is a base class for all Query modules.
Definition
ApiQueryBase.php:31
MediaWiki\Api\ApiQueryDisabled
API module that does nothing.
Definition
ApiQueryDisabled.php:21
MediaWiki\Api\ApiQueryDisabled\getExtendedDescription
getExtendedDescription()
Return the extended help text message.This is additional text to display at the top of the help secti...
Definition
ApiQueryDisabled.php:33
MediaWiki\Api\ApiQueryDisabled\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition
ApiQueryDisabled.php:23
MediaWiki\Api\ApiQueryDisabled\getSummaryMessage
getSummaryMessage()
Return the summary message.This is a one-line description of the module, suitable for display in a li...
Definition
ApiQueryDisabled.php:28
MediaWiki\Api
Definition
ApiAcquireTempUserName.php:8
includes
Api
ApiQueryDisabled.php
Generated on Sun Nov 16 2025 00:23:05 for MediaWiki by
1.10.0