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

Public Member Functions

 __construct (DescriptionsDeserializer $deserializer, DescriptionLanguageCodeValidator $languageCodeValidator)
 
 validate (array $serialization, string $basePath='')
 
 getPartiallyValidatedDescriptions ()
 

Public Attributes

const CODE_DESCRIPTIONS_NOT_ASSOCIATIVE = 'descriptions-syntax-validator-code-descriptions-not-associative'
 
const CODE_EMPTY_DESCRIPTION = 'descriptions-syntax-validator-code-description-empty'
 
const CODE_INVALID_DESCRIPTION_TYPE = 'descriptions-syntax-validator-code-invalid-description-type'
 
const CONTEXT_FIELD = 'descriptions-syntax-validator-context-field'
 
const CONTEXT_VALUE = 'descriptions-syntax-validator-context-value'
 
const CONTEXT_DESCRIPTION = 'descriptions-syntax-validator-context-description'
 
const CONTEXT_LANGUAGE = 'descriptions-syntax-validator-context-language'
 

Private Member Functions

 validateLanguageCodes (array $languageCodes, string $basePath)
 
 validateSerialization (array $serialization)
 

Private Attributes

DescriptionsDeserializer $deserializer
 
DescriptionLanguageCodeValidator $languageCodeValidator
 
PartiallyValidatedDescriptions $deserializedDescriptions
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::__construct ( DescriptionsDeserializer $deserializer,
DescriptionLanguageCodeValidator $languageCodeValidator )

Member Function Documentation

◆ getPartiallyValidatedDescriptions()

Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::getPartiallyValidatedDescriptions ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::validate ( array $serialization,
string $basePath = '' )

◆ validateLanguageCodes()

Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::validateLanguageCodes ( array $languageCodes,
string $basePath )
private

◆ validateSerialization()

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

Member Data Documentation

◆ $deserializedDescriptions

PartiallyValidatedDescriptions Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::$deserializedDescriptions
private

◆ $deserializer

DescriptionsDeserializer Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::$deserializer
private

◆ $languageCodeValidator

DescriptionLanguageCodeValidator Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::$languageCodeValidator
private

◆ CODE_DESCRIPTIONS_NOT_ASSOCIATIVE

const Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::CODE_DESCRIPTIONS_NOT_ASSOCIATIVE = 'descriptions-syntax-validator-code-descriptions-not-associative'

◆ CODE_EMPTY_DESCRIPTION

const Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::CODE_EMPTY_DESCRIPTION = 'descriptions-syntax-validator-code-description-empty'

◆ CODE_INVALID_DESCRIPTION_TYPE

const Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::CODE_INVALID_DESCRIPTION_TYPE = 'descriptions-syntax-validator-code-invalid-description-type'

◆ CONTEXT_DESCRIPTION

const Wikibase\Repo\RestApi\Application\Validation\DescriptionsSyntaxValidator::CONTEXT_DESCRIPTION = 'descriptions-syntax-validator-context-description'

◆ CONTEXT_FIELD

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

◆ CONTEXT_LANGUAGE

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

◆ CONTEXT_VALUE

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

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