Wikibase
MediaWiki Wikibase extension
|
Service object for triggering different kinds of page updates and generally notifying the local wiki of external changes. More...
Public Member Functions | |
__construct (JobQueueGroup $jobQueueGroup, LoggerInterface $logger, StatsdDataFactoryInterface $stats=null) | |
setPurgeCacheBatchSize ( $purgeCacheBatchSize) | |
setRecentChangesBatchSize ( $rcBatchSize) | |
scheduleRefreshLinks (array $titles, array $rootJobParams, $causeAction, $causeAgent) | |
Schedules RefreshLinks jobs for the given titles. | |
Public Member Functions inherited from Wikibase\Client\Changes\PageUpdater | |
purgeWebCache (array $titles, array $rootJobParams, $causeAction, $causeAgent) | |
Invalidates external web cached of the given pages. | |
injectRCRecords (array $titles, EntityChange $change, array $rootJobParams=[]) | |
Injects an RC entry into the recentchanges, using the given title and attribs. | |
Private Member Functions | |
incrementStats ( $updateType, $delta) | |
buildJobParams (array $titles, array $rootJobParams) | |
getPageParamForRefreshLinksJob (array $titles) | |
Private Attributes | |
$jobQueueGroup | |
$logger | |
$purgeCacheBatchSize = 300 | |
$rcBatchSize = 300 | |
$stats | |
Service object for triggering different kinds of page updates and generally notifying the local wiki of external changes.
Used by ChangeHandler as an interface to the local wiki.
Wikibase\Client\Changes\WikiPageUpdater::__construct | ( | JobQueueGroup | $jobQueueGroup, |
LoggerInterface | $logger, | ||
StatsdDataFactoryInterface | $stats = null |
||
) |
JobQueueGroup | $jobQueueGroup | |
LoggerInterface | $logger | |
StatsdDataFactoryInterface | null | $stats |
|
private |
Title[] | $titles | |
array | $rootJobParams |
|
private |
Title[] | $titles |
|
private |
string | $updateType | |
int | $delta |
Wikibase\Client\Changes\WikiPageUpdater::scheduleRefreshLinks | ( | array | $titles, |
array | $rootJobParams, | ||
$causeAction, | |||
$causeAgent | |||
) |
Schedules RefreshLinks jobs for the given titles.
Title[] | $titles | The Titles of the pages to update |
array | $rootJobParams | |
string | $causeAction | Triggering action |
string | $causeAgent | Triggering agent |
Implements Wikibase\Client\Changes\PageUpdater.
Wikibase\Client\Changes\WikiPageUpdater::setPurgeCacheBatchSize | ( | $purgeCacheBatchSize | ) |
int | $purgeCacheBatchSize |
Wikibase\Client\Changes\WikiPageUpdater::setRecentChangesBatchSize | ( | $rcBatchSize | ) |
int | $rcBatchSize |
|
private |
|
private |
|
private |
|
private |
|
private |