Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler Class Reference

Hook handler that propagates changes to the visibility of an article's revisions to clients, through a job. More...

+ Inheritance diagram for Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler:
+ Collaboration diagram for Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler:

Public Member Functions

 __construct (JobQueueGroup $jobQueueGroup, EntityNamespaceLookup $localEntityNamespaceLookup)
 
 onArticleRevisionVisibilitySet ( $title, $ids, $visibilityChangeMap)
 

Private Attributes

 $entityNamespaceLookup
 
 $jobQueueGroup
 

Detailed Description

Hook handler that propagates changes to the visibility of an article's revisions to clients, through a job.

This schedules a DispatchChangeVisibilityNotification job, which will in turn schedule ChangeVisibilityNotification jobs on all client wikis (all as some wikis might no longer be subscribed) which will handle this on the clients. (Scheduling the client jobs directly in the hook handler may take too long for a web request.)

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::__construct ( JobQueueGroup $jobQueueGroup,
EntityNamespaceLookup $localEntityNamespaceLookup )

Member Function Documentation

◆ onArticleRevisionVisibilitySet()

Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::onArticleRevisionVisibilitySet ( $title,
$ids,
$visibilityChangeMap )
Parameters
Title$title
int[]$ids
int[][]$visibilityChangeMap

Member Data Documentation

◆ $entityNamespaceLookup

Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::$entityNamespaceLookup
private

◆ $jobQueueGroup

Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::$jobQueueGroup
private

The documentation for this class was generated from the following file: