Wikibase
MediaWiki Wikibase extension
|
Provides a string representation for a DataValue given its associated DataType. More...
Public Member Functions | |
formatValue (DataValue $value, $dataTypeId=null) | |
Formats the given DataValue. | |
Provides a string representation for a DataValue given its associated DataType.
Wikibase\Lib\Formatters\TypedValueFormatter::formatValue | ( | DataValue | $value, |
$dataTypeId = null ) |
Formats the given DataValue.
If $dataTypeId is given, it may be used as a hint for providing more appropriate formatting.
DataValue | $value | |
string | null | $dataTypeId |
FormattingException |
Implemented in Wikibase\Lib\Formatters\DispatchingValueFormatter.