Wikibase
MediaWiki Wikibase extension
|
Delegates lookup to the repository-specific EntityLookup based on the name of the repository an EntityId belongs to. More...
Public Member Functions | |
__construct (array $lookups) | |
getEntity (EntityId $entityId) | |
hasEntity (EntityId $entityId) | |
Private Member Functions | |
getLookupForEntityId (EntityId $entityId) | |
Private Attributes | |
$lookups | |
Delegates lookup to the repository-specific EntityLookup based on the name of the repository an EntityId belongs to.
This class does not strip repository prefixes of incoming entity IDs.
Wikibase\DataModel\Services\Lookup\DispatchingEntityLookup::__construct | ( | array | $lookups | ) |
EntityLookup[] | $lookups | associative array with repository names (strings) as keys and EntityLookup objects as values. |
ParameterAssertionException |
Wikibase\DataModel\Services\Lookup\DispatchingEntityLookup::getEntity | ( | EntityId | $entityId | ) |
EntityId | $entityId |
EntityLookupException |
Implements Wikibase\DataModel\Services\Lookup\EntityLookup.
|
private |
EntityId | $entityId |
Wikibase\DataModel\Services\Lookup\DispatchingEntityLookup::hasEntity | ( | EntityId | $entityId | ) |
EntityId | $entityId |
EntityLookupException |
Implements Wikibase\DataModel\Services\Lookup\EntityLookup.
|
private |