Wikibase
MediaWiki Wikibase extension
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, int $db=null)
 Returns an array with the conflicts between the item and the sitelinks currently in the store. More...
 

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

Implemented in Wikibase\Repo\Store\Sql\SqlSiteLinkConflictLookup, Wikibase\Repo\Store\CompositeSiteLinkConflictLookup, and Wikibase\Repo\Store\BagOStuffSiteLinkConflictLookup.


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