Wikibase
MediaWiki Wikibase extension
|
Service for updating usage tracking and associated change subscription information. More...
Public Member Functions | |
__construct ( $clientId, UsageTracker $usageTracker, UsageLookup $usageLookup, SubscriptionManager $subscriptionManager) | |
addUsagesForPage ( $pageId, array $usages) | |
Adds entity usage information for the given page, and automatically adjusts any subscriptions based on that usage. More... | |
replaceUsagesForPage ( $pageId, array $usages) | |
Updates entity usage information for the given page, and automatically adjusts any subscriptions based on that usage. More... | |
pruneUsagesForPage ( $pageId) | |
Removes all usage information for the given page, and removes any subscriptions that have become unnecessary. More... | |
Private Member Functions | |
getEntityIds (array $entityUsages) | |
Private Attributes | |
$clientId | |
$usageTracker | |
$usageLookup | |
$subscriptionManager | |
Service for updating usage tracking and associated change subscription information.
Wikibase\Client\Store\UsageUpdater::__construct | ( | $clientId, | |
UsageTracker | $usageTracker, | ||
UsageLookup | $usageLookup, | ||
SubscriptionManager | $subscriptionManager | ||
) |
string | $clientId | |
UsageTracker | $usageTracker | |
UsageLookup | $usageLookup | |
SubscriptionManager | $subscriptionManager |
Wikibase\Client\Store\UsageUpdater::addUsagesForPage | ( | $pageId, | |
array | $usages | ||
) |
Adds entity usage information for the given page, and automatically adjusts any subscriptions based on that usage.
int | $pageId | The ID of the page the entities are used on. |
EntityUsage[] | $usages | A list of EntityUsage objects. See Usage tracking for details. |
InvalidArgumentException |
|
private |
EntityUsage[] | $entityUsages |
Wikibase\Client\Store\UsageUpdater::pruneUsagesForPage | ( | $pageId | ) |
Removes all usage information for the given page, and removes any subscriptions that have become unnecessary.
int | $pageId | The ID of the page the entities are used on. |
InvalidArgumentException |
Wikibase\Client\Store\UsageUpdater::replaceUsagesForPage | ( | $pageId, | |
array | $usages | ||
) |
Updates entity usage information for the given page, and automatically adjusts any subscriptions based on that usage.
int | $pageId | The ID of the page the entities are used on. |
EntityUsage[] | $usages | A list of EntityUsage objects. See Usage tracking for details. |
InvalidArgumentException |
|
private |
|
private |
|
private |
|
private |