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

Helper for mapping columns names of item/property in term storage. More...

Public Member Functions

 __construct (string $tablePrefix, string $tableName, string $entityType)
 
 getEntityIdColumn ()
 Returns the name of the entity reference column.
 
 getRowIdColumn ()
 Returns the name of the id column.
 
 getTermInLangIdColumn ()
 Returns the name of the <entity>_term_in_lang id column.
 
 getTableName ()
 

Static Public Member Functions

static factory (string $entityType)
 

Protected Attributes

 $tablePrefix
 
 $entityType
 

Private Attributes

 $tableName
 

Detailed Description

Helper for mapping columns names of item/property in term storage.

See also
DatabaseTermStoreWriterBase

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::__construct ( string  $tablePrefix,
string  $tableName,
string  $entityType 
)

Member Function Documentation

◆ factory()

static Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::factory ( string  $entityType)
static

◆ getEntityIdColumn()

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::getEntityIdColumn ( )

Returns the name of the entity reference column.

Returns
string e.g. wbit_item_id / wbpt_property_id

◆ getRowIdColumn()

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::getRowIdColumn ( )

Returns the name of the id column.

Returns
string e.g. wbit_id / wbpt_id

◆ getTableName()

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::getTableName ( )

◆ getTermInLangIdColumn()

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::getTermInLangIdColumn ( )

Returns the name of the <entity>_term_in_lang id column.

Returns
string e.g. wbit_term_in_lang_id / wbpt_term_in_lang_id

Member Data Documentation

◆ $entityType

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::$entityType
protected

◆ $tableName

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::$tableName
private

◆ $tablePrefix

Wikibase\Lib\Store\Sql\Terms\NormalizedTermStorageMapping::$tablePrefix
protected

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