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

Validator for checking that site links are unique across all Items. More...

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

Public Member Functions

 __construct (SiteLinkConflictLookup $siteLinkConflictLookup)
 
 validateEntity (EntityDocument $entity)
 

Private Member Functions

 getConflictError (array $conflict)
 Get Message for a conflict.
 

Private Attributes

 $siteLinkConflictLookup
 

Detailed Description

Validator for checking that site links are unique across all Items.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Validators\SiteLinkUniquenessValidator::__construct ( SiteLinkConflictLookup  $siteLinkConflictLookup)

Member Function Documentation

◆ getConflictError()

Wikibase\Repo\Validators\SiteLinkUniquenessValidator::getConflictError ( array  $conflict)
private

Get Message for a conflict.

Parameters
array$conflictA record as returned by SiteLinkConflictLookup::getConflictsForItem()
Returns
Error

◆ validateEntity()

Wikibase\Repo\Validators\SiteLinkUniquenessValidator::validateEntity ( EntityDocument  $entity)
See also
EntityValidator::validate()
Parameters
EntityDocument$entity
Returns
Result

Implements Wikibase\Repo\Validators\EntityValidator.

Member Data Documentation

◆ $siteLinkConflictLookup

Wikibase\Repo\Validators\SiteLinkUniquenessValidator::$siteLinkConflictLookup
private

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