Wikibase
MediaWiki Wikibase extension
|
Provides validators for terms (like the maximum length of labels, etc). More...
Public Member Functions | |
__construct ( $maxLength, array $languageCodes, EntityIdParser $idParser, TermsCollisionDetectorFactory $termsCollisionDetectorFactory, TermLookup $termLookup, LanguageNameUtils $languageNameUtils) | |
getFingerprintUniquenessValidator (string $entityType) | |
This function returns a fingerprint uniqueness validator that validates uniqueness in the term store. | |
getLabelDescriptionNotEqualValidator () | |
Returns a validator for checking distinctness of labels & descriptions. | |
getLabelValidator ( $entityType) | |
getDescriptionValidator () | |
getAliasValidator () | |
getLabelLanguageValidator () | |
getDescriptionLanguageValidator () | |
getAliasLanguageValidator () | |
getLabelUniquenessValidator ( $entityType) | |
Private Member Functions | |
getCommonTermValidators ( $errorCodePrefix) | |
getLanguageValidators () | |
Private Attributes | |
$maxLength | |
$languageCodes | |
$idParser | |
$termsCollisionDetectorFactory | |
$termLookup | |
$languageNameUtils | |
Provides validators for terms (like the maximum length of labels, etc).
Wikibase\Repo\Validators\TermValidatorFactory::__construct | ( | $maxLength, | |
array | $languageCodes, | ||
EntityIdParser | $idParser, | ||
TermsCollisionDetectorFactory | $termsCollisionDetectorFactory, | ||
TermLookup | $termLookup, | ||
LanguageNameUtils | $languageNameUtils ) |
int | $maxLength | The maximum length of terms. |
string[] | $languageCodes | A list of valid language codes |
EntityIdParser | $idParser | |
TermsCollisionDetectorFactory | $termsCollisionDetectorFactory | |
TermLookup | $termLookup | |
LanguageNameUtils | $languageNameUtils |
InvalidArgumentException |
Wikibase\Repo\Validators\TermValidatorFactory::getAliasLanguageValidator | ( | ) |
Wikibase\Repo\Validators\TermValidatorFactory::getAliasValidator | ( | ) |
|
private |
string | $errorCodePrefix |
Wikibase\Repo\Validators\TermValidatorFactory::getDescriptionLanguageValidator | ( | ) |
Wikibase\Repo\Validators\TermValidatorFactory::getDescriptionValidator | ( | ) |
Wikibase\Repo\Validators\TermValidatorFactory::getFingerprintUniquenessValidator | ( | string | $entityType | ) |
This function returns a fingerprint uniqueness validator that validates uniqueness in the term store.
Wikibase\Repo\Validators\TermValidatorFactory::getLabelDescriptionNotEqualValidator | ( | ) |
Returns a validator for checking distinctness of labels & descriptions.
Wikibase\Repo\Validators\TermValidatorFactory::getLabelLanguageValidator | ( | ) |
Wikibase\Repo\Validators\TermValidatorFactory::getLabelUniquenessValidator | ( | $entityType | ) |
Wikibase\Repo\Validators\TermValidatorFactory::getLabelValidator | ( | $entityType | ) |
string | $entityType |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |