|
Wikibase
MediaWiki Wikibase extension
|
An EntityRevisionLookup that does dispatching based on the entity type. More...
Inheritance diagram for Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup:
Collaboration diagram for Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup:Public Member Functions | |
| __construct (array $callbacks, EntityRevisionLookup $defaultLookup) | |
| getEntityRevision (EntityId $entityId, $revisionId=0, $mode=LookupConstants::LATEST_FROM_REPLICA) | |
| getLatestRevisionId (EntityId $entityId, $mode=LookupConstants::LATEST_FROM_REPLICA) | |
Private Member Functions | |
| getLookup ( $entityType) | |
Private Attributes | |
| $lookups | |
| $defaultLookup | |
An EntityRevisionLookup that does dispatching based on the entity type.
| Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup::__construct | ( | array | $callbacks, |
| EntityRevisionLookup | $defaultLookup ) |
| callable[] | $callbacks | indexed by entity type |
| EntityRevisionLookup | $defaultLookup |
| Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup::getEntityRevision | ( | EntityId | $entityId, |
| $revisionId = 0, | |||
| $mode = LookupConstants::LATEST_FROM_REPLICA ) |
| EntityId | $entityId | |
| int | $revisionId | |
| string | $mode |
| RevisionedUnresolvedRedirectException | |
| StorageException |
Implements Wikibase\Lib\Store\EntityRevisionLookup.
| Wikibase\Lib\Store\TypeDispatchingEntityRevisionLookup::getLatestRevisionId | ( | EntityId | $entityId, |
| $mode = LookupConstants::LATEST_FROM_REPLICA ) |
| EntityId | $entityId | |
| string | $mode |
Implements Wikibase\Lib\Store\EntityRevisionLookup.
|
private |
| string | $entityType |
| InvalidArgumentException |
|
private |
|
private |