Wikibase
MediaWiki Wikibase extension
|
TermsCollisionDetector implementation that does nothing (always returns no collision) More...
Public Member Functions | |
detectLabelCollision (string $lang, string $label) | |
Returns an entity id that collides with given label in given languages, if any. | |
detectLabelAndDescriptionCollision (string $lang, string $label, string $description) | |
Returns an entity id that collides with given label and description in given languages, if any. | |
detectLabelsCollision (TermList $labels) | |
Returns entity ids that collides with given labels in given languages. | |
TermsCollisionDetector implementation that does nothing (always returns no collision)
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.
string | $lang | |
string | $label | |
string | $description |
Implements Wikibase\Repo\Store\TermsCollisionDetector.
Wikibase\Repo\Store\NullTermsCollisionDetector::detectLabelCollision | ( | string | $lang, |
string | $label ) |
Returns an entity id that collides with given label in given languages, if any.
string | $lang | |
string | $label |
Implements Wikibase\Repo\Store\TermsCollisionDetector.
Wikibase\Repo\Store\NullTermsCollisionDetector::detectLabelsCollision | ( | TermList | $labels | ) |
Returns entity ids that collides with given labels in given languages.
TermList | $labels |
// example return array [ 'P1' => [ Term('en', 'label'), Term('de', 'label') ] ]
Implements Wikibase\Repo\Store\TermsCollisionDetector.