Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\SiteLinkStore Interface Reference

Contains methods for write actions on the sitelink store. More...

+ Inheritance diagram for Wikibase\Lib\Store\SiteLinkStore:
+ Collaboration diagram for Wikibase\Lib\Store\SiteLinkStore:

Public Member Functions

 saveLinksOfItem (Item $item)
 Saves the links for the provided item.
 
 deleteLinksOfItem (ItemId $itemId)
 Removes the links for the provided item.
 
- Public Member Functions inherited from Wikibase\Lib\Store\SiteLinkLookup
 getItemIdForLink (string $globalSiteId, string $pageTitle)
 Returns the id of the item that is equivalent to the provided page, or null if there is none.
 
 getLinks (?array $numericIds=null, ?array $siteIds=null, ?array $pageNames=null)
 Returns the links that match the provided conditions.
 
 getSiteLinksForItem (ItemId $itemId)
 Returns an array of SiteLink objects for an item.
 
 getItemIdForSiteLink (SiteLink $siteLink)
 
- Public Member Functions inherited from Wikibase\Lib\Store\EntityByLinkedTitleLookup
 getEntityIdForLinkedTitle ( $globalSiteId, $pageTitle)
 Returns the ID of an Entity associated to the given page title.
 

Detailed Description

Contains methods for write actions on the sitelink store.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Member Function Documentation

◆ deleteLinksOfItem()

Wikibase\Lib\Store\SiteLinkStore::deleteLinksOfItem ( ItemId $itemId)

Removes the links for the provided item.

Parameters
ItemId$itemId
Returns
bool Success indicator

Implemented in Wikibase\Lib\Store\HashSiteLinkStore, and Wikibase\Lib\Store\Sql\SiteLinkTable.

◆ saveLinksOfItem()

Wikibase\Lib\Store\SiteLinkStore::saveLinksOfItem ( Item $item)

Saves the links for the provided item.

Parameters
Item$item
Returns
bool Success indicator

Implemented in Wikibase\Lib\Store\HashSiteLinkStore, and Wikibase\Lib\Store\Sql\SiteLinkTable.


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