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. | |
redirectUpdated (EntityRedirect $entityRedirect, $revisionId) | |
Called when a redirect is updated, created, or replaces an entity. | |
entityDeleted (EntityId $entityId) | |
Called when an entity or redirect is deleted. | |
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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.
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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.
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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.