Wikibase
MediaWiki Wikibase extension
|
Interface for services that can construct a ChangeOp from a JSON style array structure describing changes to an entity. More...
Public Member Functions | |
createEntityChangeOp (array $changeRequest) | |
Interface for services that can construct a ChangeOp from a JSON style array structure describing changes to an entity.
Implementations are encouraged to provide a detailed documentation of the serialization format they are supporting in
Wikibase\Repo\ChangeOp\ChangeOpDeserializer::createEntityChangeOp | ( | array | $changeRequest | ) |
array[] | $changeRequest | An array structure describing a changed entity (or changes to an entity). The array structure is mostly compatible with an actual entity serialization, but may contain additional array keys like "remove" or "add", for example: [ 'label' => [ 'zh' => [ 'remove' ], 'de' => [ 'value' => 'Foo' ] ] ] |
ChangeOpDeserializationException | when the provided array is invalid. |
Implemented in Wikibase\Repo\ChangeOp\Deserialization\SiteLinksChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\PropertyChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\LabelsChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\ItemChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\DescriptionsChangeOpDeserializer, Wikibase\Repo\ChangeOp\Deserialization\ClaimsChangeOpDeserializer, and Wikibase\Repo\ChangeOp\Deserialization\AliasesChangeOpDeserializer.