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

Public Member Functions

 validate (PropertyId $propertyId, string $language, string $label)
 

Public Attributes

const CODE_LABEL_DESCRIPTION_EQUAL = 'label-description-same-value'
 
const CODE_LABEL_DUPLICATE = 'property-label-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_MATCHING_PROPERTY_ID = 'matching-property-id'
 
const CONTEXT_LIMIT = 'character-limit'
 

Detailed Description

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\PropertyLabelValidator::validate ( PropertyId $propertyId,
string $language,
string $label )

Member Data Documentation

◆ CODE_EMPTY

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

◆ CODE_INVALID

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

◆ CODE_LABEL_DESCRIPTION_EQUAL

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

◆ CODE_LABEL_DUPLICATE

const Wikibase\Repo\RestApi\Application\Validation\PropertyLabelValidator::CODE_LABEL_DUPLICATE = 'property-label-duplicate'

◆ CODE_TOO_LONG

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

◆ CONTEXT_LABEL

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

◆ CONTEXT_LANGUAGE

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

◆ CONTEXT_LIMIT

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

◆ CONTEXT_MATCHING_PROPERTY_ID

const Wikibase\Repo\RestApi\Application\Validation\PropertyLabelValidator::CONTEXT_MATCHING_PROPERTY_ID = 'matching-property-id'

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