MediaWiki  master
WatchArticleHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use Status;
6 use User;
7 use WikiPage;
8 
13 interface WatchArticleHook {
26  public function onWatchArticle( $user, $page, &$status, $expiry );
27 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MediaWiki\Hook\WatchArticleHook\onWatchArticle
onWatchArticle( $user, $page, &$status, $expiry)
This hook is called before a watch is added to an article.
WikiPage
Class representing a MediaWiki article and history.
Definition: WikiPage.php:54
MediaWiki\Hook\WatchArticleHook
Stable to implement.
Definition: WatchArticleHook.php:13
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:44
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:56