Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4111510
SpecialApiSandbox.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SpecialApiSandbox.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
MediaWiki\Specials
;
use
MediaWiki\SpecialPage\SpecialPage
;
/**
* Implements Special:ApiSandbox
*
* @since 1.27
* @ingroup SpecialPage
*/
class
SpecialApiSandbox
extends
SpecialPage
{
public
function
__construct
()
{
parent
::
__construct
(
'ApiSandbox'
);
}
/** @inheritDoc */
public
function
execute
(
$par
)
{
$this
->
setHeaders
();
$out
=
$this
->
getOutput
();
$this
->
addHelpLink
(
'Help:ApiSandbox'
);
$out
->
addJsConfigVars
(
'apihighlimits'
,
$this
->
getAuthority
()->
isAllowed
(
'apihighlimits'
)
);
$out
->
addModuleStyles
(
[
'mediawiki.special'
,
'mediawiki.hlist'
,
]
);
$out
->
addModules
(
[
'mediawiki.special.apisandbox'
,
'mediawiki.apipretty'
,
]
);
$out
->
wrapWikiMsg
(
"<div id='mw-apisandbox'><div class='mw-apisandbox-nojs error'>
\n
$1
\n
</div></div>"
,
'apisandbox-jsonly'
);
}
/** @inheritDoc */
protected
function
getGroupName
()
{
return
'wiki'
;
}
}
/** @deprecated class alias since 1.41 */
class_alias
(
SpecialApiSandbox
::
class
,
'SpecialApiSandbox'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 22:23 (1 d, 11 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/08/99a792b972a7c565e43ecb1eb78c
Default Alt Text
SpecialApiSandbox.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment