|
Wikibase
MediaWiki Wikibase extension
|
API module for using value formatters. More...
Inheritance diagram for Wikibase\Repo\Api\FormatSnakValue:
Collaboration diagram for Wikibase\Repo\Api\FormatSnakValue:Public Member Functions | |
| __construct (ApiMain $mainModule, string $moduleName, OutputFormatValueFormatterFactory $valueFormatterFactory, OutputFormatSnakFormatterFactory $snakFormatterFactory, DataTypeFactory $dataTypeFactory, DataValueFactory $dataValueFactory, ApiErrorReporter $apiErrorReporter, LanguageNameUtils $languageNameUtils, ?StatsFactory $statsFactory, EntityIdParser $entityIdParser, PropertyDataTypeLookup $dataTypeLookup, SnakValueDeserializer $snakValueDeserializer) | |
| execute () | |
Static Public Member Functions | |
| static | factory (ApiMain $mainModule, string $moduleName, LanguageNameUtils $languageNameUtils, StatsFactory $statsFactory, ApiHelperFactory $apiHelperFactory, DataTypeFactory $dataTypeFactory, DataValueFactory $dataValueFactory, EntityIdParser $entityIdParser, PropertyDataTypeLookup $dataTypeLookup, OutputFormatSnakFormatterFactory $snakFormatterFactory, SnakValueDeserializer $snakValueDeserializer, OutputFormatValueFormatterFactory $valueFormatterFactory) |
Protected Member Functions | |
| getAllowedParams () | |
| getExamplesMessages () | |
Private Member Functions | |
| formatValue (array $params, DataValue $value, ?string $dataTypeId) | |
| getValueFormatter (array $params) | |
| getSnakFormatter (array $params) | |
| decodeDataValue (array $params) | |
| getOptionsObject (?string $optionsParam) | |
| setValidOption (FormatterOptions $options, string $option, $value) | |
| getDataTypeId (array $params) | |
| Returns the data type ID specified by the parameters. | |
| lookUpPropertyDataType (string $id) | |
API module for using value formatters.
| Wikibase\Repo\Api\FormatSnakValue::__construct | ( | ApiMain | $mainModule, |
| string | $moduleName, | ||
| OutputFormatValueFormatterFactory | $valueFormatterFactory, | ||
| OutputFormatSnakFormatterFactory | $snakFormatterFactory, | ||
| DataTypeFactory | $dataTypeFactory, | ||
| DataValueFactory | $dataValueFactory, | ||
| ApiErrorReporter | $apiErrorReporter, | ||
| LanguageNameUtils | $languageNameUtils, | ||
| ?StatsFactory | $statsFactory, | ||
| EntityIdParser | $entityIdParser, | ||
| PropertyDataTypeLookup | $dataTypeLookup, | ||
| SnakValueDeserializer | $snakValueDeserializer ) |
|
private |
| ApiUsageException | |
| LogicException |
| Wikibase\Repo\Api\FormatSnakValue::execute | ( | ) |
|
static |
|
private |
|
protected |
|
private |
Returns the data type ID specified by the parameters.
| array | $params |
|
protected |
|
private |
|
private |
| LogicException |
|
private |
| LogicException |
|
private |
|
private |
| FormatterOptions | $options | |
| string | $option | |
| mixed | $value |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |