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 (ItemId $item, SiteLinkList $siteLinkList, int $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 ( 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|null itemId (null if not known)
  • string siteId
  • string sitePage
Parameters
ItemId$item
SiteLinkList$siteLinkList
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\BagOStuffSiteLinkConflictLookup, Wikibase\Repo\Store\CompositeSiteLinkConflictLookup, and Wikibase\Repo\Store\Sql\SqlSiteLinkConflictLookup.


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