An array based dummy implementation of a SiteLinkStore for exclusive use in tests.
More...
|
| linkMatches (ItemId $itemId, SiteLink $siteLink, array $numericIds, array $siteIds, array $pageNames) |
| Returns true if the link matches the given conditions. More...
|
|
| indexByLink (ItemId $itemId, SiteLink $siteLink) |
|
| indexByItemId (ItemId $itemId, SiteLink $siteLink) |
|
| makeSiteLinkKey (SiteLink $siteLink) |
|
An array based dummy implementation of a SiteLinkStore for exclusive use in tests.
- Todo:
- Should be moved to the tests folder and namespace.
- Copyright
- GPL-2.0-or-later
- Author
- Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ clear()
Wikibase\Lib\Store\HashSiteLinkStore::clear |
( |
| ) |
|
◆ deleteLinksOfItem()
Wikibase\Lib\Store\HashSiteLinkStore::deleteLinksOfItem |
( |
ItemId |
$itemId | ) |
|
◆ getEntityIdForLinkedTitle()
Wikibase\Lib\Store\HashSiteLinkStore::getEntityIdForLinkedTitle |
( |
|
$globalSiteId, |
|
|
|
$pageTitle |
|
) |
| |
◆ getItemIdForLink()
Wikibase\Lib\Store\HashSiteLinkStore::getItemIdForLink |
( |
|
$globalSiteId, |
|
|
|
$pageTitle |
|
) |
| |
◆ getItemIdForSiteLink()
Wikibase\Lib\Store\HashSiteLinkStore::getItemIdForSiteLink |
( |
SiteLink |
$siteLink | ) |
|
◆ getSiteLinksForItem()
Wikibase\Lib\Store\HashSiteLinkStore::getSiteLinksForItem |
( |
ItemId |
$itemId | ) |
|
◆ indexByItemId()
Wikibase\Lib\Store\HashSiteLinkStore::indexByItemId |
( |
ItemId |
$itemId, |
|
|
SiteLink |
$siteLink |
|
) |
| |
|
private |
◆ indexByLink()
Wikibase\Lib\Store\HashSiteLinkStore::indexByLink |
( |
ItemId |
$itemId, |
|
|
SiteLink |
$siteLink |
|
) |
| |
|
private |
◆ linkMatches()
Wikibase\Lib\Store\HashSiteLinkStore::linkMatches |
( |
ItemId |
$itemId, |
|
|
SiteLink |
$siteLink, |
|
|
array |
$numericIds, |
|
|
array |
$siteIds, |
|
|
array |
$pageNames |
|
) |
| |
|
private |
Returns true if the link matches the given conditions.
- Parameters
-
ItemId | $itemId | |
SiteLink | $siteLink | |
int[] | $numericIds | Numeric (unprefixed) item ids |
string[] | $siteIds | |
string[] | $pageNames | |
- Returns
- bool
◆ makeSiteLinkKey()
Wikibase\Lib\Store\HashSiteLinkStore::makeSiteLinkKey |
( |
SiteLink |
$siteLink | ) |
|
|
private |
◆ saveLinksOfItem()
Wikibase\Lib\Store\HashSiteLinkStore::saveLinksOfItem |
( |
Item |
$item | ) |
|
◆ $itemIdsByLink
Wikibase\Lib\Store\HashSiteLinkStore::$itemIdsByLink = [] |
|
private |
◆ $linksByItemId
Wikibase\Lib\Store\HashSiteLinkStore::$linksByItemId = [] |
|
private |
The documentation for this class was generated from the following file: