GNU GPL v2+
- Since
- 2.2
- Author
- mwjames
◆ __construct()
SMW\PropertyLabelFinder::__construct |
( |
Store |
$store, |
|
|
array |
$languageDependentPropertyLabels = [] , |
|
|
array |
$canonicalPropertyLabels = [] , |
|
|
array |
$canonicalDatatypeLabels = [] |
|
) |
| |
- Since
- 2.2
- Parameters
-
Store | $store | |
array | $languageDependentPropertyLabels | |
array | $canonicalPropertyLabels | |
◆ findCanonicalPropertyLabelById()
SMW\PropertyLabelFinder::findCanonicalPropertyLabelById |
( |
|
$id | ) |
|
- Since
- 2.4
- Parameters
-
- Returns
- string|boolean
◆ findPreferredPropertyLabelByLanguageCode()
SMW\PropertyLabelFinder::findPreferredPropertyLabelByLanguageCode |
( |
|
$id, |
|
|
|
$languageCode = '' |
|
) |
| |
- Since
- 2.5
- Parameters
-
string | $id | |
string | $languageCode | |
- Returns
- string
◆ findPropertyLabelById()
SMW\PropertyLabelFinder::findPropertyLabelById |
( |
|
$id | ) |
|
- Note
- An empty string is returned for incomplete translation (language bug) or deliberately invisible property
- Since
- 2.2
- Parameters
-
- Returns
- string
◆ findPropertyLabelFromIdByLanguageCode()
SMW\PropertyLabelFinder::findPropertyLabelFromIdByLanguageCode |
( |
|
$id, |
|
|
|
$languageCode = '' |
|
) |
| |
- Note
- An empty string is returned for incomplete translation (language bug) or deliberately invisible property
- Since
- 2.5
- Parameters
-
string | $id | |
string | $languageCode | |
- Returns
- string
◆ findPropertyListFromLabelByLanguageCode()
SMW\PropertyLabelFinder::findPropertyListFromLabelByLanguageCode |
( |
|
$text, |
|
|
|
$languageCode = '' |
|
) |
| |
- Since
- 2.5
- Parameters
-
string | $text | |
string | $languageCode | |
- Returns
- DIProperty[]|[]
◆ getKownPredefinedPropertyLabels()
SMW\PropertyLabelFinder::getKownPredefinedPropertyLabels |
( |
| ) |
|
◆ registerPropertyLabel()
SMW\PropertyLabelFinder::registerPropertyLabel |
( |
|
$id, |
|
|
|
$label, |
|
|
|
$asCanonical = true |
|
) |
| |
◆ searchPropertyIdByLabel()
SMW\PropertyLabelFinder::searchPropertyIdByLabel |
( |
|
$label | ) |
|
- Since
- 2.2
- Parameters
-
- Returns
- string|false
The documentation for this class was generated from the following file: