Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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, LanguageFactory $languageFactory, $emitPreviewHtml)
 
 format ( $value)
 

Private Attributes

 $coordinateFormatter
 
 $cachingKartographerEmbeddingHandler
 
 $emitPreviewHtml
 
 $options
 
 $languageFactory
 

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,
LanguageFactory $languageFactory,
$emitPreviewHtml )
Parameters
FormatterOptions | null$options
ValueFormatter$coordinateFormatter
CachingKartographerEmbeddingHandler$cachingKartographerEmbeddingHandler
LanguageFactory$languageFactory
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

◆ $languageFactory

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

◆ $options

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

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