Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders Class Reference

Low level factory for SnakFormatters for well known data types. More...

Public Member Functions

 __construct (WikibaseValueFormatterBuilders $valueFormatterBuilders, PropertyInfoLookup $propertyInfoLookup, PropertyDataTypeLookup $dataTypeLookup, DataTypeFactory $dataTypeFactory)
 
 newExternalIdentifierFormatter ( $format, FormatterOptions $options)
 

Private Member Functions

 isHtmlFormat ( $format)
 

Private Attributes

 $valueFormatterBuilders
 
 $propertyInfoLookup
 
 $dataTypeLookup
 
 $dataTypeFactory
 
 $snakFormat
 

Detailed Description

Low level factory for SnakFormatters for well known data types.

Warning
: This is a low level factory for use by bootstrap code only! Program logic should use an instance of OutputFormatValueFormatterFactory resp. OutputFormatSnakFormatterFactory.
Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::__construct ( WikibaseValueFormatterBuilders  $valueFormatterBuilders,
PropertyInfoLookup  $propertyInfoLookup,
PropertyDataTypeLookup  $dataTypeLookup,
DataTypeFactory  $dataTypeFactory 
)

Member Function Documentation

◆ isHtmlFormat()

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::isHtmlFormat (   $format)
private
Parameters
string$formatThe desired target format, see SnakFormatter::FORMAT_XXX
Exceptions
InvalidArgumentException
Returns
bool True if $format is one of the SnakFormatter::FORMAT_HTML_XXX formats.

◆ newExternalIdentifierFormatter()

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::newExternalIdentifierFormatter (   $format,
FormatterOptions  $options 
)
Parameters
string$formatThe desired target format, see SnakFormatter::FORMAT_XXX
FormatterOptions$options
Exceptions
InvalidArgumentException
Returns
SnakFormatter

Member Data Documentation

◆ $dataTypeFactory

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::$dataTypeFactory
private

◆ $dataTypeLookup

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::$dataTypeLookup
private

◆ $propertyInfoLookup

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::$propertyInfoLookup
private

◆ $snakFormat

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::$snakFormat
private

◆ $valueFormatterBuilders

Wikibase\Lib\Formatters\WikibaseSnakFormatterBuilders::$valueFormatterBuilders
private

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