PrefetchingTermLookup implementation that does nothing.
More...
|
| prefetchTerms (array $entityIds, array $termTypes, array $languageCodes) |
|
| getPrefetchedTerm (EntityId $entityId, $termType, $languageCode) |
|
| getLabel (EntityId $entityId, $languageCode) |
|
| getLabels (EntityId $entityId, array $languageCodes) |
|
| getDescription (EntityId $entityId, $languageCode) |
|
| getDescriptions (EntityId $entityId, array $languageCodes) |
|
| 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().
More...
|
|
PrefetchingTermLookup implementation that does nothing.
Intended to be used with some services that require a default PrefetchingTermLookup in situations that a default does not make sense.
- Author
- Addshore
- Copyright
- GPL-2.0-or-later
◆ getDescription()
Wikibase\DataAccess\NullPrefetchingTermLookup::getDescription |
( |
EntityId |
$entityId, |
|
|
|
$languageCode |
|
) |
| |
◆ getDescriptions()
Wikibase\DataAccess\NullPrefetchingTermLookup::getDescriptions |
( |
EntityId |
$entityId, |
|
|
array |
$languageCodes |
|
) |
| |
◆ getLabel()
Wikibase\DataAccess\NullPrefetchingTermLookup::getLabel |
( |
EntityId |
$entityId, |
|
|
|
$languageCode |
|
) |
| |
◆ getLabels()
Wikibase\DataAccess\NullPrefetchingTermLookup::getLabels |
( |
EntityId |
$entityId, |
|
|
array |
$languageCodes |
|
) |
| |
◆ getPrefetchedAliases()
Wikibase\DataAccess\NullPrefetchingTermLookup::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().
Implements Wikibase\DataAccess\AliasTermBuffer.
◆ getPrefetchedTerm()
Wikibase\DataAccess\NullPrefetchingTermLookup::getPrefetchedTerm |
( |
EntityId |
$entityId, |
|
|
|
$termType, |
|
|
|
$languageCode |
|
) |
| |
◆ prefetchTerms()
Wikibase\DataAccess\NullPrefetchingTermLookup::prefetchTerms |
( |
array |
$entityIds, |
|
|
array |
$termTypes, |
|
|
array |
$languageCodes |
|
) |
| |
The documentation for this class was generated from the following file: