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