Wikibase
MediaWiki Wikibase extension
|
Contains methods for looking up SiteLink conflicts. More...
Public Member Functions | |
getConflictsForItem (Item $item, IDatabase $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 | ( | Item | $item, |
IDatabase | $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:
Item | $item | |
IDatabase | null | $db | The database object to use (optional). If conflict checking is performed as part of a save operation, this should be used to provide the master DB connection that will also be used for saving. This will preserve transactional integrity and avoid race conditions. |