Wikibase
MediaWiki Wikibase extension
|
API module for using value formatters. More...
Public Member Functions | |
__construct (ApiMain $mainModule, $moduleName, OutputFormatValueFormatterFactory $valueFormatterFactory, OutputFormatSnakFormatterFactory $snakFormatterFactory, DataValueFactory $dataValueFactory, ApiErrorReporter $apiErrorReporter) | |
execute () | |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Private Member Functions | |
formatValue ( $params, $value, $dataTypeId) | |
getValueFormatter ( $params) | |
getSnakFormatter ( $params) | |
decodeSnak ( $propertyIdSerialization, DataValue $dataValue) | |
decodeDataValue ( $json) | |
getOptionsObject ( $optionsParam) | |
getDataTypeId (array $params) | |
Returns the data type ID specified by the parameters. | |
Private Attributes | |
$valueFormatterFactory | |
$snakFormatterFactory | |
$dataValueFactory | |
$errorReporter | |
API module for using value formatters.
Wikibase\Repo\Api\FormatSnakValue::__construct | ( | ApiMain | $mainModule, |
$moduleName, | |||
OutputFormatValueFormatterFactory | $valueFormatterFactory, | ||
OutputFormatSnakFormatterFactory | $snakFormatterFactory, | ||
DataValueFactory | $dataValueFactory, | ||
ApiErrorReporter | $apiErrorReporter | ||
) |
ApiMain | $mainModule | |
string | $moduleName | |
OutputFormatValueFormatterFactory | $valueFormatterFactory | |
OutputFormatSnakFormatterFactory | $snakFormatterFactory | |
DataValueFactory | $dataValueFactory | |
ApiErrorReporter | $apiErrorReporter |
|
private |
string | $json | A JSON-encoded DataValue |
ApiUsageException | |
LogicException |
|
private |
string | $propertyIdSerialization | |
DataValue | $dataValue |
Wikibase\Repo\Api\FormatSnakValue::execute | ( | ) |
|
private |
|
protected |
|
private |
Returns the data type ID specified by the parameters.
array | $params |
|
protected |
|
private |
string | null | $optionsParam |
|
private |
LogicException |
|
private |
LogicException |
|
private |
|
private |
|
private |
|
private |