Wikibase
MediaWiki Wikibase extension
|
Watcher interface for watching an EntityStore. More...
Public Member Functions | |
entityUpdated (EntityRevision $entityRevision) | |
Called when an entity is updated, created, or replaces a redirect. More... | |
redirectUpdated (EntityRedirect $entityRedirect, $revisionId) | |
Called when a redirect is updated, created, or replaces an entity. More... | |
entityDeleted (EntityId $entityId) | |
Called when an entity or redirect is deleted. More... | |
Watcher interface for watching an EntityStore.
Wikibase\Lib\Store\EntityStoreWatcher::entityDeleted | ( | EntityId | $entityId | ) |
Called when an entity or redirect is deleted.
This is not called when an entity is replaced by a redirect or vice versa.
EntityId | $entityId |
Implemented in Wikibase\Repo\Store\DispatchingEntityStoreWatcher, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\DataAccess\SingleEntitySourceServices, and Wikibase\DataAccess\MultipleEntitySourceServices.
Wikibase\Lib\Store\EntityStoreWatcher::entityUpdated | ( | EntityRevision | $entityRevision | ) |
Called when an entity is updated, created, or replaces a redirect.
This is not called when an entity is deleted or replaced by a redirect.
EntityRevision | $entityRevision |
Implemented in Wikibase\Repo\Store\DispatchingEntityStoreWatcher, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\DataAccess\SingleEntitySourceServices, and Wikibase\DataAccess\MultipleEntitySourceServices.
Wikibase\Lib\Store\EntityStoreWatcher::redirectUpdated | ( | EntityRedirect | $entityRedirect, |
$revisionId | |||
) |
Called when a redirect is updated, created, or replaces an entity.
Not called when a redirect is deleted or replaced by an entity.
EntityRedirect | $entityRedirect | |
int | $revisionId |
Implemented in Wikibase\Repo\Store\DispatchingEntityStoreWatcher, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\DataAccess\SingleEntitySourceServices, and Wikibase\DataAccess\MultipleEntitySourceServices.