Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4141501
PageViewUpdatesHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
PageViewUpdatesHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Page\WikiPage
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PageViewUpdates" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PageViewUpdatesHook
{
/**
* Use this hook to make database (or other) changes after a
* page view is seen by MediaWiki. Note this does not capture views made
* via external caches such as Squid.
*
* @since 1.35
*
* @param WikiPage $wikipage Page being viewed
* @param User $user User who is viewing
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onPageViewUpdates
(
$wikipage
,
$user
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 15:58 (3 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8b/c0/e960661e1131c73c6938b85bae0d
Default Alt Text
PageViewUpdatesHook.php (758 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment