Job for injecting RecentChange records representing changes on the Wikibase repository.
More...
Job for injecting RecentChange records representing changes on the Wikibase repository.
- See also
- md_docs_topics_change-propagation for an overview of the change propagation mechanism.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Constructs an InjectRCRecordsJob for injecting a change into the recentchanges feed for the given pages.
- Parameters
-
ILBFactory | $lbFactory | |
EntityChangeLookup | $changeLookup | |
EntityChangeFactory | $changeFactory | |
RecentChangeFactory | $rcFactory | |
array | $params | Needs to have two keys: "change": the id of the change, "pages": array of pages, represented as $pageId => [ $namespace, $dbKey ]. |
- Exceptions
-
◆ getChange()
Wikibase\Client\Changes\InjectRCRecordsJob::getChange |
( |
| ) |
|
|
private |
Returns the change that should be processed.
EntityChange objects are loaded using a EntityChangeLookup.
- Returns
- EntityChange|null the change to process (or none).
◆ getTitles()
Wikibase\Client\Changes\InjectRCRecordsJob::getTitles |
( |
| ) |
|
|
private |
- Returns
- Title[] List of Titles to inject RC entries for, indexed by page ID
◆ incrementStats()
Wikibase\Client\Changes\InjectRCRecordsJob::incrementStats |
( |
|
$updateType, |
|
|
|
$delta |
|
) |
| |
|
private |
- Parameters
-
string | $updateType | |
int | $delta | |
◆ makeJobSpecification()
static Wikibase\Client\Changes\InjectRCRecordsJob::makeJobSpecification |
( |
array |
$titles, |
|
|
EntityChange |
$change, |
|
|
array |
$rootJobParams = [] |
|
) |
| |
|
static |
- Parameters
-
Title[] | $titles | |
EntityChange | $change | |
array | $rootJobParams | |
- Returns
- JobSpecification
◆ newFromGlobalState()
static Wikibase\Client\Changes\InjectRCRecordsJob::newFromGlobalState |
( |
Title |
$unused, |
|
|
array |
$params |
|
) |
| |
|
static |
◆ run()
Wikibase\Client\Changes\InjectRCRecordsJob::run |
( |
| ) |
|
◆ setLogger()
Wikibase\Client\Changes\InjectRCRecordsJob::setLogger |
( |
LoggerInterface |
$logger | ) |
|
◆ setRecentChangesFinder()
Wikibase\Client\Changes\InjectRCRecordsJob::setRecentChangesFinder |
( |
RecentChangesFinder |
$rcDuplicateDetector | ) |
|
◆ setStats()
Wikibase\Client\Changes\InjectRCRecordsJob::setStats |
( |
StatsdDataFactoryInterface |
$stats | ) |
|
◆ setTitleFactory()
Wikibase\Client\Changes\InjectRCRecordsJob::setTitleFactory |
( |
TitleFactory |
$titleFactory | ) |
|
◆ $changeFactory
Wikibase\Client\Changes\InjectRCRecordsJob::$changeFactory |
|
private |
◆ $changeLookup
Wikibase\Client\Changes\InjectRCRecordsJob::$changeLookup |
|
private |
◆ $lbFactory
Wikibase\Client\Changes\InjectRCRecordsJob::$lbFactory |
|
private |
◆ $logger
Wikibase\Client\Changes\InjectRCRecordsJob::$logger |
|
private |
◆ $rcDuplicateDetector
Wikibase\Client\Changes\InjectRCRecordsJob::$rcDuplicateDetector = null |
|
private |
◆ $rcFactory
Wikibase\Client\Changes\InjectRCRecordsJob::$rcFactory |
|
private |
◆ $stats
Wikibase\Client\Changes\InjectRCRecordsJob::$stats = null |
|
private |
◆ $titleFactory
Wikibase\Client\Changes\InjectRCRecordsJob::$titleFactory |
|
private |
The documentation for this class was generated from the following file: