|
| | __construct (DatabaseTermInLangIdsResolver $termInlangIdsResolver) |
| |
| | getPrefetchedTerm (EntityId $entityId, $termType, $languageCode) |
| | Returns a term that was previously loaded by prefetchTerms.- Parameters
-
| EntityId | $entityId | |
| string | $termType | One of of TermTypes::TYPE_LABEL, TermTypes::TYPE_DESCRIPTION, TermTypes::TYPE_ALIAS |
| string | $languageCode | |
- Returns
- string|false|null The term, or false of that term is known to not exist, or null if the term was not yet requested via prefetchTerms().
|
| |
| | getPrefetchedAliases (EntityId $entityId, $languageCode) |
| | Returns terms that were previously loaded by prefetchTerms.- Parameters
-
| EntityId | $entityId | |
| string | $languageCode | |
- Returns
- string[]|false|null The aliases, or false of that entity has no aliases, or null if the term was not yet requested via prefetchTerms().
|
| |
| | getLabel (EntityId $entityId, $languageCode) |
| |
| | getLabels (EntityId $entityId, array $languageCodes) |
| |
| | getDescription (EntityId $entityId, $languageCode) |
| |
| | getDescriptions (EntityId $entityId, array $languageCodes) |
| |
| | prefetchTerms (array $entityIds, array $termTypes, array $languageCodes) |
| | Loads a set of terms into the buffer.
|
| |
A PrefetchingTermLookup that only supports properties, using the new, normalized schema (starting at wbt_property_terms).
Prefetches from DatabaseTermInLangIdsResolver(DB) and stores them in $terms (current process only). Looks up terms from $terms.
Shares the same implementation with PrefetchingItemTermLookup
- Copyright
- GPL-2.0-or-later