GNU GPL v2+
- Since
- 2.4
- Author
- mwjames
◆ __construct()
SMW\DataValues\ValueFormatters\DataValueFormatter::__construct |
( |
DataValue |
$dataValue = null | ) |
|
- Since
- 2.4
- Parameters
-
DataValue | null | $dataValue | |
◆ getErrors()
SMW\DataValues\ValueFormatters\DataValueFormatter::getErrors |
( |
| ) |
|
◆ getOption()
SMW\DataValues\ValueFormatters\DataValueFormatter::getOption |
( |
|
$key | ) |
|
- Since
- 2.4
- Parameters
-
- Returns
- mixed|false
◆ isFormatterFor()
SMW\DataValues\ValueFormatters\DataValueFormatter::isFormatterFor |
( |
DataValue |
$dataValue | ) |
|
|
abstract |
- Since
- 2.4
- Parameters
-
- Returns
- boolean
◆ setDataValue()
SMW\DataValues\ValueFormatters\DataValueFormatter::setDataValue |
( |
DataValue |
$dataValue | ) |
|
◆ setOption()
SMW\DataValues\ValueFormatters\DataValueFormatter::setOption |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
◆ HTML_LONG
const SMW\DataValues\ValueFormatters\DataValueFormatter::HTML_LONG = 4 |
Return the long textual description of the value, as printed for example in the factbox. If errors occurred, return the error message The result always is an HTML string.
◆ HTML_SHORT
const SMW\DataValues\ValueFormatters\DataValueFormatter::HTML_SHORT = 2 |
Returns a short textual representation for this data value. If the value was initialised from a user supplied string, then this original string should be reflected in this short version (i.e. no normalisation should normally happen). There might, however, be additional parts such as code for generating tooltips. The output is in HTML text.
◆ VALUE
const SMW\DataValues\ValueFormatters\DataValueFormatter::VALUE = 0 |
Return the plain wiki version of the value, or FALSE if no such version is available. The returned string suffices to re-obtain the same DataValue when passing it as an input string to DataValue::setUserValue.
◆ WIKI_LONG
const SMW\DataValues\ValueFormatters\DataValueFormatter::WIKI_LONG = 3 |
Return the long textual description of the value, as printed for example in the factbox. If errors occurred, return the error message. The result is always a wiki-source string.
◆ WIKI_SHORT
const SMW\DataValues\ValueFormatters\DataValueFormatter::WIKI_SHORT = 1 |
Returns a short textual representation for this data value. If the value was initialised from a user supplied string, then this original string should be reflected in this short version (i.e. no normalisation should normally happen). There might, however, be additional parts such as code for generating tooltips. The output is in wiki text.
The documentation for this class was generated from the following file: