Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5975355
ProtectAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
ProtectAction.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Actions
*/
namespace
MediaWiki\Actions
;
/**
* Handle page protection (action=protect)
*
* This is a wrapper that will call Article::protect().
*
* @ingroup Actions
*/
class
ProtectAction
extends
FormlessAction
{
/** @inheritDoc */
public
function
getName
()
{
return
'protect'
;
}
/** @inheritDoc */
public
function
onView
()
{
return
null
;
}
/** @inheritDoc */
public
function
show
()
{
$this
->
getArticle
()->
protect
();
}
/** @inheritDoc */
public
function
doesWrites
()
{
return
true
;
}
}
/** @deprecated class alias since 1.44 */
class_alias
(
ProtectAction
::
class
,
'ProtectAction'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:10 (7 h, 51 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a2/8d/c46a3c45dedb9f0bf3a57c0890b1
Default Alt Text
ProtectAction.php (675 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment