Wikibase
MediaWiki Wikibase extension
|
Job that propagates changes to the visibility of an article's revisions to clients. More...
Public Member Functions | |
__construct (Title $title, array $params=[]) | |
Public Member Functions inherited from Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob | |
__construct (string $jobName, Title $title, array $params) | |
initServices (EntityIdLookup $entityIdLookup, LoggerInterface $logger, JobQueueGroupFactory $jobQueueGroupFactory) | |
run () | |
Protected Member Functions | |
initFromGlobalState (MediaWikiServices $mwServices) | |
Protected Member Functions inherited from Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob | |
revisionIdentifiersToJson (array $revisionIdentifiers) | |
getChangeModificationNotificationJobs (EntityId $entityId) | |
Private Member Functions | |
getEligibleRevisionIdentifiersById (EntityId $entityId, array $ids) | |
Gets the timestamps of all revisions with the given IDs and returns repo revision identifiers for those that are relevant (=> no older than self::clientRCMaxAge). | |
getRevisionAge (string $timestamp) | |
createJobSpecification (string $revisionIdentifiersJson, int $visibilityBitFlag) | |
Returns a new job for updating a client. | |
Private Attributes | |
$revisionIds | |
$visibilityChangeMap | |
$jobBatchSize | |
$revisionLookup | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob | |
$clientRCMaxAge | |
$logger | |
Job that propagates changes to the visibility of an article's revisions to clients.
This job is scheduled by ArticleRevisionVisibilitySetHookHandler and schedules ChangeVisibilityNotification
jobs on all client wikis (all as some wikis might no longer be subscribed) which will handle this on the clients.
Wikibase\Repo\ChangeModification\DispatchChangeVisibilityNotificationJob::__construct | ( | Title | $title, |
array | $params = [] ) |
|
private |
Returns a new job for updating a client.
string | $revisionIdentifiersJson | |
int | $visibilityBitFlag |
|
private |
Gets the timestamps of all revisions with the given IDs and returns repo revision identifiers for those that are relevant (=> no older than self::clientRCMaxAge).
EntityId | $entityId | |
int[] | $ids |
|
private |
string | $timestamp |
|
protected |
Reimplemented from Wikibase\Repo\ChangeModification\DispatchChangeModificationNotificationJob.
|
private |
|
private |
|
private |
|
private |