Wikibase
MediaWiki Wikibase extension
|
Find collisions of term values with existing terms in store. More...
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... | |
Find collisions of term values with existing terms in store.
Wikibase\Repo\Store\TermsCollisionDetector::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 |
Implemented in Wikibase\Repo\Store\Sql\Terms\DatabaseTermsCollisionDetector, and Wikibase\Repo\Store\NullTermsCollisionDetector.
Wikibase\Repo\Store\TermsCollisionDetector::detectLabelCollision | ( | string | $lang, |
string | $label | ||
) |
Returns an entity id that collides with given label in given languages, if any.
string | $lang | |
string | $label |
Implemented in Wikibase\Repo\Store\Sql\Terms\DatabaseTermsCollisionDetector, and Wikibase\Repo\Store\NullTermsCollisionDetector.