Hook handler that propagates changes to the visibility of an article's revisions to clients, through a job.
More...
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.)
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::__construct |
( |
EntityNamespaceLookup |
$localEntityNamespaceLookup, |
|
|
callable |
$jobQueueGroupFactory = null |
|
) |
| |
◆ onArticleRevisionVisibilitySet()
Wikibase\Repo\Hooks\ArticleRevisionVisibilitySetHookHandler::onArticleRevisionVisibilitySet |
( |
|
$title, |
|
|
|
$ids, |
|
|
|
$visibilityChangeMap |
|
) |
| |
- Parameters
-
Title | $title | |
int[] | $ids | |
int[][] | $visibilityChangeMap | |
◆ $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: