Abstract PageTableEntityQuery implementation allowing simple mapping between rows and entity IDs using one or more fields and some simple logic.
More...
Abstract PageTableEntityQuery implementation allowing simple mapping between rows and entity IDs using one or more fields and some simple logic.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::__construct |
( |
EntityNamespaceLookup |
$entityNamespaceLookup, |
|
|
NameTableStore |
$slotRoleStore |
|
) |
| |
◆ getConditionForEntityId()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::getConditionForEntityId |
( |
EntityId |
$entityId | ) |
|
|
abstractprotected |
◆ getEntityIdStringFromRow()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::getEntityIdStringFromRow |
( |
stdClass |
$row | ) |
|
|
abstractprotected |
◆ getFieldsNeededForMapping()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::getFieldsNeededForMapping |
( |
| ) |
|
|
abstractprotected |
◆ getQueryInfo()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::getQueryInfo |
( |
array |
$entityIds, |
|
|
bool |
$usesRevisionTable, |
|
|
IDatabase |
$db |
|
) |
| |
|
private |
- Parameters
-
EntityId[] | $entityIds | |
bool | $usesRevisionTable | |
IDatabase | $db | |
- Returns
- array [ string $whereCondition, array $extraTables ]
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.
◆ indexRowsByEntityId()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::indexRowsByEntityId |
( |
Traversable |
$rows | ) |
|
|
private |
- Parameters
-
- Returns
- stdClass[] Array of rows with keys of their entity ID serializations
◆ selectRows()
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::selectRows |
( |
array |
$fields, |
|
|
array |
$joins, |
|
|
array |
$entityIds, |
|
|
IDatabase |
$db |
|
) |
| |
- Parameters
-
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 |
- Returns
- stdClass[] Array of rows with keys of their entity ID serializations
Implements Wikibase\Lib\Store\Sql\PageTableEntityQuery.
◆ $entityNamespaceLookup
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::$entityNamespaceLookup |
|
private |
◆ $slotRoleStore
Wikibase\Lib\Store\Sql\PageTableEntityQueryBase::$slotRoleStore |
|
private |
The documentation for this class was generated from the following file: