Wikibase
MediaWiki Wikibase extension
|
Abstract PageTableEntityQuery implementation allowing simple mapping between rows and entity IDs using one or more fields and some simple logic. More...
Public Member Functions | |
__construct (EntityNamespaceLookup $entityNamespaceLookup, NameTableStore $slotRoleStore) | |
selectRows (array $fields, array $joins, array $entityIds, IDatabase $db) | |
Protected Member Functions | |
getConditionForEntityId (EntityId $entityId) | |
getEntityIdStringFromRow (stdClass $row) | |
getFieldsNeededForMapping () | |
Private Member Functions | |
getQueryInfo (array $entityIds, IDatabase $db) | |
indexRowsByEntityId (Traversable $rows) | |
Private Attributes | |
$entityNamespaceLookup | |
$slotRoleStore | |
Abstract PageTableEntityQuery implementation allowing simple mapping between rows and entity IDs using one or more fields and some simple logic.
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::__construct | ( | EntityNamespaceLookup | $entityNamespaceLookup, |
NameTableStore | $slotRoleStore | ||
) |
|
abstractprotected |
EntityId | $entityId |
Reimplemented in Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery.
|
abstractprotected |
stdClass | $row |
Reimplemented in Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery.
|
abstractprotected |
Reimplemented in Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery.
|
private |
EntityId[] | $entityIds | |
IDatabase | $db |
Only check against the slot role when we are not using the main slot. If we are using the main slot, then we only need to check that the page exists rather than a specific slot within the page. This ensures comparability with the pre MCR schema as long as only the main slot is used.
|
private |
Traversable | $rows |
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::selectRows | ( | array | $fields, |
array | $joins, | ||
array | $entityIds, | ||
IDatabase | $db | ||
) |
array | $fields | Fields to select |
array | $joins | Joins to use, Keys must be table names. |
EntityId[] | $entityIds | EntityIds to select |
IDatabase | $db | DB to query on |
Implements Wikibase\Lib\Store\Sql\PageTableEntityQuery.
|
private |
|
private |