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

Public Member Functions

 __construct (TermValidatorFactory $termValidatorFactory, TermsCollisionDetector $termsCollisionDetector)
 
 validate (string $language, string $labelText, TermList $existingDescriptions)
 
 validateLabelText (string $labelText, string $language)
 

Private Member Functions

 validateLabelWithDescriptions (string $language, string $label, TermList $existingDescriptions)
 

Private Attributes

TermValidatorFactory $termValidatorFactory
 
TermsCollisionDetector $termsCollisionDetector
 

Additional Inherited Members

- Public Attributes inherited from Wikibase\Repo\RestApi\Application\Validation\PropertyLabelValidator
const CODE_INVALID = 'property-label-validator-code-invalid-label'
 
const CODE_EMPTY = 'property-label-validator-code-label-empty'
 
const CODE_TOO_LONG = 'property-label-validator-code-label-too-long'
 
const CODE_LABEL_DUPLICATE = 'property-label-validator-code-label-duplicate'
 
const CODE_LABEL_DESCRIPTION_EQUAL = 'property-label-validator-code-label-description-same-value'
 
const CONTEXT_LANGUAGE = 'property-label-validator-context-language'
 
const CONTEXT_LABEL = 'property-label-validator-context-label'
 
const CONTEXT_CONFLICTING_PROPERTY_ID = 'property-label-validator-context-conflicting-property-id'
 
const CONTEXT_LIMIT = 'property-label-validator-context-character-limit'
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validate ( string $language,
string $labelText,
TermList $existingDescriptions )

◆ validateLabelText()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validateLabelText ( string $labelText,
string $language )

◆ validateLabelWithDescriptions()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validateLabelWithDescriptions ( string $language,
string $label,
TermList $existingDescriptions )
private

Member Data Documentation

◆ $termsCollisionDetector

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

◆ $termValidatorFactory

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

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