Wikibase
MediaWiki Wikibase extension
|
API module for using value formatters. More...
Public Member Functions | |
__construct (ApiMain $mainModule, string $moduleName, OutputFormatValueFormatterFactory $valueFormatterFactory, OutputFormatSnakFormatterFactory $snakFormatterFactory, DataTypeFactory $dataTypeFactory, DataValueFactory $dataValueFactory, ApiErrorReporter $apiErrorReporter, ?IBufferingStatsdDataFactory $stats, EntityIdParser $entityIdParser, PropertyDataTypeLookup $dataTypeLookup, SnakValueDeserializer $snakValueDeserializer) | |
execute () | |
Static Public Member Functions | |
static | factory (ApiMain $mainModule, string $moduleName, IBufferingStatsdDataFactory $stats, 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) | |
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, | ||
?IBufferingStatsdDataFactory | $stats, | ||
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |