Wikibase
MediaWiki Wikibase extension
|
Job for injecting RecentChange records representing changes on the Wikibase repository. More...
Public Member Functions | |
__construct (ClientDomainDb $domainDb, EntityChangeLookup $changeLookup, EntityChangeFactory $changeFactory, RecentChangeFactory $rcFactory, TitleFactory $titleFactory, array $params) | |
Constructs an InjectRCRecordsJob for injecting a change into the recentchanges feed for the given pages. More... | |
setRecentChangesFinder (RecentChangesFinder $rcDuplicateDetector) | |
setLogger (LoggerInterface $logger) | |
setStats (StatsdDataFactoryInterface $stats, StatsdDataFactoryInterface $perWikiStats=null) | |
run () | |
Static Public Member Functions | |
static | makeJobSpecification (array $titles, EntityChange $change, array $rootJobParams=[]) |
static | newFromGlobalState (Title $unused, array $params) |
Private Member Functions | |
getChange () | |
Returns the change that should be processed. More... | |
getTitles () | |
incrementStats (string $updateType, int $delta) | |
recordDelay (int $delay) | |
Private Attributes | |
$db | |
$changeLookup | |
$changeFactory | |
$rcFactory | |
$rcDuplicateDetector = null | |
$titleFactory | |
$logger | |
$stats = null | |
$perWikiStats = null | |
Job for injecting RecentChange records representing changes on the Wikibase repository.
Wikibase\Client\Changes\InjectRCRecordsJob::__construct | ( | ClientDomainDb | $domainDb, |
EntityChangeLookup | $changeLookup, | ||
EntityChangeFactory | $changeFactory, | ||
RecentChangeFactory | $rcFactory, | ||
TitleFactory | $titleFactory, | ||
array | $params | ||
) |
Constructs an InjectRCRecordsJob for injecting a change into the recentchanges feed for the given pages.
ClientDomainDb | $domainDb | |
EntityChangeLookup | $changeLookup | |
EntityChangeFactory | $changeFactory | |
RecentChangeFactory | $rcFactory | |
TitleFactory | $titleFactory | |
array | $params | Needs to have two keys: "change": the id of the change, "pages": array of pages, represented as $pageId => [ $namespace, $dbKey ]. |
InvalidArgumentException |
|
private |
Returns the change that should be processed.
EntityChange objects are loaded using a EntityChangeLookup.
|
private |
|
private |
string | $updateType | |
int | $delta |
|
static |
Title[] | $titles | |
EntityChange | $change | |
array | $rootJobParams |
|
static |
|
private |
Wikibase\Client\Changes\InjectRCRecordsJob::run | ( | ) |
Wikibase\Client\Changes\InjectRCRecordsJob::setLogger | ( | LoggerInterface | $logger | ) |
Wikibase\Client\Changes\InjectRCRecordsJob::setRecentChangesFinder | ( | RecentChangesFinder | $rcDuplicateDetector | ) |
Wikibase\Client\Changes\InjectRCRecordsJob::setStats | ( | StatsdDataFactoryInterface | $stats, |
StatsdDataFactoryInterface | $perWikiStats = null |
||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |