Wikibase
MediaWiki Wikibase extension
|
Methods factored out of TermIndex during the migration away from wb_terms. More...
Public Member Functions | |
getTermsOfEntity (EntityId $entityId, array $termTypes=null, array $languageCodes=null) | |
Returns the terms stored for the given entity. | |
getTermsOfEntities (array $entityIds, array $termTypes=null, array $languageCodes=null) | |
Returns the terms stored for the given entities. | |
Methods factored out of TermIndex during the migration away from wb_terms.
This interface is old and poorly shaped, but not deprecated at this stage.
Wikibase\Lib\Store\LegacyEntityTermStoreReader::getTermsOfEntities | ( | array | $entityIds, |
array | $termTypes = null , |
||
array | $languageCodes = null |
||
) |
Returns the terms stored for the given entities.
Can be filtered by language. Note that all entities queried in one call must be of the same type.
EntityId[] | $entityIds | Entity ids of one type only. |
string[] | null | $termTypes | The types of terms to return, e.g. "label", "description", or "alias". Compare the TermIndexEntry::TYPE_XXX constants. If null, all types are returned. |
string[] | null | $languageCodes | The desired languages, given as language codes. If null, all languages are returned. |
Implemented in Wikibase\Lib\Store\NullTermIndex, and Wikibase\Lib\Store\Sql\TermSqlIndex.
Wikibase\Lib\Store\LegacyEntityTermStoreReader::getTermsOfEntity | ( | EntityId | $entityId, |
array | $termTypes = null , |
||
array | $languageCodes = null |
||
) |
Returns the terms stored for the given entity.
EntityId | $entityId | |
string[] | null | $termTypes | The types of terms to return, e.g. "label", "description", or "alias". Compare the TermIndexEntry::TYPE_XXX constants. If null, all types are returned. |
string[] | null | $languageCodes | The desired languages, given as language codes. If null, all languages are returned. |
Implemented in Wikibase\Lib\Store\NullTermIndex, and Wikibase\Lib\Store\Sql\TermSqlIndex.