Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
__construct (TermValidatorFactory $termValidatorFactory, TermsCollisionDetector $termsCollisionDetector) | |
validate (string $language, string $labelText, TermList $existingDescriptions) | |
validateLabelText (string $labelText, string $language) | |
Private Member Functions | |
validateLabelWithDescriptions (string $language, string $label, TermList $existingDescriptions) | |
Private Attributes | |
TermValidatorFactory | $termValidatorFactory |
TermsCollisionDetector | $termsCollisionDetector |
Additional Inherited Members | |
Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator | |
const | CODE_LABEL_SAME_AS_DESCRIPTION = 'item-label-validator-code-label-same-as-description' |
const | CODE_LABEL_DESCRIPTION_DUPLICATE = 'item-label-validator-code-label-description-duplicate' |
const | CODE_INVALID = 'item-label-validator-code-invalid-label' |
const | CODE_EMPTY = 'item-label-validator-code-label-empty' |
const | CODE_TOO_LONG = 'item-label-validator-code-label-too-long' |
const | CONTEXT_LANGUAGE = 'item-label-validator-context-language' |
const | CONTEXT_LABEL = 'item-label-validator-context-label' |
const | CONTEXT_DESCRIPTION = 'item-label-validator-context-description' |
const | CONTEXT_CONFLICTING_ITEM_ID = 'item-label-validator-context-conflicting-item-id' |
const | CONTEXT_LIMIT = 'item-label-validator-context-character-limit' |
Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryItemLabelValidator::__construct | ( | TermValidatorFactory | $termValidatorFactory, |
TermsCollisionDetector | $termsCollisionDetector ) |
Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryItemLabelValidator::validate | ( | string | $language, |
string | $labelText, | ||
TermList | $existingDescriptions ) |
Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryItemLabelValidator::validateLabelText | ( | string | $labelText, |
string | $language ) |
|
private |
|
private |
|
private |