Wikibase
MediaWiki Wikibase extension
|
Hook handler that propagates changes to the visibility of an article's revisions to clients. More...
Public Member Functions | |
__construct (RevisionLookup $revisionLookup, EntityContentFactory $entityContentFactory, EntityNamespaceLookup $entityNamespaceLookup, TitleFactory $titleFactory, array $localClientDatabases, callable $jobQueueGroupFactory, bool $propagateChangeVisibility, int $clientRCMaxAge, int $jobBatchSize) | |
Static Public Member Functions | |
static | newFromGlobalState () |
Private Member Functions | |
getEligibleRevisionsById (array $ids) | |
Gets all revisions with the given ids and returns those that are relevant (=> no older than self::clientRCMaxAge). | |
getRepoRevisionIdentifiers (array $revisions) | |
newRepoRevisionIdentifier (RevisionRecord $revision) | |
getRevisionAge (RevisionRecord $revision) | |
newJobQueueGroup (string $wikiId) | |
revisionIdentifiersToJson (array $revisionIdentifiers) | |
JSON encode the given RepoRevisionIdentifiers. | |
createJobSpecification (string $revisionIdentifiersJson, int $visibilityBitFlag) | |
Returns a new job for updating a client. | |
Private Attributes | |
$revisionLookup | |
$entityContentFactory | |
$entityNamespaceLookup | |
$titleFactory | |
$localClientDatabases | |
$propagateChangeVisibility | |
$clientRCMaxAge | |
$jobBatchSize | |
$jobQueueGroupFactory | |
Hook handler that propagates changes to the visibility of an article's revisions to clients.
This 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\Hooks\ArticleRevisionVisibilitySetHookHandler::__construct | ( | RevisionLookup | $revisionLookup, |
EntityContentFactory | $entityContentFactory, | ||
EntityNamespaceLookup | $entityNamespaceLookup, | ||
TitleFactory | $titleFactory, | ||
array | $localClientDatabases, | ||
callable | $jobQueueGroupFactory, | ||
bool | $propagateChangeVisibility, | ||
int | $clientRCMaxAge, | ||
int | $jobBatchSize | ||
) |
|
private |
Returns a new job for updating a client.
string | $revisionIdentifiersJson | |
int | $visibilityBitFlag |
|
private |
Gets all revisions with the given ids and returns those that are relevant (=> no older than self::clientRCMaxAge).
int[] | $ids |
|
private |
RevisionRecord[] | $revisions |
|
private |
RevisionRecord | $revision |
|
static |
|
private |
string | $wikiId |
|
private |
RevisionRecord | $revision |
|
private |
JSON encode the given RepoRevisionIdentifiers.
RepoRevisionIdentifier[] | $revisionIdentifiers |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |