Wikibase
MediaWiki Wikibase extension
|
Collection of services for a single EntitySource. More...
Public Member Functions | |
__construct (EntityIdParser $entityIdParser, EntityIdComposer $entityIdComposer, Deserializer $dataValueDeserializer, NameTableStore $slotRoleStore, DataAccessSettings $dataAccessSettings, EntitySource $entitySource, LanguageFallbackChainFactory $languageFallbackChainFactory, Serializer $storageEntitySerializer, RepoDomainDb $repoDb, array $deserializerFactoryCallbacks, array $entityMetaDataAccessorCallbacks, array $prefetchingTermLookupCallbacks, array $entityRevisionFactoryLookupCallbacks) | |
getEntitySource () | |
getEntityPrefetcher () | |
getPropertyInfoLookup () | |
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... | |
Private Member Functions | |
assertCallbackArrayTypes (array $deserializerFactoryCallbacks, array $entityMetaDataAccessorCallbacks, array $prefetchingTermLookupCallbacks, array $entityRevisionFactoryLookupCallbacks) | |
getEntityDeserializer () | |
getEntityMetaDataAccessor () | |
Collection of services for a single EntitySource.
Some generic services are injected alongside some more specific services for the EntitySource. Various logic then pulls these services together into more composed services.
TODO fixme, lots of things in this class bind to wikibase lib and mediawiki directly.
Wikibase\DataAccess\SingleEntitySourceServices::__construct | ( | EntityIdParser | $entityIdParser, |
EntityIdComposer | $entityIdComposer, | ||
Deserializer | $dataValueDeserializer, | ||
NameTableStore | $slotRoleStore, | ||
DataAccessSettings | $dataAccessSettings, | ||
EntitySource | $entitySource, | ||
LanguageFallbackChainFactory | $languageFallbackChainFactory, | ||
Serializer | $storageEntitySerializer, | ||
RepoDomainDb | $repoDb, | ||
array | $deserializerFactoryCallbacks, | ||
array | $entityMetaDataAccessorCallbacks, | ||
array | $prefetchingTermLookupCallbacks, | ||
array | $entityRevisionFactoryLookupCallbacks | ||
) |
|
private |
Wikibase\DataAccess\SingleEntitySourceServices::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\SingleEntitySourceServices::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.
|
private |
|
private |
Wikibase\DataAccess\SingleEntitySourceServices::getEntityPrefetcher | ( | ) |
Wikibase\DataAccess\SingleEntitySourceServices::getEntitySource | ( | ) |
Wikibase\DataAccess\SingleEntitySourceServices::getPropertyInfoLookup | ( | ) |
Wikibase\DataAccess\SingleEntitySourceServices::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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |