Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob Class Reference

Job for notifying a client wiki of a batch of revision visibility changes on the repository. More...

+ Inheritance diagram for Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob:
+ Collaboration diagram for Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob:

Public Member Functions

 __construct (ClientDomainDb $clientDb, int $batchSize, array $params=[])
 Constructs a ChangeVisibilityNotificationJob for the repo revisions given.
 
- Public Member Functions inherited from Wikibase\Client\ChangeModification\ChangeModificationNotificationJob
 __construct (string $jobName, ClientDomainDb $clientDb, array $params=[])
 
 run ()
 

Static Public Member Functions

static newFromGlobalState (Title $unused, array $params)
 

Protected Member Functions

 modifyChanges (array $relevantChanges)
 
- Protected Member Functions inherited from Wikibase\Client\ChangeModification\ChangeModificationNotificationJob
 getRelevantRecentChanges ()
 

Private Attributes

 $batchSize
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Client\ChangeModification\ChangeModificationNotificationJob
 $clientDb
 

Detailed Description

Job for notifying a client wiki of a batch of revision visibility changes on the repository.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob::__construct ( ClientDomainDb $clientDb,
int $batchSize,
array $params = [] )

Constructs a ChangeVisibilityNotificationJob for the repo revisions given.

Parameters
ClientDomainDb$clientDb
int$batchSize
array$paramsContains the name of the repo, revisionIdentifiersJson to redact and the visibilityBitFlag to set.

Member Function Documentation

◆ modifyChanges()

Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob::modifyChanges ( array $relevantChanges)
protected
Parameters
int[]$relevantChanges

Reimplemented from Wikibase\Client\ChangeModification\ChangeModificationNotificationJob.

◆ newFromGlobalState()

static Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob::newFromGlobalState ( Title $unused,
array $params )
static

Member Data Documentation

◆ $batchSize

Wikibase\Client\ChangeModification\ChangeVisibilityNotificationJob::$batchSize
private

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