Wikibase
MediaWiki Wikibase extension
|
Validator for checking that the combination of an entity's label and description are unique (per language). More...
Public Member Functions | |
__construct (LabelDescriptionDuplicateDetector $duplicateDetector) | |
validateEntity (EntityDocument $entity) | |
validateFingerprint (TermList $labels, TermList $descriptions, EntityId $entityId, array $languageCodes=null) | |
Private Attributes | |
$duplicateDetector | |
Validator for checking that the combination of an entity's label and description are unique (per language).
This is used to make sure that no two items have the same label and description.
Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator::__construct | ( | LabelDescriptionDuplicateDetector | $duplicateDetector | ) |
Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator::validateEntity | ( | EntityDocument | $entity | ) |
EntityDocument | $entity |
Implements Wikibase\Repo\Validators\EntityValidator.
Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator::validateFingerprint | ( | TermList | $labels, |
TermList | $descriptions, | ||
EntityId | $entityId, | ||
array | $languageCodes = null |
||
) |
TermList | $labels | |
TermList | $descriptions | |
EntityId | $entityId | |
string[] | null | $languageCodes |
Implements Wikibase\Repo\Validators\FingerprintValidator.
|
private |