Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator Class Reference

Public Member Functions

 __construct (array $validLanguageCodes)
 
 validate (string $languageCode)
 

Public Attributes

const CODE_INVALID_LANGUAGE_CODE = 'language-code-validator-code-invalid-language-code'
 
const CONTEXT_LANGUAGE_CODE = 'language-code-validator-context-language-code'
 
const CONTEXT_PATH = 'language-code-validator-context-path'
 

Private Attributes

array $validLanguageCodes
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::__construct ( array $validLanguageCodes)

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::validate ( string $languageCode)

Member Data Documentation

◆ $validLanguageCodes

array Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::$validLanguageCodes
private

◆ CODE_INVALID_LANGUAGE_CODE

const Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::CODE_INVALID_LANGUAGE_CODE = 'language-code-validator-code-invalid-language-code'

◆ CONTEXT_LANGUAGE_CODE

const Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::CONTEXT_LANGUAGE_CODE = 'language-code-validator-context-language-code'

◆ CONTEXT_PATH

const Wikibase\Repo\RestApi\Application\Validation\LanguageCodeValidator::CONTEXT_PATH = 'language-code-validator-context-path'

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