GNU GPL v2
- Since
- 2.4
- Author
- mwjames
◆ __construct()
SMW\PropertyAliasFinder::__construct |
( |
Cache |
$cache, |
|
|
array |
$propertyAliases = [] , |
|
|
array |
$canonicalPropertyAliases = [] |
|
) |
| |
- Since
- 2.4
- Parameters
-
Cache | $cache | |
array | $propertyAliases | |
array | $canonicalPropertyAliases | |
◆ findCanonicalPropertyAliasById()
SMW\PropertyAliasFinder::findCanonicalPropertyAliasById |
( |
|
$id | ) |
|
- Since
- 2.4
- Parameters
-
- Returns
- string|boolean
◆ findPropertyAliasById()
SMW\PropertyAliasFinder::findPropertyAliasById |
( |
|
$id | ) |
|
- Since
- 2.4
- Parameters
-
- Returns
- string|boolean
◆ findPropertyIdByAlias()
SMW\PropertyAliasFinder::findPropertyIdByAlias |
( |
|
$alias | ) |
|
Find and return the ID for the pre-defined property of the given local label. If the label does not belong to a pre-defined property, return false.
- Parameters
-
- Returns
- string|boolean
◆ getKnownPropertyAliases()
SMW\PropertyAliasFinder::getKnownPropertyAliases |
( |
| ) |
|
◆ getKnownPropertyAliasesByLanguageCode()
SMW\PropertyAliasFinder::getKnownPropertyAliasesByLanguageCode |
( |
|
$languageCode = 'en' | ) |
|
- Since
- 3.0
- Parameters
-
- Returns
- array
◆ getKnownPropertyAliasesWithMsgKey()
SMW\PropertyAliasFinder::getKnownPropertyAliasesWithMsgKey |
( |
| ) |
|
◆ registerAliasByFixedLabel()
SMW\PropertyAliasFinder::registerAliasByFixedLabel |
( |
|
$id, |
|
|
|
$label |
|
) |
| |
Add a new alias label to an existing property ID. Note that every ID should have a primary label.
- Parameters
-
string | $id | string |
string | $label | |
◆ registerAliasByMsgKey()
SMW\PropertyAliasFinder::registerAliasByMsgKey |
( |
|
$id, |
|
|
|
$msgKey |
|
) |
| |
Register an alias using a message key to allow fetching localized labels dynamically.
- Since
- 2.4
- Parameters
-
◆ setContentLanguageCode()
SMW\PropertyAliasFinder::setContentLanguageCode |
( |
|
$contentLanguageCode | ) |
|
- Since
- 3.1
- Parameters
-
string | $contentLanguageCode | |
◆ CACHE_NAMESPACE
const SMW\PropertyAliasFinder::CACHE_NAMESPACE = 'smw:property:alias' |
Identifies the cache namespace
◆ CACHE_TTL
const SMW\PropertyAliasFinder::CACHE_TTL = 604800 |
Identifies the cache TTL (one week)
The documentation for this class was generated from the following file: