Page MenuHomeWickedGov Phorge

SpecialProtectPage.php
No OneTemporary

Size
780 B
Referenced Files
None
Subscribers
None

SpecialProtectPage.php

<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace MediaWiki\Specials;
use MediaWiki\SpecialPage\SpecialRedirectWithAction;
use SearchEngineFactory;
/**
* Redirect from Special:ProtectPage/$1 to index.php?title=$1&action=protect.
*
* @since 1.38
* @ingroup SpecialPage
* @author Zabe
*/
class SpecialProtectPage extends SpecialRedirectWithAction {
public function __construct(
SearchEngineFactory $searchEngineFactory
) {
parent::__construct( 'ProtectPage', 'protect', 'protectpage', $searchEngineFactory );
}
// Messages, for grep:
// specialprotectpage-page
// specialprotectpage-submit
}
/**
* Retain the old class name for backwards compatibility.
* @deprecated since 1.41
*/
class_alias( SpecialProtectPage::class, 'SpecialProtectPage' );

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 15:06 (5 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7c/61/c2a9e1ed3a68a22fe72732987bd1
Default Alt Text
SpecialProtectPage.php (780 B)

Event Timeline