Wikibase
MediaWiki Wikibase extension
|
Contains methods for looking up SiteLink conflicts. More...
Public Member Functions | |
getConflictsForItem (ItemId $item, SiteLinkList $siteLinkList, int $db=null) | |
Returns an array with the conflicts between the item and the sitelinks currently in the store. | |
Contains methods for looking up SiteLink conflicts.
Wikibase\Repo\Store\SiteLinkConflictLookup::getConflictsForItem | ( | ItemId | $item, |
SiteLinkList | $siteLinkList, | ||
int | $db = null ) |
Returns an array with the conflicts between the item and the sitelinks currently in the store.
The array is empty if there are no such conflicts.
The items in the return array are arrays with the following elements:
ItemId | $item | |
SiteLinkList | $siteLinkList | |
int | null | $db | The database flag to use (optional). Use one of DB_PRIMARY or DB_REPLICA. DB_PRIMARY can be used when you need the most recent data. |
Implemented in Wikibase\Repo\Store\BagOStuffSiteLinkConflictLookup, Wikibase\Repo\Store\CompositeSiteLinkConflictLookup, and Wikibase\Repo\Store\Sql\SqlSiteLinkConflictLookup.