Wikibase
MediaWiki Wikibase extension
|
Low level factory for ValueFormatters for well known data types. More...
Public Member Functions | |
__construct (FormatterLabelDescriptionLookupFactory $labelDescriptionLookupFactory, LanguageNameLookup $languageNameLookup, EntityIdParser $itemUriParser, $geoShapeStorageBaseUrl, $tabularDataStorageBaseUrl, CacheInterface $formatterCache, $cacheTtlInSeconds, EntityLookup $entityLookup, EntityRevisionLookup $entityRevisionLookup, $entitySchemaNamespace, EntityExistenceChecker $entityExistenceChecker, EntityTitleTextLookup $entityTitleTextLookup, EntityUrlLookup $entityUrlLookup, EntityRedirectChecker $entityRedirectChecker, EntityTitleLookup $entityTitleLookup=null, CachingKartographerEmbeddingHandler $kartographerEmbeddingHandler=null, $useKartographerMaplinkInWikitext=false, $thumbLimits=[]) | |
newEntityIdFormatter ( $format, FormatterOptions $options) | |
newPropertyIdHtmlLinkFormatter (FormatterOptions $options) | |
newItemIdHtmlLinkFormatter (FormatterOptions $options) | |
newStringFormatter ( $format, FormatterOptions $options) | |
newUnDeserializableValueFormatter ( $format, FormatterOptions $options) | |
newUrlFormatter ( $format, FormatterOptions $options) | |
newCommonsMediaFormatter ( $format, FormatterOptions $options) | |
newGeoShapeFormatter ( $format, FormatterOptions $options) | |
newTabularDataFormatter ( $format, FormatterOptions $options) | |
newEntitySchemaFormatter ( $format, FormatterOptions $options) | |
newTimeFormatter ( $format, FormatterOptions $options) | |
newQuantityFormatter ( $format, FormatterOptions $options) | |
newGlobeCoordinateFormatter ( $format, FormatterOptions $options) | |
newMonolingualFormatter ( $format) | |
newLabelsProviderEntityIdHtmlLinkFormatter (FormatterOptions $options) | |
Private Member Functions | |
newPlainEntityIdFormatter (FormatterOptions $options) | |
isHtmlFormat ( $format) | |
escapeValueFormatter ( $format, ValueFormatter $formatter) | |
Wraps the given formatter in an EscapingValueFormatter if necessary. | |
getNonCachingLookup (FormatterOptions $options) | |
getLabelDescriptionLookup (FormatterOptions $options) | |
getNumberLocalizer (FormatterOptions $options) | |
getVocabularyUriFormatter (FormatterOptions $options) | |
Low level factory for ValueFormatters for well known data types.
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::__construct | ( | FormatterLabelDescriptionLookupFactory | $labelDescriptionLookupFactory, |
LanguageNameLookup | $languageNameLookup, | ||
EntityIdParser | $itemUriParser, | ||
$geoShapeStorageBaseUrl, | |||
$tabularDataStorageBaseUrl, | |||
CacheInterface | $formatterCache, | ||
$cacheTtlInSeconds, | |||
EntityLookup | $entityLookup, | ||
EntityRevisionLookup | $entityRevisionLookup, | ||
$entitySchemaNamespace, | |||
EntityExistenceChecker | $entityExistenceChecker, | ||
EntityTitleTextLookup | $entityTitleTextLookup, | ||
EntityUrlLookup | $entityUrlLookup, | ||
EntityRedirectChecker | $entityRedirectChecker, | ||
EntityTitleLookup | $entityTitleLookup = null , |
||
CachingKartographerEmbeddingHandler | $kartographerEmbeddingHandler = null , |
||
$useKartographerMaplinkInWikitext = false , |
|||
$thumbLimits = [] |
|||
) |
FormatterLabelDescriptionLookupFactory | $labelDescriptionLookupFactory | |
LanguageNameLookup | $languageNameLookup | |
EntityIdParser | $itemUriParser | |
string | $geoShapeStorageBaseUrl | |
string | $tabularDataStorageBaseUrl | |
CacheInterface | $formatterCache | |
int | $cacheTtlInSeconds | |
EntityLookup | $entityLookup | |
EntityRevisionLookup | $entityRevisionLookup | |
int | $entitySchemaNamespace | |
EntityExistenceChecker | $entityExistenceChecker | |
EntityTitleTextLookup | $entityTitleTextLookup | |
EntityUrlLookup | $entityUrlLookup | |
EntityRedirectChecker | $entityRedirectChecker | |
EntityTitleLookup | null | $entityTitleLookup | |
CachingKartographerEmbeddingHandler | null | $kartographerEmbeddingHandler | |
bool | $useKartographerMaplinkInWikitext | |
array | $thumbLimits |
|
private |
Wraps the given formatter in an EscapingValueFormatter if necessary.
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
ValueFormatter | $formatter | The plain text formatter to wrap. |
|
private |
|
private |
|
private |
FormatterOptions | $options |
|
private |
FormatterOptions | $options |
|
private |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
InvalidArgumentException |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newCommonsMediaFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newEntityIdFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newEntitySchemaFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newGeoShapeFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newGlobeCoordinateFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newItemIdHtmlLinkFormatter | ( | FormatterOptions | $options | ) |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newLabelsProviderEntityIdHtmlLinkFormatter | ( | FormatterOptions | $options | ) |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newMonolingualFormatter | ( | $format | ) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
|
private |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newPropertyIdHtmlLinkFormatter | ( | FormatterOptions | $options | ) |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newQuantityFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newStringFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newTabularDataFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newTimeFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newUnDeserializableValueFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
Wikibase\Lib\Formatters\WikibaseValueFormatterBuilders::newUrlFormatter | ( | $format, | |
FormatterOptions | $options | ||
) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |