Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $typeid='') | |
setFieldProperties (array $properties) | |
getProperties () | |
getTextWithLanguageTag ( $text, $languageCode) | |
getValuesFromString ( $userValue) | |
getShortWikiText ( $linker=null) | |
getShortHTMLText ( $linker=null) | |
getLongWikiText ( $linker=null) | |
getLongHTMLText ( $linker=null) | |
getWikiValue () | |
getPropertyDataItems () | |
getDataItems () | |
getTextValueByLanguageCode ( $languageCode) | |
toArray () | |
toString () | |
Public Attributes | |
const | TYPE_ID = '_mlt_rec' |
Protected Member Functions | |
parseUserValue ( $userValue) | |
loadDataItem (DataItem $dataItem) | |
MonolingualTextValue requires two components, a language code and a text.
A text foo@en
is expected to be invoked with a BCP47 language code tag and a language dependent text component.
Internally, the value is stored as container object that represents the language code and text as separate entities in order to be queried individually.
External output representation depends on the context (wiki, html) whether the language code is omitted or not.
GNU GPL v2+
SMW\DataValues\MonolingualTextValue::__construct | ( | $typeid = '' | ) |
string | $typeid |
SMW\DataValues\MonolingualTextValue::getDataItems | ( | ) |
SMW\DataValues\MonolingualTextValue::getLongHTMLText | ( | $linker = null | ) |
SMW\DataValues\MonolingualTextValue::getLongWikiText | ( | $linker = null | ) |
SMW\DataValues\MonolingualTextValue::getProperties | ( | ) |
DIProperty[] | $properties |
SMW\DataValues\MonolingualTextValue::getPropertyDataItems | ( | ) |
SMW\DataValues\MonolingualTextValue::getShortHTMLText | ( | $linker = null | ) |
SMW\DataValues\MonolingualTextValue::getShortWikiText | ( | $linker = null | ) |
SMW\DataValues\MonolingualTextValue::getTextValueByLanguageCode | ( | $languageCode | ) |
string | $languageCode |
SMW\DataValues\MonolingualTextValue::getTextWithLanguageTag | ( | $text, | |
$languageCode | |||
) |
$userValue | ||
string | $languageCode |
SMW\DataValues\MonolingualTextValue::getValuesFromString | ( | $userValue | ) |
No explicit check is made on the validity of a language code and is expected to be done before calling this method.
string | $userValue |
SMW\DataValues\MonolingualTextValue::getWikiValue | ( | ) |
|
protected |
DataItem | $dataItem |
|
protected |
string | $userValue |
SMW\DataValues\MonolingualTextValue::setFieldProperties | ( | array | $properties | ) |
DIProperty[] | $properties |
SMW\DataValues\MonolingualTextValue::toArray | ( | ) |
SMW\DataValues\MonolingualTextValue::toString | ( | ) |
const SMW\DataValues\MonolingualTextValue::TYPE_ID = '_mlt_rec' |
DV identifier