Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter Class Reference

Formatter for rendering the details of a GlobeCoordinateValue (most useful for diffs) in HTML. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter:

Public Member Functions

 __construct (ValueFormatter $vocabularyUriFormatter, FormatterOptions $options=null)
 
 format ( $value)
 

Protected Member Functions

 renderLabelValuePair ( $fieldName, $valueHtml)
 
 getFieldLabel ( $fieldName)
 

Protected Attributes

 $coordinateFormatter
 
 $vocabularyUriFormatter
 

Private Member Functions

 formatGlobe ( $globe)
 

Detailed Description

Formatter for rendering the details of a GlobeCoordinateValue (most useful for diffs) in HTML.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::__construct ( ValueFormatter  $vocabularyUriFormatter,
FormatterOptions  $options = null 
)
Parameters
ValueFormatter$vocabularyUriFormatter
FormatterOptions | null$options

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::format (   $value)
See also
ValueFormatter::format

Generates HTML representing the details of a GlobeCoordinateValue, as an itemized list.

Parameters
GlobeCoordinateValue$value
Exceptions
InvalidArgumentException
Returns
string HTML

◆ formatGlobe()

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::formatGlobe (   $globe)
private
Parameters
string$globeURI
Returns
string HTML

◆ getFieldLabel()

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::getFieldLabel (   $fieldName)
protected
Parameters
string$fieldName
Returns
Message

◆ renderLabelValuePair()

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::renderLabelValuePair (   $fieldName,
  $valueHtml 
)
protected
Parameters
string$fieldName
string$valueHtmlHTML
Returns
string HTML for the label/value pair

Member Data Documentation

◆ $coordinateFormatter

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::$coordinateFormatter
protected

◆ $vocabularyUriFormatter

Wikibase\Lib\Formatters\GlobeCoordinateDetailsFormatter::$vocabularyUriFormatter
protected

The documentation for this class was generated from the following file: