Job for notifying a client wiki of a batch of revision visibility changes on the repository.
More...
|
| __construct (ILoadBalancer $loadBalancer, array $params=[]) |
| Constructs a ChangeVisibilityNotificationJob for the repo revisions given.
|
|
| run () |
|
Job for notifying a client wiki of a batch of revision visibility changes on the repository.
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
Wikibase\Client\ChangeVisibilityNotificationJob::__construct |
( |
ILoadBalancer |
$loadBalancer, |
|
|
array |
$params = [] |
|
) |
| |
Constructs a ChangeVisibilityNotificationJob for the repo revisions given.
- Parameters
-
ILoadBalancer | $loadBalancer | |
array | $params | Contains the name of the repo, revisionIdentifiersJson to redact and the visibilityBitFlag to set. |
◆ filterCandidateResults()
Wikibase\Client\ChangeVisibilityNotificationJob::filterCandidateResults |
( |
IResultWrapper |
$candidateResults, |
|
|
array |
$revisionIdentifiers |
|
) |
| |
|
private |
- Parameters
-
IResultWrapper | $candidateResults | |
RepoRevisionIdentifier[] | $revisionIdentifiers | |
- Returns
- int[]
◆ getGroupedRepoRevisionIdentifiers()
Wikibase\Client\ChangeVisibilityNotificationJob::getGroupedRepoRevisionIdentifiers |
( |
| ) |
|
|
private |
- Returns
- RepoRevisionIdentifier[][]
◆ getRecentChangesToRedact()
Wikibase\Client\ChangeVisibilityNotificationJob::getRecentChangesToRedact |
( |
int |
$visibilityBitFlag | ) |
|
|
private |
- Parameters
-
- Returns
- int[] rc_ids to redact
◆ newFromGlobalState()
static Wikibase\Client\ChangeVisibilityNotificationJob::newFromGlobalState |
( |
Title |
$unused, |
|
|
array |
$params |
|
) |
| |
|
static |
◆ readRecentChangeParams()
Wikibase\Client\ChangeVisibilityNotificationJob::readRecentChangeParams |
( |
|
$rc_params | ) |
|
|
private |
Extracts the metadata array from the value of an rc_params field.
- Parameters
-
- Returns
- array
◆ redactRecentChanges()
Wikibase\Client\ChangeVisibilityNotificationJob::redactRecentChanges |
( |
array |
$rcIds, |
|
|
int |
$visibilityBitFlag |
|
) |
| |
|
private |
- Parameters
-
int[] | $rcIds | |
int | $visibilityBitFlag | Target rc_deleted bitflag (ignore entries that already have it) |
◆ run()
Wikibase\Client\ChangeVisibilityNotificationJob::run |
( |
| ) |
|
◆ selectCandidateResults()
Wikibase\Client\ChangeVisibilityNotificationJob::selectCandidateResults |
( |
string |
$entityIdSerialization, |
|
|
array |
$revisionIdentifiers, |
|
|
int |
$visibilityBitFlag |
|
) |
| |
|
private |
- Parameters
-
string | $entityIdSerialization | |
RepoRevisionIdentifier[] | $revisionIdentifiers | |
int | $visibilityBitFlag | Target rc_deleted bitflag (ignore rows that already have it) |
- Returns
- IResultWrapper
◆ unpackRevisionIdentifiers()
Wikibase\Client\ChangeVisibilityNotificationJob::unpackRevisionIdentifiers |
( |
string |
$revisionIdentifiersJson | ) |
|
|
private |
- Parameters
-
string | $revisionIdentifiersJson | |
- Returns
- RepoRevisionIdentifier[]
◆ $loadBalancer
Wikibase\Client\ChangeVisibilityNotificationJob::$loadBalancer |
|
private |
◆ $revisionIdentifiers
Wikibase\Client\ChangeVisibilityNotificationJob::$revisionIdentifiers |
|
private |
The documentation for this class was generated from the following file: