Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4108310
PageViewUpdatesHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
PageViewUpdatesHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\User\User
;
use
WikiPage
;
/**
* 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
Tue, Aug 18, 20:30 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c1/b1/acfad421183f012ce8c813373357
Default Alt Text
PageViewUpdatesHook.php (743 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment