Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
__construct (TermValidatorFactoryLabelTextValidator $labelTextValidator, TermsCollisionDetector $termsCollisionDetector, ItemRetriever $itemRetriever) | |
validate (ItemId $itemId, string $language, string $label) | |
Private Member Functions | |
validateItem (ItemId $itemId, string $language, string $label) | |
Private Attributes | |
TermValidatorFactoryLabelTextValidator | $labelTextValidator |
TermsCollisionDetector | $termsCollisionDetector |
ItemRetriever | $itemRetriever |
Additional Inherited Members | |
Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator | |
const | CODE_LABEL_DESCRIPTION_EQUAL = 'label-description-same-value' |
const | CODE_LABEL_DESCRIPTION_DUPLICATE = 'item-label-description-duplicate' |
const | CODE_INVALID = 'invalid-label' |
const | CODE_EMPTY = 'label-empty' |
const | CODE_TOO_LONG = 'label-too-long' |
const | CONTEXT_LANGUAGE = 'language' |
const | CONTEXT_LABEL = 'label' |
const | CONTEXT_DESCRIPTION = 'description' |
const | CONTEXT_MATCHING_ITEM_ID = 'matching-item-id' |
const | CONTEXT_LIMIT = 'character-limit' |
Wikibase\Repo\RestApi\Infrastructure\WikibaseRepoItemLabelValidator::__construct | ( | TermValidatorFactoryLabelTextValidator | $labelTextValidator, |
TermsCollisionDetector | $termsCollisionDetector, | ||
ItemRetriever | $itemRetriever ) |
Wikibase\Repo\RestApi\Infrastructure\WikibaseRepoItemLabelValidator::validate | ( | ItemId | $itemId, |
string | $language, | ||
string | $label ) |
|
private |
|
private |
|
private |
|
private |