MediaWiki
REL1_40
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
16
interface
WatchArticleHook
{
29
public
function
onWatchArticle
( $user, $page, &$status, $expiry );
30
}
Status
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
Status.php:46
User
internal since 1.36
Definition
User.php:71
WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:75
MediaWiki\Hook\WatchArticleHook
This is a hook handler interface, see docs/Hooks.md.
Definition
WatchArticleHook.php:16
MediaWiki\Hook\WatchArticleHook\onWatchArticle
onWatchArticle( $user, $page, &$status, $expiry)
This hook is called before a watch is added to an article.
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
actions
Hook
WatchArticleHook.php
Generated on Thu Jun 27 2024 14:02:10 for MediaWiki by
1.10.0