MediaWiki
master
SpecialProtectPage.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Specials
;
22
23
use
MediaWiki\SpecialPage\SpecialRedirectWithAction
;
24
use
SearchEngineFactory
;
25
33
class
SpecialProtectPage
extends
SpecialRedirectWithAction
{
34
38
public
function
__construct
(
39
SearchEngineFactory
$searchEngineFactory
40
) {
41
parent::__construct(
'ProtectPage'
,
'protect'
,
'protectpage'
, $searchEngineFactory );
42
}
43
44
// Messages, for grep:
45
// specialprotectpage-page
46
// specialprotectpage-submit
47
}
48
53
class_alias( SpecialProtectPage::class,
'SpecialProtectPage'
);
MediaWiki\SpecialPage\SpecialRedirectWithAction
Definition
SpecialRedirectWithAction.php:36
MediaWiki\Specials\SpecialProtectPage
Redirect from Special:ProtectPage/$1 to index.php?title=$1&action=protect.
Definition
SpecialProtectPage.php:33
MediaWiki\Specials\SpecialProtectPage\__construct
__construct(SearchEngineFactory $searchEngineFactory)
Definition
SpecialProtectPage.php:38
SearchEngineFactory
Factory class for SearchEngine.
Definition
SearchEngineFactory.php:11
MediaWiki\Specials
includes
specials
SpecialProtectPage.php
Generated on Thu Dec 5 2024 09:25:06 for MediaWiki by
1.10.0