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

Public Member Functions

 __construct (AliasesInLanguageValidator $aliasesInLanguageValidator, AliasLanguageCodeValidator $languageCodeValidator, AliasesDeserializer $aliasesDeserializer)
 
 validate (array $aliases, string $basePath)
 
 getValidatedAliases ()
 

Public Attributes

const CODE_INVALID_VALUE = 'aliases-validator-code-invalid-value'
 
const CONTEXT_VALUE = 'aliases-validator-context-value'
 
const CONTEXT_PATH = 'aliases-validator-context-path'
 

Private Member Functions

 deserializeAliases (array $aliases, string $basePath)
 
 validateAliases (AliasGroupList $aliases, string $basePath)
 

Private Attributes

AliasesInLanguageValidator $aliasesInLanguageValidator
 
AliasLanguageCodeValidator $languageCodeValidator
 
AliasesDeserializer $aliasesDeserializer
 
AliasGroupList $deserializedAliases = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::__construct ( AliasesInLanguageValidator $aliasesInLanguageValidator,
AliasLanguageCodeValidator $languageCodeValidator,
AliasesDeserializer $aliasesDeserializer )

Member Function Documentation

◆ deserializeAliases()

Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::deserializeAliases ( array $aliases,
string $basePath )
private

◆ getValidatedAliases()

Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::getValidatedAliases ( )

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::validate ( array $aliases,
string $basePath )

◆ validateAliases()

Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::validateAliases ( AliasGroupList $aliases,
string $basePath )
private

Member Data Documentation

◆ $aliasesDeserializer

AliasesDeserializer Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::$aliasesDeserializer
private

◆ $aliasesInLanguageValidator

AliasesInLanguageValidator Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::$aliasesInLanguageValidator
private

◆ $deserializedAliases

AliasGroupList Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::$deserializedAliases = null
private

◆ $languageCodeValidator

AliasLanguageCodeValidator Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::$languageCodeValidator
private

◆ CODE_INVALID_VALUE

const Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::CODE_INVALID_VALUE = 'aliases-validator-code-invalid-value'

◆ CONTEXT_PATH

const Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::CONTEXT_PATH = 'aliases-validator-context-path'

◆ CONTEXT_VALUE

const Wikibase\Repo\RestApi\Application\Validation\AliasesValidator::CONTEXT_VALUE = 'aliases-validator-context-value'

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