MediaWiki
REL1_40
ArticleProtectHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page\Hook
;
4
5
use
User
;
6
use
WikiPage
;
7
15
interface
ArticleProtectHook
{
27
public
function
onArticleProtect
( $wikiPage, $user, $protect, $reason );
28
}
User
internal since 1.36
Definition
User.php:71
WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:75
MediaWiki\Page\Hook\ArticleProtectHook
This is a hook handler interface, see docs/Hooks.md.
Definition
ArticleProtectHook.php:15
MediaWiki\Page\Hook\ArticleProtectHook\onArticleProtect
onArticleProtect( $wikiPage, $user, $protect, $reason)
This hook is called before an article is protected.
MediaWiki\Page\Hook
Definition
Article__MissingArticleConditionsHook.php:3
includes
page
Hook
ArticleProtectHook.php
Generated on Thu Jun 27 2024 14:03:29 for MediaWiki by
1.10.0