Page MenuHomeWickedGov Phorge

ApiQueryDisabled.php
No OneTemporary

Size
911 B
Referenced Files
None
Subscribers
None

ApiQueryDisabled.php

<?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

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)

Event Timeline