MediaWiki  master
Go to the documentation of this file.
1 <?php
3 namespace MediaWiki\Hook;
5 use Status;
6 use User;
7 use WikiPage;
16 interface WatchArticleHook {
29  public function onWatchArticle( $user, $page, &$status, $expiry );
30 }
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:46
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:70
Base representation for an editable wiki page.
Definition: WikiPage.php:72
This is a hook handler interface, see docs/
onWatchArticle( $user, $page, &$status, $expiry)
This hook is called before a watch is added to an article.