Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator:

Public Member Functions

 __construct (LabelsDeserializer $deserializer, LanguageCodeValidator $languageCodeValidator)
 
 validate (array $serialization)
 
 getPartiallyValidatedLabels ()
 

Public Attributes

const CODE_LABELS_NOT_ASSOCIATIVE = 'labels-syntax-validator-code-labels-not-associative'
 
const CODE_EMPTY_LABEL = 'labels-syntax-validator-code-label-empty'
 
const CODE_INVALID_LABEL_TYPE = 'labels-syntax-validator-code-invalid-label-type'
 
const CONTEXT_FIELD = 'labels-syntax-validator-context-field'
 
const CONTEXT_VALUE = 'labels-syntax-validator-context-value'
 
const CONTEXT_LABEL = 'labels-syntax-validator-context-label'
 
const CONTEXT_LANGUAGE = 'labels-syntax-validator-context-language'
 

Private Member Functions

 validateLanguageCodes (array $languageCodes)
 
 validateSerialization (array $serialization)
 

Private Attributes

LabelsDeserializer $deserializer
 
LanguageCodeValidator $languageCodeValidator
 
PartiallyValidatedLabels $deserializedLabels
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::__construct ( LabelsDeserializer $deserializer,
LanguageCodeValidator $languageCodeValidator )

Member Function Documentation

◆ getPartiallyValidatedLabels()

Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::getPartiallyValidatedLabels ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::validate ( array $serialization)

◆ validateLanguageCodes()

Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::validateLanguageCodes ( array $languageCodes)
private

◆ validateSerialization()

Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::validateSerialization ( array $serialization)
private

Member Data Documentation

◆ $deserializedLabels

PartiallyValidatedLabels Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::$deserializedLabels
private

◆ $deserializer

LabelsDeserializer Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::$deserializer
private

◆ $languageCodeValidator

LanguageCodeValidator Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::$languageCodeValidator
private

◆ CODE_EMPTY_LABEL

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CODE_EMPTY_LABEL = 'labels-syntax-validator-code-label-empty'

◆ CODE_INVALID_LABEL_TYPE

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CODE_INVALID_LABEL_TYPE = 'labels-syntax-validator-code-invalid-label-type'

◆ CODE_LABELS_NOT_ASSOCIATIVE

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CODE_LABELS_NOT_ASSOCIATIVE = 'labels-syntax-validator-code-labels-not-associative'

◆ CONTEXT_FIELD

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CONTEXT_FIELD = 'labels-syntax-validator-context-field'

◆ CONTEXT_LABEL

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CONTEXT_LABEL = 'labels-syntax-validator-context-label'

◆ CONTEXT_LANGUAGE

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CONTEXT_LANGUAGE = 'labels-syntax-validator-context-language'

◆ CONTEXT_VALUE

const Wikibase\Repo\RestApi\Application\Validation\LabelsSyntaxValidator::CONTEXT_VALUE = 'labels-syntax-validator-context-value'

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