WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator Class Reference

Public Member Functions

 __construct (ContentLanguages $languages)
 
 validate ( $input, ValidationContext $context, $termText=null)
 

Private Member Functions

 isValidItemId ( $id)
 

Private Attributes

const PRIVATE_USE_SUBTAG_SEPARATOR = '-x-'
 According to BCP 47 (https://tools.ietf.org/html/bcp47)
 
 $languages
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator::__construct ( ContentLanguages $languages)

Member Function Documentation

◆ isValidItemId()

Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator::isValidItemId ( $id)
private

◆ validate()

Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator::validate ( $input,
ValidationContext $context,
$termText = null )
Parameters
string$input
ValidationContext$context
string | null$termTextfor context in the error message, if available

Member Data Documentation

◆ $languages

Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator::$languages
private

◆ PRIVATE_USE_SUBTAG_SEPARATOR

const Wikibase\Lexeme\DataAccess\ChangeOp\Validation\LexemeTermLanguageValidator::PRIVATE_USE_SUBTAG_SEPARATOR = '-x-'
private

According to BCP 47 (https://tools.ietf.org/html/bcp47)


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