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.
|
|
| 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 |
|
) |
| |
- See also
- SiteLinkStore::getItemIdForLink
- Parameters
-
string | $globalSiteId | |
string | $pageTitle | |
- Exceptions
-
InvalidArgumentException | if a parameter does not have the expected type |
- Returns
- ItemId|null
Implements Wikibase\Lib\Store\SiteLinkLookup.
◆ 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: