MediaWiki
REL1_35
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
12
interface
ArticleProtectHook
{
24
public
function
onArticleProtect
( $wikiPage, $user, $protect, $reason );
25
}
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
WikiPage
Class representing a MediaWiki article and history.
Definition
WikiPage.php:51
MediaWiki\Page\Hook\ArticleProtectHook
Stable to implement.
Definition
ArticleProtectHook.php:12
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 Sat Apr 6 2024 00:07:34 for MediaWiki by
1.9.8