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, PropertyWriteModelRetriever $propertyRetriever)
 
 validate (PropertyId $propertyId, string $language, string $label)
 
 validateLabel (string $labelText)
 

Private Member Functions

 validateProperty (PropertyId $propertyId, string $language, string $label)
 

Private Attributes

TermValidatorFactory $termValidatorFactory
 
TermsCollisionDetector $termsCollisionDetector
 
PropertyWriteModelRetriever $propertyRetriever
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validate ( PropertyId $propertyId,
string $language,
string $label )

◆ validateLabel()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validateLabel ( string $labelText)

◆ validateProperty()

Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::validateProperty ( PropertyId $propertyId,
string $language,
string $label )
private

Member Data Documentation

◆ $propertyRetriever

PropertyWriteModelRetriever Wikibase\Repo\RestApi\Infrastructure\TermValidatorFactoryPropertyLabelValidator::$propertyRetriever
private

◆ $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: