Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Validators\FingerprintValidator Interface Reference

Validator interface for validating Entity Fingerprints. More...

+ Inheritance diagram for Wikibase\Repo\Validators\FingerprintValidator:

Public Member Functions

 validateFingerprint (TermList $labels, TermList $descriptions, EntityId $entityId, array $languageCodes=null)
 

Detailed Description

Validator interface for validating Entity Fingerprints.

This is intended particularly for uniqueness checks.

Author
Daniel Kinzler

Member Function Documentation

◆ validateFingerprint()

Wikibase\Repo\Validators\FingerprintValidator::validateFingerprint ( TermList  $labels,
TermList  $descriptions,
EntityId  $entityId,
array  $languageCodes = null 
)
Parameters
TermList$labels
TermList$descriptions
EntityId$entityIdContext for uniqueness checks. Conflicts with this entity are ignored.
string[] | null$languageCodesIf given, the validation is limited to the given languages. This is intended for optimization for the common case of only a single language changing.
Returns
Result

Implemented in Wikibase\Repo\Validators\CompositeFingerprintValidator, Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator, Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator, and Wikibase\Repo\Validators\NullFingerprintValidator.


The documentation for this interface was generated from the following file: