Wikibase
MediaWiki Wikibase extension
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 (EntityNamespaceLookup $localEntityNamespaceLookup, callable $jobQueueGroupFactory=null)
 
 onArticleRevisionVisibilitySet ( $title, $ids, $visibilityChangeMap)
 

Private Attributes

 $entityNamespaceLookup
 
 $jobQueueGroupFactory
 

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 ( EntityNamespaceLookup  $localEntityNamespaceLookup,
callable  $jobQueueGroupFactory = null 
)

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

◆ $jobQueueGroupFactory

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

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