Wikibase
MediaWiki Wikibase extension
|
Hook handlers for triggering data updates. More...
Public Member Functions | |
__construct (UsageUpdater $usageUpdater, JobQueueGroup $jobScheduler, UsageLookup $usageLookup, EntityUsageFactory $entityUsageFactory) | |
onArticleDeleteComplete ( $wikiPage, $user, $reason, $id, $content, $logEntry, $archivedRevisionCount) | |
Static handler for ArticleDeleteComplete. | |
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 | newFromGlobalState () |
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 | |
$entityUsageFactory | |
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, | ||
EntityUsageFactory | $entityUsageFactory | ||
) |
Wikibase\Client\Hooks\DataUpdateHookHandler::doLinksUpdateComplete | ( | LinksUpdate | $linksUpdate | ) |
|
static |
Wikibase\Client\Hooks\DataUpdateHookHandler::onArticleDeleteComplete | ( | $wikiPage, | |
$user, | |||
$reason, | |||
$id, | |||
$content, | |||
$logEntry, | |||
$archivedRevisionCount | |||
) |
Static handler for ArticleDeleteComplete.
WikiPage | $wikiPage | WikiPage that was deleted |
User | $user | User that deleted the article |
string | $reason | Reason the article was deleted |
int | $id | ID of the article that was deleted |
Content | null | $content | Content of the deleted page (or null, when deleting a broken page) |
\ManualLogEntry | $logEntry | ManualLogEntry used to record the deletion |
int | $archivedRevisionCount | Number of revisions archived during the deletion |
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::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 |