Service for updating usage tracking and associated change subscription information.
More...
|
| __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.
|
|
| replaceUsagesForPage ( $pageId, array $usages) |
| Updates entity usage information for the given page, and automatically adjusts any subscriptions based on that usage.
|
|
| pruneUsagesForPage ( $pageId) |
| Removes all usage information for the given page, and removes any subscriptions that have become unnecessary.
|
|
Service for updating usage tracking and associated change subscription information.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Marius Hoch
◆ __construct()
- Parameters
-
string | $clientId | |
UsageTracker | $usageTracker | |
UsageLookup | $usageLookup | |
SubscriptionManager | $subscriptionManager | |
◆ addUsagesForPage()
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.
- Parameters
-
int | $pageId | The ID of the page the entities are used on. |
EntityUsage[] | $usages | A list of EntityUsage objects. See Usage tracking for details. |
- See also
- UsageTracker::trackUsedEntities
- Exceptions
-
◆ getEntityIds()
Wikibase\Client\Store\UsageUpdater::getEntityIds |
( |
array | $entityUsages | ) |
|
|
private |
- Parameters
-
EntityUsage[] | $entityUsages | |
- Returns
- EntityId[]
◆ pruneUsagesForPage()
Wikibase\Client\Store\UsageUpdater::pruneUsagesForPage |
( |
| $pageId | ) |
|
Removes all usage information for the given page, and removes any subscriptions that have become unnecessary.
- Parameters
-
int | $pageId | The ID of the page the entities are used on. |
- See also
- UsageTracker::pruneUsages
- Exceptions
-
◆ replaceUsagesForPage()
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.
- Parameters
-
int | $pageId | The ID of the page the entities are used on. |
EntityUsage[] | $usages | A list of EntityUsage objects. See Usage tracking for details. |
- See also
- UsageTracker::replaceUsedEntities
- Exceptions
-
◆ $clientId
Wikibase\Client\Store\UsageUpdater::$clientId |
|
private |
◆ $subscriptionManager
Wikibase\Client\Store\UsageUpdater::$subscriptionManager |
|
private |
◆ $usageLookup
Wikibase\Client\Store\UsageUpdater::$usageLookup |
|
private |
◆ $usageTracker
Wikibase\Client\Store\UsageUpdater::$usageTracker |
|
private |
The documentation for this class was generated from the following file: