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

Public Member Functions

 __construct (TermValidatorFactory $termValidatorFactory, TermsCollisionDetector $termsCollisionDetector)
 
 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
 
TermsCollisionDetector $termsCollisionDetector
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\ItemDescriptionValidator
const CODE_INVALID = 'item-description-validator-code-invalid-description'
 
const CODE_EMPTY = 'item-description-validator-code-description-empty'
 
const CODE_TOO_LONG = 'item-description-validator-code-description-too-long'
 
const CODE_DESCRIPTION_SAME_AS_LABEL = 'item-description-validator-code-description-same-as-label'
 
const CODE_DESCRIPTION_LABEL_DUPLICATE = 'item-description-validator-code-description-label-duplicate'
 
const CONTEXT_LIMIT = 'item-description-validator-context-character-limit'
 
const CONTEXT_LANGUAGE = 'item-description-validator-context-language'
 
const CONTEXT_LABEL = 'item-description-validator-context-label'
 
const CONTEXT_DESCRIPTION = 'item-description-validator-context-description'
 
const CONTEXT_CONFLICTING_ITEM_ID = 'item-description-validator-context-conflicting-item-id'
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryItemDescriptionValidator::__construct ( TermValidatorFactory $termValidatorFactory,
TermsCollisionDetector $termsCollisionDetector )

Member Function Documentation

◆ validate()

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

◆ validateDescriptionText()

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

◆ validateDescriptionWithLabels()

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

Member Data Documentation

◆ $termsCollisionDetector

TermsCollisionDetector Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryItemDescriptionValidator::$termsCollisionDetector
private

◆ $termValidatorFactory

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

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