Wikibase
MediaWiki Wikibase extension
|
An EntityTitleStoreLookup that guarantees to return the titles of pages that actually store the entities, and does dispatching based on the entity type. More...
Public Member Functions | ||||
__construct (array $callbacks, EntityTitleStoreLookup $defaultLookup) | ||||
getTitleForId (EntityId $id) | ||||
getTitlesForIds (array $ids) | ||||
Returns an array of Titles for the given entity ids, indexed by the id serialization.If an entity does not exist, the array element for the relevant id serialization will be null
| ||||
Private Member Functions | |
getIdsByType (array $ids) | |
Private Attributes | |
$defaultLookup | |
$serviceDispatcher | |
An EntityTitleStoreLookup that guarantees to return the titles of pages that actually store the entities, and does dispatching based on the entity type.
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::__construct | ( | array | $callbacks, |
EntityTitleStoreLookup | $defaultLookup ) |
callable[] | $callbacks | indexed by entity type |
EntityTitleStoreLookup | $defaultLookup |
|
private |
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::getTitleForId | ( | EntityId | $id | ) |
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::getTitlesForIds | ( | array | $ids | ) |
Returns an array of Titles for the given entity ids, indexed by the id serialization.If an entity does not exist, the array element for the relevant id serialization will be null
EntityId[] | $ids |
Implements Wikibase\Lib\Store\EntityTitleLookup.
|
private |
|
private |