Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator:
+ Collaboration diagram for Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator:

Public Member Functions

 __construct (TermValidatorFactory $termValidatorFactory)
 
 validate (string $language, string $descriptionText, TermList $existingLabels)
 

Private Member Functions

 validateDescriptionText (string $descriptionText, string $language)
 
 validateDescriptionWithLabels (string $language, string $description, TermList $existingLabels)
 

Private Attributes

TermValidatorFactory $termValidatorFactory
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\PropertyDescriptionValidator
const CODE_INVALID = 'property-description-validator-code-invalid-description'
 
const CODE_EMPTY = 'property-description-validator-code-description-empty'
 
const CODE_TOO_LONG = 'property-description-validator-code-description-too-long'
 
const CODE_LABEL_DESCRIPTION_EQUAL = 'property-description-validator-code-label-description-equal'
 
const CONTEXT_LIMIT = 'property-description-validator-context-character-limit'
 
const CONTEXT_LANGUAGE = 'property-description-validator-context-language'
 
const CONTEXT_DESCRIPTION = 'property-description-validator-context-description'
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator::__construct ( TermValidatorFactory $termValidatorFactory)

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator::validate ( string $language,
string $descriptionText,
TermList $existingLabels )

◆ validateDescriptionText()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator::validateDescriptionText ( string $descriptionText,
string $language )
private

◆ validateDescriptionWithLabels()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator::validateDescriptionWithLabels ( string $language,
string $description,
TermList $existingLabels )
private

Member Data Documentation

◆ $termValidatorFactory

TermValidatorFactory Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyDescriptionValidator::$termValidatorFactory
private

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