MediaWiki
master
ApiQueryDisabled.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Api
;
24
35
class
ApiQueryDisabled
extends
ApiQueryBase
{
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
54
class_alias( ApiQueryDisabled::class,
'ApiQueryDisabled'
);
MediaWiki\Api\ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition
ApiBase.php:571
MediaWiki\Api\ApiBase\addWarning
addWarning( $msg, $code=null, $data=null)
Add a warning for this module.
Definition
ApiBase.php:1483
MediaWiki\Api\ApiQueryBase
This is a base class for all Query modules.
Definition
ApiQueryBase.php:45
MediaWiki\Api\ApiQueryDisabled
API module that does nothing.
Definition
ApiQueryDisabled.php:35
MediaWiki\Api\ApiQueryDisabled\getExtendedDescription
getExtendedDescription()
Return the extended help text message.
Definition
ApiQueryDisabled.php:45
MediaWiki\Api\ApiQueryDisabled\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition
ApiQueryDisabled.php:37
MediaWiki\Api\ApiQueryDisabled\getSummaryMessage
getSummaryMessage()
Return the summary message.
Definition
ApiQueryDisabled.php:41
MediaWiki\Api
Definition
ApiAcquireTempUserName.php:22
includes
api
ApiQueryDisabled.php
Generated on Fri Feb 14 2025 07:23:27 for MediaWiki by
1.10.0