Wikibase
MediaWiki Wikibase extension
|
Constructs ChangeOps for fingerprint (terms) change requests. More...
Public Member Functions | |
__construct (LabelsChangeOpDeserializer $labelsChangeOpDeserializer, DescriptionsChangeOpDeserializer $descriptionsChangeOpDeserializer, AliasesChangeOpDeserializer $aliasesChangeOpDeserializer, FingerprintChangeOpFactory $fingerprintChangeOpFactory) | |
createEntityChangeOp (array $changeRequest) | |
Private Attributes | |
$fingerprintChangeOpFactory | |
$labelsChangeOpDeserializer | |
$descriptionsChangeOpDeserializer | |
$aliasesChangeOpDeserializer | |
Constructs ChangeOps for fingerprint (terms) change requests.
Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::__construct | ( | LabelsChangeOpDeserializer | $labelsChangeOpDeserializer, |
DescriptionsChangeOpDeserializer | $descriptionsChangeOpDeserializer, | ||
AliasesChangeOpDeserializer | $aliasesChangeOpDeserializer, | ||
FingerprintChangeOpFactory | $fingerprintChangeOpFactory | ||
) |
Wikibase\Repo\ChangeOp\Deserialization\FingerprintChangeOpDeserializer::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. |
Implements Wikibase\Repo\ChangeOp\ChangeOpDeserializer.
|
private |
|
private |
|
private |
|
private |