Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Store\SiteLinkConflictLookup Interface Reference

Contains methods for looking up SiteLink conflicts. More...

+ Inheritance diagram for Wikibase\Repo\Store\SiteLinkConflictLookup:

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.
 

Detailed Description

Contains methods for looking up SiteLink conflicts.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Member Function Documentation

◆ getConflictsForItem()

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:

  • ItemId itemId
  • string siteId
  • string sitePage
Parameters
Item$item
IDatabase | null$dbThe 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.
Returns
array[] An array of arrays, each with the keys "siteId", "itemId" and "sitePage".

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