Wikibase
MediaWiki Wikibase extension
|
Validator interface for validating Entity Fingerprints. More...
Public Member Functions | |
validateFingerprint (TermList $labels, TermList $descriptions, EntityId $entityId, array $languageCodes=null) | |
Validator interface for validating Entity Fingerprints.
This is intended particularly for uniqueness checks.
Wikibase\Repo\Validators\FingerprintValidator::validateFingerprint | ( | TermList | $labels, |
TermList | $descriptions, | ||
EntityId | $entityId, | ||
array | $languageCodes = null |
||
) |
TermList | $labels | |
TermList | $descriptions | |
EntityId | $entityId | Context for uniqueness checks. Conflicts with this entity are ignored. |
string[] | null | $languageCodes | If given, the validation is limited to the given languages. This is intended for optimization for the common case of only a single language changing. |
Implemented in Wikibase\Repo\Validators\CompositeFingerprintValidator, Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator, Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator, and Wikibase\Repo\Validators\NullFingerprintValidator.