Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F8102951
ApiQueryDisabled.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
911 B
Referenced Files
None
Subscribers
None
ApiQueryDisabled.php
View Options
<?php
/**
* Copyright © 2008 Roan Kattouw <roan.kattouw@gmail.com>
*
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Api
;
/**
* API module that does nothing
*
* Use this to disable core modules with e.g.
* $wgAPIPropModules['modulename'] = 'ApiQueryDisabled';
*
* To disable top-level modules, use ApiDisabled instead
*
* @ingroup API
*/
class
ApiQueryDisabled
extends
ApiQueryBase
{
public
function
execute
()
{
$this
->
addWarning
(
[
'apierror-moduledisabled'
,
$this
->
getModuleName
()
]
);
}
/** @inheritDoc */
public
function
getSummaryMessage
()
{
return
'apihelp-query+disabled-summary'
;
}
/** @inheritDoc */
public
function
getExtendedDescription
()
{
return
[
[
'apihelp-query+disabled-extended-description'
,
'api-help-no-extended-description'
,
]
];
}
}
/** @deprecated class alias since 1.43 */
class_alias
(
ApiQueryDisabled
::
class
,
'ApiQueryDisabled'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 8, 02:07 (1 d, 20 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7e/a2/60d24449ecc5c9566c18035cba47
Default Alt Text
ApiQueryDisabled.php (911 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment