Wikibase
MediaWiki Wikibase extension
|
Hook handlers for triggering data updates. More...
Public Member Functions | |
__construct (UsageUpdater $usageUpdater, JobQueueGroup $jobScheduler, UsageLookup $usageLookup, UsageAccumulatorFactory $usageAccumulatorFactory, ?LoggerInterface $logger=null) | |
onPageDeleteComplete (ProperPageIdentity $page, Authority $deleter, string $reason, int $pageID, RevisionRecord $deletedRev, ManualLogEntry $logEntry, int $archivedRevisionCount) | |
onLinksUpdateComplete ( $linksUpdate, $ticket) | |
Triggered when a page gets re-rendered to update secondary link tables. | |
doLinksUpdateComplete (LinksUpdate $linksUpdate) | |
onParserCacheSaveComplete ( $parserCache, $parserOutput, $title, $popts, $revId) | |
Triggered when a new rendering of a page is committed to the ParserCache. | |
Static Public Member Functions | |
static | factory (JobQueueGroup $jobQueueGroup, LoggerInterface $logger, ClientStore $store, UsageAccumulatorFactory $usageAccumulatorFactory) |
Private Member Functions | |
reindexEntityUsages (array $usages) | |
Re-indexes the given list of EntityUsages so that each EntityUsage can be found by using its string representation as a key. | |
Private Attributes | |
$usageUpdater | |
$jobScheduler | |
$usageLookup | |
$usageAccumulatorFactory | |
$logger | |
Hook handlers for triggering data updates.
This class has a static interface for use with MediaWiki's hook mechanism; the static handler functions will create a new instance of DataUpdateHookHandler and then call the corresponding member function on that.
Wikibase\Client\Hooks\DataUpdateHookHandler::__construct | ( | UsageUpdater | $usageUpdater, |
JobQueueGroup | $jobScheduler, | ||
UsageLookup | $usageLookup, | ||
UsageAccumulatorFactory | $usageAccumulatorFactory, | ||
?LoggerInterface | $logger = null ) |
Wikibase\Client\Hooks\DataUpdateHookHandler::doLinksUpdateComplete | ( | LinksUpdate | $linksUpdate | ) |
|
static |
Wikibase\Client\Hooks\DataUpdateHookHandler::onLinksUpdateComplete | ( | $linksUpdate, | |
$ticket ) |
Triggered when a page gets re-rendered to update secondary link tables.
Implemented to update usage tracking information via UsageUpdater.
LinksUpdate | $linksUpdate | |
mixed | $ticket | Prior result of LBFactory::getEmptyTransactionTicket() |
Wikibase\Client\Hooks\DataUpdateHookHandler::onPageDeleteComplete | ( | ProperPageIdentity | $page, |
Authority | $deleter, | ||
string | $reason, | ||
int | $pageID, | ||
RevisionRecord | $deletedRev, | ||
ManualLogEntry | $logEntry, | ||
int | $archivedRevisionCount ) |
Wikibase\Client\Hooks\DataUpdateHookHandler::onParserCacheSaveComplete | ( | $parserCache, | |
$parserOutput, | |||
$title, | |||
$popts, | |||
$revId ) |
Triggered when a new rendering of a page is committed to the ParserCache.
Implemented to update usage tracking information via UsageUpdater.
ParserCache | $parserCache | ParserCache object $parserOutput was stored in |
ParserOutput | $parserOutput | ParserOutput object that was stored |
Title | $title | Title of the page that was parsed to generate $parserOutput |
ParserOptions | $popts | ParserOptions used for generating $parserOutput |
int | $revId | ID of the revision that was parsed to create $parserOutput |
|
private |
Re-indexes the given list of EntityUsages so that each EntityUsage can be found by using its string representation as a key.
EntityUsage[] | $usages |
InvalidArgumentException |
|
private |
|
private |
|
private |
|
private |
|
private |