Wikibase
MediaWiki Wikibase extension
|
TODO this has been introduced into data-access with a couple of points that still bind to wikibase lib: More...
Public Member Functions | |
__construct (EntitySourceDefinitions $entitySourceDefinitions, array $singleSourceServices) | |
getPropertyInfoLookup () | |
getEntityStoreWatcher () | |
Returns a service that can be registered as a watcher to changes to entity data. More... | |
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... | |
Public Member Functions inherited from Wikibase\DataAccess\DataAccessServices | |
getEntityPrefetcher () | |
getEntityRevisionLookup () | |
Private Attributes | |
$entitySourceDefinitions | |
$singleSourceServices | |
$entityRevisionLookup = null | |
$entityPrefetcher = null | |
TODO this has been introduced into data-access with a couple of points that still bind to wikibase lib:
Wikibase\DataAccess\MultipleEntitySourceServices::__construct | ( | EntitySourceDefinitions | $entitySourceDefinitions, |
array | $singleSourceServices | ||
) |
EntitySourceDefinitions | $entitySourceDefinitions | |
SingleEntitySourceServices[] | $singleSourceServices | indexed by source name |
Wikibase\DataAccess\MultipleEntitySourceServices::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 |
Implements Wikibase\Lib\Store\EntityStoreWatcher.
Wikibase\DataAccess\MultipleEntitySourceServices::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 |
Implements Wikibase\Lib\Store\EntityStoreWatcher.
Wikibase\DataAccess\MultipleEntitySourceServices::getEntityStoreWatcher | ( | ) |
Returns a service that can be registered as a watcher to changes to entity data.
Such watcher gets notified when entity is updated or deleted, or when the entity redirect is updated.
Implements Wikibase\DataAccess\WikibaseServices.
Wikibase\DataAccess\MultipleEntitySourceServices::getPropertyInfoLookup | ( | ) |
Implements Wikibase\DataAccess\DataAccessServices.
Wikibase\DataAccess\MultipleEntitySourceServices::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 |
Implements Wikibase\Lib\Store\EntityStoreWatcher.
|
private |
|
private |
|
private |
|
private |