Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\EntityStoreWatcher Interface Reference

Watcher interface for watching an EntityStore. More...

+ Inheritance diagram for Wikibase\Lib\Store\EntityStoreWatcher:

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...
 

Detailed Description

Watcher interface for watching an EntityStore.

Author
Daniel Kinzler

Member Function Documentation

◆ entityDeleted()

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.

Parameters
EntityId$entityId

Implemented in Wikibase\Repo\Store\DispatchingEntityStoreWatcher, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\DataAccess\SingleEntitySourceServices, and Wikibase\DataAccess\MultipleEntitySourceServices.

◆ entityUpdated()

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.

Parameters
EntityRevision$entityRevision

Implemented in Wikibase\Repo\Store\DispatchingEntityStoreWatcher, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\DataAccess\SingleEntitySourceServices, and Wikibase\DataAccess\MultipleEntitySourceServices.

◆ redirectUpdated()

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.

Parameters
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.


The documentation for this interface was generated from the following file: