Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\NullTermsCollisionDetector Class Reference

TermsCollisionDetector implementation that does nothing (always returns no collision) More...

+ Inheritance diagram for Wikibase\Repo\Store\NullTermsCollisionDetector:
+ Collaboration diagram for Wikibase\Repo\Store\NullTermsCollisionDetector:

Public Member Functions

 detectLabelCollision (string $lang, string $label)
 Returns an entity id that collides with given label in given languages, if any. More...
 
 detectLabelAndDescriptionCollision (string $lang, string $label, string $description)
 Returns an entity id that collides with given label and description in given languages, if any. More...
 
 detectLabelsCollision (TermList $labels)
 Returns entity ids that collides with given labels in given languages. More...
 

Detailed Description

TermsCollisionDetector implementation that does nothing (always returns no collision)

Member Function Documentation

◆ detectLabelAndDescriptionCollision()

Wikibase\Repo\Store\NullTermsCollisionDetector::detectLabelAndDescriptionCollision ( string  $lang,
string  $label,
string  $description 
)

Returns an entity id that collides with given label and description in given languages, if any.

Parameters
string$lang
string$label
string$description
Returns
EntityId|null

Implements Wikibase\Repo\Store\TermsCollisionDetector.

◆ detectLabelCollision()

Wikibase\Repo\Store\NullTermsCollisionDetector::detectLabelCollision ( string  $lang,
string  $label 
)

Returns an entity id that collides with given label in given languages, if any.

Parameters
string$lang
string$label
Returns
EntityId|null

Implements Wikibase\Repo\Store\TermsCollisionDetector.

◆ detectLabelsCollision()

Wikibase\Repo\Store\NullTermsCollisionDetector::detectLabelsCollision ( TermList  $labels)

Returns entity ids that collides with given labels in given languages.

Parameters
TermList$labels// example return array [ 'P1' => [ Term('en', 'label'), Term('de', 'label') ] ]
Returns
array

Implements Wikibase\Repo\Store\TermsCollisionDetector.


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