Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Validators\LabelUniquenessValidator Class Reference
+ Inheritance diagram for Wikibase\Repo\Validators\LabelUniquenessValidator:
+ Collaboration diagram for Wikibase\Repo\Validators\LabelUniquenessValidator:

Public Member Functions

 __construct (TermsCollisionDetector $collisionDetector)
 
- Public Member Functions inherited from Wikibase\Repo\Validators\EntityValidator
 validateEntity (EntityDocument $entity)
 Validate an entity before saving. More...
 

Private Member Functions

 collisionToError (string $code, EntityId $collidingEntityId, string $lang, string $label)
 

Private Attributes

 $collisionDetector
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\LabelUniquenessValidator::__construct ( TermsCollisionDetector  $collisionDetector)

Member Function Documentation

◆ collisionToError()

Wikibase\Repo\Validators\LabelUniquenessValidator::collisionToError ( string  $code,
EntityId  $collidingEntityId,
string  $lang,
string  $label 
)
private

Member Data Documentation

◆ $collisionDetector

Wikibase\Repo\Validators\LabelUniquenessValidator::$collisionDetector
private

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