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

Formatter for rendering GlobeCoordinateValue via the Kartographer extensions. More...

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

Public Member Functions

 __construct (?FormatterOptions $options, ValueFormatter $coordinateFormatter, CachingKartographerEmbeddingHandler $cachingKartographerEmbeddingHandler, $emitPreviewHtml)
 
 format ( $value)
 

Private Attributes

 $coordinateFormatter
 
 $cachingKartographerEmbeddingHandler
 
 $emitPreviewHtml
 
 $options
 

Detailed Description

Formatter for rendering GlobeCoordinateValue via the Kartographer extensions.

Author
Marius Hoch

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::__construct ( ?FormatterOptions  $options,
ValueFormatter  $coordinateFormatter,
CachingKartographerEmbeddingHandler  $cachingKartographerEmbeddingHandler,
  $emitPreviewHtml 
)
Parameters
FormatterOptions | null$options
ValueFormatter$coordinateFormatter
CachingKartographerEmbeddingHandler$cachingKartographerEmbeddingHandler
bool$emitPreviewHtmlWhether to emit HTML that can be used for live previews

Member Function Documentation

◆ format()

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::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

Member Data Documentation

◆ $cachingKartographerEmbeddingHandler

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::$cachingKartographerEmbeddingHandler
private

◆ $coordinateFormatter

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::$coordinateFormatter
private

◆ $emitPreviewHtml

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::$emitPreviewHtml
private

◆ $options

Wikibase\Lib\Formatters\GlobeCoordinateKartographerFormatter::$options
private

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