Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider Class Reference

Helper to prepare joins necessary to select terms from new term store in db. More...

Public Member Functions

 __construct (string $entityType)
 
 getEntityTermsTableAndJoinConditions ()
 Constructs a table along the necessary joins with new store tables for selecting entity terms referenced in $entityTermsTable through $entityTermsJoinColumn column. More...
 

Private Attributes

 $entityTermsTable
 
 $entityTermsJoinColumn
 
 $entityIdColumn
 

Detailed Description

Helper to prepare joins necessary to select terms from new term store in db.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider::__construct ( string  $entityType)
Parameters
string$entityTypeone of the supported types: Item::ENTITY_TYPE or Property::ENTITY_TYPE

Member Function Documentation

◆ getEntityTermsTableAndJoinConditions()

Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider::getEntityTermsTableAndJoinConditions ( )

Constructs a table along the necessary joins with new store tables for selecting entity terms referenced in $entityTermsTable through $entityTermsJoinColumn column.

Returns
array with the following elements in order:
  • table: the final table (array, including the joins)
  • join conditions
  • entity id column: the column name that contains the entity id within the top-most entity terms table

Member Data Documentation

◆ $entityIdColumn

Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider::$entityIdColumn
private

◆ $entityTermsJoinColumn

Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider::$entityTermsJoinColumn
private

◆ $entityTermsTable

Wikibase\Repo\Store\Sql\Terms\DatabaseEntityTermsTableProvider::$entityTermsTable
private

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