Page MenuHomeWickedGov Phorge

ProtectAction.php
No OneTemporary

Size
675 B
Referenced Files
None
Subscribers
None

ProtectAction.php

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

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)

Event Timeline