Wikibase
MediaWiki Wikibase extension
|
Service interface for tracking subscriptions of clients to entity change events generated on the repo. More...
Public Member Functions | |
subscribe ( $subscriber, array $entityIds) | |
Subscribes the given subscriber to notifications about changes on the specified entities. | |
unsubscribe ( $subscriber, array $entityIds) | |
Unsubscribes the given subscriber from notifications about changes on the specified entities. | |
Service interface for tracking subscriptions of clients to entity change events generated on the repo.
Wikibase\Client\Usage\SubscriptionManager::subscribe | ( | $subscriber, | |
array | $entityIds | ||
) |
Subscribes the given subscriber to notifications about changes on the specified entities.
string | $subscriber | Global site ID of the subscriber |
EntityId[] | $entityIds | The entities to subscribe to. |
UsageTrackerException |
Implemented in Wikibase\Client\Usage\NullSubscriptionManager, and Wikibase\Client\Usage\Sql\SqlSubscriptionManager.
Wikibase\Client\Usage\SubscriptionManager::unsubscribe | ( | $subscriber, | |
array | $entityIds | ||
) |
Unsubscribes the given subscriber from notifications about changes on the specified entities.
string | $subscriber | Global site ID of the subscriber |
EntityId[] | $entityIds | The entities to subscribe to. |
UsageTrackerException |
Implemented in Wikibase\Client\Usage\NullSubscriptionManager, and Wikibase\Client\Usage\Sql\SqlSubscriptionManager.