Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery Class Reference

PageTableEntityQuery that assumes the entity IDs "localPart" matches page_title of the page that the entity is stored on. More...

+ Inheritance diagram for Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery:
+ Collaboration diagram for Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery:

Protected Member Functions

 getConditionForEntityId (EntityId $entityId)
 
 getEntityIdStringFromRow (stdClass $row)
 
 getFieldsNeededForMapping ()
 

Additional Inherited Members

- Public Member Functions inherited from Wikibase\Lib\Store\Sql\PageTableEntityQueryBase
 __construct (EntityNamespaceLookup $entityNamespaceLookup, NameTableStore $slotRoleStore)
 
 selectRows (array $fields, array $joins, array $entityIds, IDatabase $db)
 

Detailed Description

PageTableEntityQuery that assumes the entity IDs "localPart" matches page_title of the page that the entity is stored on.

For example: An Item with ID Q1 is commonly stored on a wikipage with title Q1

Member Function Documentation

◆ getConditionForEntityId()

Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery::getConditionForEntityId ( EntityId  $entityId)
protected
Parameters
EntityId$entityId
Returns
array SQL condition

Reimplemented from Wikibase\Lib\Store\Sql\PageTableEntityQueryBase.

◆ getEntityIdStringFromRow()

Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery::getEntityIdStringFromRow ( stdClass  $row)
protected
Parameters
stdClass$row
Returns
string serialization of an entity ID for example Q123

Reimplemented from Wikibase\Lib\Store\Sql\PageTableEntityQueryBase.

◆ getFieldsNeededForMapping()

Wikibase\Lib\Store\Sql\EntityIdLocalPartPageTableEntityQuery::getFieldsNeededForMapping ( )
protected
Returns
string[] Extra fields needed for the mapping done in mapRowsToEntityIds

Reimplemented from Wikibase\Lib\Store\Sql\PageTableEntityQueryBase.


The documentation for this class was generated from the following file: