Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator Class Reference

Decorator for FingerprintUniquenessValidator that knows whether it should actually perform the validation in new store based on the entity id and the migration stage. More...

+ Inheritance diagram for Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator:
+ Collaboration diagram for Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator:

Public Member Functions

 __construct (array $itemTermsMigrationStages, int $propertyTermsMigrationStage, FingerprintUniquenessValidator $fingerprintUniquenessValidator)
 
 validate ( $value)
 
- Public Member Functions inherited from Wikibase\Repo\Validators\FingerprintUniquenessValidator
 __construct (TermsCollisionDetector $termsCollisionDetector, TermLookup $termLookup)
 
 setOptions (array $options)
 

Private Member Functions

 validateProperty ( $value)
 
 validateItem ( $value, ItemId $itemId)
 

Private Attributes

 $itemTermsMigrationStages
 
 $propertyTermsMigrationStage
 
 $fingerprintUniquenessValidator
 

Detailed Description

Decorator for FingerprintUniquenessValidator that knows whether it should actually perform the validation in new store based on the entity id and the migration stage.

This is temporary solution and should be removed completely once we switch to new store for good.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::__construct ( array  $itemTermsMigrationStages,
int  $propertyTermsMigrationStage,
FingerprintUniquenessValidator  $fingerprintUniquenessValidator 
)

Member Function Documentation

◆ validate()

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::validate (   $value)

◆ validateItem()

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::validateItem (   $value,
ItemId  $itemId 
)
private

◆ validateProperty()

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::validateProperty (   $value)
private

Member Data Documentation

◆ $fingerprintUniquenessValidator

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::$fingerprintUniquenessValidator
private

◆ $itemTermsMigrationStages

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::$itemTermsMigrationStages
private

◆ $propertyTermsMigrationStage

Wikibase\Repo\Validators\ByIdFingerprintUniquenessValidator::$propertyTermsMigrationStage
private

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