|
Wikibase
MediaWiki Wikibase extension
|
An EntityIdLookup that dispatches by Title content model to inner EntityIdLookups. More...
Inheritance diagram for Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup:
Collaboration diagram for Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup:Public Member Functions | |
| __construct (array $entityContentModels, array $lookups, EntityIdLookup $defaultLookup, HookContainer $hookContainer) | |
| getEntityIds (array $titles) | |
| Returns the list of EntityIds of the entities associated with the given page titles. | |
| getEntityIdForTitle (Title $title) | |
| Returns the ID of the entity stored on the page identified by $title. | |
Private Member Functions | |
| getContentModelForTitle (Title $title) | |
| getLookupForContentModel (string $contentModel) | |
Private Attributes | |
| $entityContentModels | |
| $serviceDispatcher | |
| $hookContainer | |
An EntityIdLookup that dispatches by Title content model to inner EntityIdLookups.
If no lookup is registered for the content model, then the lookup will fall back to a default lookup.
| Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup::__construct | ( | array | $entityContentModels, |
| array | $lookups, | ||
| EntityIdLookup | $defaultLookup, | ||
| HookContainer | $hookContainer ) |
|
private |
| Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup::getEntityIdForTitle | ( | Title | $title | ) |
Returns the ID of the entity stored on the page identified by $title.
| Title | $title |
Implements Wikibase\Lib\Store\EntityIdLookup.
| Wikibase\DataAccess\ByTypeDispatchingEntityIdLookup::getEntityIds | ( | array | $titles | ) |
Returns the list of EntityIds of the entities associated with the given page titles.
The resulting array uses the page IDs as keys.
Implementations may omit non-existing entities from the result. If they are included, they should have negative array keys.
| Title[] | $titles |
| StorageException |
Implements Wikibase\Lib\Store\EntityIdLookup.
|
private |
|
private |
|
private |
|
private |