Wikibase
MediaWiki Wikibase extension
|
Implements an entity repo based on blobs stored in wiki pages on a locally reachable database server. More...
Public Member Functions | |
__construct (WikiPageEntityMetaDataAccessor $entityMetaDataAccessor, WikiPageEntityDataLoader $entityDataLoader, RevisionStore $revisionStore) | |
Public Member Functions inherited from Wikibase\Lib\Store\EntityRevisionLookup | |
getEntityRevision (EntityId $entityId, $revisionId=0, $mode=LookupConstants::LATEST_FROM_REPLICA) | |
Returns the entity revision with the provided id or null if there is no such entity or if access is forbidden. More... | |
getLatestRevisionId (EntityId $entityId, $mode=LookupConstants::LATEST_FROM_REPLICA) | |
Returns the id of the latest revision of the given entity, or false if there is no such entity. More... | |
Private Member Functions | |
loadEntity ( $row, $mode=LookupConstants::LATEST_FROM_REPLICA) | |
Construct an EntityRevision object from a database row from the revision table. More... | |
Private Attributes | |
const | MAIN_SLOT = 'main' |
$entityMetaDataAccessor | |
$revisionStore | |
$logger | |
$entityDataLoader | |
Implements an entity repo based on blobs stored in wiki pages on a locally reachable database server.
This class also supports memcached (or accelerator) based caching of entities.
Wikibase\Lib\Store\Sql\WikiPageEntityRevisionLookup::__construct | ( | WikiPageEntityMetaDataAccessor | $entityMetaDataAccessor, |
WikiPageEntityDataLoader | $entityDataLoader, | ||
RevisionStore | $revisionStore | ||
) |
|
private |
Construct an EntityRevision object from a database row from the revision table.
stdClass | $row | a row object as returned by WikiPageEntityMetaDataLookup. |
string | $mode | LATEST_FROM_REPLICA, LATEST_FROM_REPLICA_WITH_FALLBACK or LATEST_FROM_MASTER. |
StorageException |
|
private |
|
private |
|
private |
|
private |
|
private |