Wikibase
MediaWiki Wikibase extension
|
Low level factory for ValueFormatters for well known data types. More...
Public Member Functions | |
__construct (FormatterLabelDescriptionLookupFactory $labelDescriptionLookupFactory, LanguageNameLookupFactory $languageNameLookupFactory, EntityIdParser $itemUriParser, string $geoShapeStorageBaseUrl, string $tabularDataStorageBaseUrl, TermFallbackCacheFacade $termFallbackCacheFacade, EntityLookup $entityLookup, RedirectResolvingLatestRevisionLookup $redirectResolvingLatestRevisionLookup, EntityExistenceChecker $entityExistenceChecker, EntityTitleTextLookup $entityTitleTextLookup, EntityUrlLookup $entityUrlLookup, EntityRedirectChecker $entityRedirectChecker, LanguageFactory $languageFactory, EntityTitleLookup $entityTitleLookup=null, CachingKartographerEmbeddingHandler $kartographerEmbeddingHandler=null, bool $useKartographerMaplinkInWikitext=false, array $thumbLimits=[]) | |
newEntityIdFormatter ( $format, FormatterOptions $options) | |
newPropertyIdHtmlLinkFormatter (FormatterOptions $options) | |
newItemIdHtmlLinkFormatter (FormatterOptions $options) | |
newStringFormatter ( $format) | |
newUnDeserializableValueFormatter ( $format, FormatterOptions $options) | |
newUrlFormatter ( $format, FormatterOptions $options) | |
newCommonsMediaFormatter ( $format, FormatterOptions $options) | |
newGeoShapeFormatter ( $format) | |
newTabularDataFormatter ( $format, FormatterOptions $options) | |
newTimeFormatter ( $format, FormatterOptions $options) | |
newQuantityFormatter ( $format, FormatterOptions $options) | |
newGlobeCoordinateFormatter ( $format, FormatterOptions $options) | |
newMonolingualFormatter ( $format, FormatterOptions $options) | |
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, |
LanguageNameLookupFactory | $languageNameLookupFactory, | ||
EntityIdParser | $itemUriParser, | ||
string | $geoShapeStorageBaseUrl, | ||
string | $tabularDataStorageBaseUrl, | ||
TermFallbackCacheFacade | $termFallbackCacheFacade, | ||
EntityLookup | $entityLookup, | ||
RedirectResolvingLatestRevisionLookup | $redirectResolvingLatestRevisionLookup, | ||
EntityExistenceChecker | $entityExistenceChecker, | ||
EntityTitleTextLookup | $entityTitleTextLookup, | ||
EntityUrlLookup | $entityUrlLookup, | ||
EntityRedirectChecker | $entityRedirectChecker, | ||
LanguageFactory | $languageFactory, | ||
EntityTitleLookup | $entityTitleLookup = null, | ||
CachingKartographerEmbeddingHandler | $kartographerEmbeddingHandler = null, | ||
bool | $useKartographerMaplinkInWikitext = false, | ||
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::newGeoShapeFormatter | ( | $format | ) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
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, | |
FormatterOptions | $options ) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
FormatterOptions | $options |
|
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 | ) |
string | $format | The desired target format, see SnakFormatter::FORMAT_XXX |
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 |