Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7476015
WatchArticleHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
896 B
Referenced Files
None
Subscribers
None
WatchArticleHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Page\WikiPage
;
use
MediaWiki\Status\Status
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "WatchArticle" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
WatchArticleHook
{
/**
* This hook is called before a watch is added to an article.
*
* @since 1.35
*
* @param User $user User that will watch
* @param WikiPage $page WikiPage object to be watched
* @param Status &$status Status object to be returned if the hook returns false
* @param string|null $expiry Optional expiry timestamp in any format acceptable to wfTimestamp()
* @return bool|void True or no return value to continue or false to abort and
* return Status object
*/
public
function
onWatchArticle
(
$user
,
$page
,
&
$status
,
$expiry
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 10:10 (4 d, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
22/e0/b5877867cc3cc41deca34e0f8c63
Default Alt Text
WatchArticleHook.php (896 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment