Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator Interface Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator:

Public Member Functions

 validate (ItemId $itemId, string $language, string $label)
 

Public Attributes

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'
 

Detailed Description

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::validate ( ItemId $itemId,
string $language,
string $label )

Member Data Documentation

◆ CODE_EMPTY

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CODE_EMPTY = 'label-empty'

◆ CODE_INVALID

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CODE_INVALID = 'invalid-label'

◆ CODE_LABEL_DESCRIPTION_DUPLICATE

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CODE_LABEL_DESCRIPTION_DUPLICATE = 'item-label-description-duplicate'

◆ CODE_LABEL_DESCRIPTION_EQUAL

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CODE_LABEL_DESCRIPTION_EQUAL = 'label-description-same-value'

◆ CODE_TOO_LONG

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CODE_TOO_LONG = 'label-too-long'

◆ CONTEXT_DESCRIPTION

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CONTEXT_DESCRIPTION = 'description'

◆ CONTEXT_LABEL

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CONTEXT_LABEL = 'label'

◆ CONTEXT_LANGUAGE

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CONTEXT_LANGUAGE = 'language'

◆ CONTEXT_LIMIT

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CONTEXT_LIMIT = 'character-limit'

◆ CONTEXT_MATCHING_ITEM_ID

const Wikibase\Repo\RestApi\Application\Validation\ItemLabelValidator::CONTEXT_MATCHING_ITEM_ID = 'matching-item-id'

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