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 $revisionJoinConds, array $entityIds, IReadableDatabase $db) | |
Protected Member Functions | |
getConditionForEntityId (EntityId $entityId) | |
getEntityIdStringFromRow (stdClass $row) | |
getFieldsNeededForMapping () | |
Private Member Functions | |
updateQueryBuilder (SelectQueryBuilder $queryBuilder, array $entityIds, IReadableDatabase $db) | |
indexRowsByEntityId (Traversable $rows) | |
Private Attributes | |
EntityNamespaceLookup | $entityNamespaceLookup |
NameTableStore | $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 |
Traversable | $rows |
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::selectRows | ( | array | $fields, |
?array | $revisionJoinConds, | ||
array | $entityIds, | ||
IReadableDatabase | $db ) |
array | $fields | Fields to select |
array | null | $revisionJoinConds | If non-null, perform an INNER JOIN against the revision table on these join conditions. |
EntityId[] | $entityIds | EntityIds to select |
IReadableDatabase | $db | DB to query on |
Implements Wikibase\Lib\Store\Sql\PageTableEntityQuery.
|
private |
SelectQueryBuilder | $queryBuilder | |
EntityId[] | $entityIds | |
IReadableDatabase | $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 |
|
private |