An EntityTitleStoreLookup that guarantees to return the titles of pages that actually store the entities, and does dispatching based on the entity type.
More...
|
| __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- Parameters
-
- Exceptions
-
MWException | |
OutOfBoundsException | |
InvalidArgumentException | |
- Returns
- (Title|null)[]
More...
|
|
An EntityTitleStoreLookup that guarantees to return the titles of pages that actually store the entities, and does dispatching based on the entity type.
- Copyright
- GPL-2.0-or-later
- Author
- Thiemo Kreuz
◆ __construct()
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::__construct |
( |
array |
$callbacks, |
|
|
EntityTitleStoreLookup |
$defaultLookup |
|
) |
| |
◆ getIdsByType()
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::getIdsByType |
( |
array |
$ids | ) |
|
|
private |
◆ getTitleForId()
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::getTitleForId |
( |
EntityId |
$id | ) |
|
◆ getTitlesForIds()
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
- Parameters
-
- Exceptions
-
MWException | |
OutOfBoundsException | |
InvalidArgumentException | |
- Returns
- (Title|null)[]
Implements Wikibase\Lib\Store\EntityTitleLookup.
◆ $defaultLookup
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::$defaultLookup |
|
private |
◆ $serviceDispatcher
Wikibase\Repo\Store\TypeDispatchingEntityTitleStoreLookup::$serviceDispatcher |
|
private |
The documentation for this class was generated from the following file: