Store interface.
More...
Store interface.
All interaction with store Wikibase does on top of storing pages and associated core MediaWiki indexing is done through this interface.
- Todo
- provide getXXX() methods for getting local pseudo-singletons (shared service objects).
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
◆ getChangeStore()
Wikibase\Repo\Store\Store::getChangeStore |
( |
| ) |
|
◆ getEntityByLinkedTitleLookup()
Wikibase\Repo\Store\Store::getEntityByLinkedTitleLookup |
( |
| ) |
|
◆ getEntityChangeLookup()
Wikibase\Repo\Store\Store::getEntityChangeLookup |
( |
| ) |
|
◆ getEntityLookup()
Wikibase\Repo\Store\Store::getEntityLookup |
( |
| $cache = self::LOOKUP_CACHING_ENABLED, |
|
|
string | $lookupMode = LookupConstants::LATEST_FROM_REPLICA ) |
- Parameters
-
string | $cache | One of self::LOOKUP_CACHING_* self::LOOKUP_CACHING_DISABLED to get an uncached direct lookup self::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities self::LOOKUP_CACHING_ENABLED to get a caching lookup (default) |
string | $lookupMode | One of LookupConstants::LATEST_FROM_* |
- Returns
- EntityLookup
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
◆ getEntityPrefetcher()
Wikibase\Repo\Store\Store::getEntityPrefetcher |
( |
| ) |
|
Returns an EntityPrefetcher which can be used to prefetch a list of entity ids in case we need to for example load a batch of entity ids.
- Returns
- EntityPrefetcher
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
◆ getEntityRedirectLookup()
Wikibase\Repo\Store\Store::getEntityRedirectLookup |
( |
| ) |
|
◆ getEntityRevisionLookup()
Wikibase\Repo\Store\Store::getEntityRevisionLookup |
( |
| $cache = self::LOOKUP_CACHING_ENABLED | ) |
|
- Parameters
-
string | $cache | One of self::LOOKUP_CACHING_* self::LOOKUP_CACHING_DISABLED to get an uncached direct lookup self::LOOKUP_CACHING_RETRIEVE_ONLY to get a lookup which reads from the cache, but doesn't store retrieved entities self::LOOKUP_CACHING_ENABLED to get a caching lookup (default) |
- Returns
- EntityRevisionLookup
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
◆ getEntityStore()
Wikibase\Repo\Store\Store::getEntityStore |
( |
| ) |
|
◆ getEntityStoreWatcher()
Wikibase\Repo\Store\Store::getEntityStoreWatcher |
( |
| ) |
|
Returns an EntityStoreWatcher that should be notified of changes to entities, in order to keep any caches updated.
- Returns
- EntityStoreWatcher
Implemented in Wikibase\Repo\Store\Sql\SqlStore.
◆ getPropertyInfoLookup()
Wikibase\Repo\Store\Store::getPropertyInfoLookup |
( |
| ) |
|
◆ getPropertyInfoStore()
Wikibase\Repo\Store\Store::getPropertyInfoStore |
( |
| ) |
|
◆ newItemsWithoutSitelinksFinder()
Wikibase\Repo\Store\Store::newItemsWithoutSitelinksFinder |
( |
| ) |
|
◆ newSiteLinkStore()
Wikibase\Repo\Store\Store::newSiteLinkStore |
( |
| ) |
|
◆ LOOKUP_CACHING_DISABLED
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_DISABLED = 'uncached' |
◆ LOOKUP_CACHING_ENABLED
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_ENABLED = '' |
◆ LOOKUP_CACHING_RETRIEVE_ONLY
const Wikibase\Repo\Store\Store::LOOKUP_CACHING_RETRIEVE_ONLY = 'retrieve-only' |
The documentation for this interface was generated from the following file: