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

Public Member Functions

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

Public Attributes

const CODE_INVALID = 'invalid-description'
 
const CODE_EMPTY = 'description-empty'
 
const CODE_TOO_LONG = 'description-too-long'
 
const CODE_LABEL_DESCRIPTION_EQUAL = 'label-description-equal'
 
const CONTEXT_LIMIT = 'character-limit'
 
const CONTEXT_LANGUAGE = 'language'
 
const CONTEXT_DESCRIPTION = 'description'
 

Detailed Description

Member Function Documentation

◆ validate()

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

Member Data Documentation

◆ CODE_EMPTY

const Wikibase\Repo\RestApi\Application\Validation\PropertyDescriptionValidator::CODE_EMPTY = 'description-empty'

◆ CODE_INVALID

const Wikibase\Repo\RestApi\Application\Validation\PropertyDescriptionValidator::CODE_INVALID = 'invalid-description'

◆ CODE_LABEL_DESCRIPTION_EQUAL

const Wikibase\Repo\RestApi\Application\Validation\PropertyDescriptionValidator::CODE_LABEL_DESCRIPTION_EQUAL = 'label-description-equal'

◆ CODE_TOO_LONG

const Wikibase\Repo\RestApi\Application\Validation\PropertyDescriptionValidator::CODE_TOO_LONG = 'description-too-long'

◆ CONTEXT_DESCRIPTION

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

◆ CONTEXT_LANGUAGE

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

◆ CONTEXT_LIMIT

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

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