Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 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.
 

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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.

◆ 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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.

◆ 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\DataAccess\MultipleEntitySourceServices, Wikibase\DataAccess\SingleEntitySourceServices, Wikibase\Lib\Store\CachingEntityRevisionLookup, Wikibase\Lib\Store\Sql\PrefetchingWikiPageEntityMetaDataAccessor, and Wikibase\Repo\Store\DispatchingEntityStoreWatcher.


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