Wikibase
MediaWiki Wikibase extension
|
A SiteLinkConflictLookup
composing several others.
More...
Public Member Functions | |
__construct (array $lookups) | |
getConflictsForItem (ItemId $itemId, SiteLinkList $siteLinkList, int $db=null) | |
Returns an array with the conflicts between the item and the sitelinks currently in the store. | |
Private Attributes | |
$lookups | |
A SiteLinkConflictLookup
composing several others.
Each conflict lookup is tried in turn, and as soon as one lookup returns a nonempty list of conflicts, that list is returned without trying the remaining lookups.
Wikibase\Repo\Store\CompositeSiteLinkConflictLookup::__construct | ( | array | $lookups | ) |
SiteLinkConflictLookup[] | $lookups |
Wikibase\Repo\Store\CompositeSiteLinkConflictLookup::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. |
Implements Wikibase\Repo\Store\SiteLinkConflictLookup.
|
private |