Resolves property labels (which are unique per language) into entity IDs using a MatchingTermsLookup.
More...
Resolves property labels (which are unique per language) into entity IDs using a MatchingTermsLookup.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Lib\Store\MatchingTermsLookupPropertyLabelResolver::__construct |
( |
|
$languageCode, |
|
|
MatchingTermsLookup |
$matchingTermsLookup, |
|
|
BagOStuff |
$cache, |
|
|
|
$cacheDuration, |
|
|
|
$cacheKey |
|
) |
| |
- Parameters
-
string | $languageCode | The language of the labels to look up (typically, the wiki's content language) |
MatchingTermsLookup | $matchingTermsLookup | The MatchingTermsLookup service to look up labels with |
BagOStuff | $cache | The cache to use for labels (typically from ObjectCache::getLocalClusterInstance()) |
int | $cacheDuration | Number of seconds to keep the cached version for. Defaults to 3600 seconds = 1 hour. |
string | $cacheKey | The cache key to use, auto-generated based on $lang per default. Should be set to something including the wiki name of the wiki that maintains the properties. |
◆ loadProperties()
Wikibase\Lib\Store\MatchingTermsLookupPropertyLabelResolver::loadProperties |
( |
| ) |
|
|
protected |
◆ $matchingTermsLookup
Wikibase\Lib\Store\MatchingTermsLookupPropertyLabelResolver::$matchingTermsLookup |
|
private |
The documentation for this class was generated from the following file: