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, array $redirectBadgeItems)
 
 validateEntity (EntityDocument $entity)
 

Private Member Functions

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

Private Attributes

SiteLinkConflictLookup $siteLinkConflictLookup
 
array $redirectBadgeItems
 

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,
array $redirectBadgeItems )

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()

◆ 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

◆ $redirectBadgeItems

array Wikibase\Repo\Validators\SiteLinkUniquenessValidator::$redirectBadgeItems
private

◆ $siteLinkConflictLookup

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

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