Wikibase
MediaWiki Wikibase extension
|
Resolves and caches property labels (which are unique per language) into entity IDs through DatabaseTermIdsResolver api. More...
Public Member Functions | |
__construct ( $languageCode, TermInLangIdsResolver $dbTermInLangIdsResolver, BagOStuff $cache, $cacheDuration, $cacheKey) | |
Public Member Functions inherited from Wikibase\Lib\Store\AbstractTermPropertyLabelResolver | |
__construct ( $languageCode, BagOStuff $cache, $cacheDuration, $cacheKey) | |
getPropertyIdsForLabels (array $labels, $recache='') | |
Protected Member Functions | |
loadProperties () | |
Protected Member Functions inherited from Wikibase\Lib\Store\AbstractTermPropertyLabelResolver | |
getLabelMap ( $recache='') | |
Returns a map of labels to EntityIds for all Properties currently defined. | |
getCachedLabelMap ( $recache) | |
needsRecache (array $propertyIds) | |
Checks if recache is needed. | |
Private Attributes | |
$dbTermInLangIdsResolver | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Lib\Store\AbstractTermPropertyLabelResolver | |
$languageCode | |
Resolves and caches property labels (which are unique per language) into entity IDs through DatabaseTermIdsResolver api.
Wikibase\Lib\Store\Sql\Terms\CachedDatabasePropertyLabelResolver::__construct | ( | $languageCode, | |
TermInLangIdsResolver | $dbTermInLangIdsResolver, | ||
BagOStuff | $cache, | ||
$cacheDuration, | |||
$cacheKey ) |
string | $languageCode | The language of the labels to look up (typically, the wiki's content language) |
TermInLangIdsResolver | $dbTermInLangIdsResolver | Must be instance of DatabaseTermInLangIdsResolver |
BagOStuff | $cache | The cache to use for labels |
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. |
|
protected |
Reimplemented from Wikibase\Lib\Store\AbstractTermPropertyLabelResolver.
|
private |