Represents a lookup database table for sitelinks.
More...
Represents a lookup database table for sitelinks.
It should have these fields: ips_item_id, ips_site_id, ips_site_page.
- Copyright
- GPL-2.0-or-later
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Daniel Kinzler
◆ __construct()
Wikibase\Lib\Store\Sql\SiteLinkTable::__construct |
( |
string |
$table, |
|
|
bool |
$readonly, |
|
|
RepoDomainDb |
$db |
|
) |
| |
- Parameters
-
string | $table | The table to use for the sitelinks |
bool | $readonly | Whether the table can be modified. |
RepoDomainDb | $db | |
◆ deleteLinks()
Wikibase\Lib\Store\Sql\SiteLinkTable::deleteLinks |
( |
Item |
$item, |
|
|
array |
$links, |
|
|
IDatabase |
$dbw |
|
) |
| |
|
private |
- Parameters
-
Item | $item | |
SiteLink[] | $links | |
IDatabase | $dbw | |
- Returns
- bool Success indicator
◆ deleteLinksOfItem()
Wikibase\Lib\Store\Sql\SiteLinkTable::deleteLinksOfItem |
( |
ItemId |
$itemId | ) |
|
◆ diffSiteLinks()
Wikibase\Lib\Store\Sql\SiteLinkTable::diffSiteLinks |
( |
array |
$siteLinks1, |
|
|
array |
$siteLinks2 |
|
) |
| |
|
private |
- Parameters
-
SiteLink[] | $siteLinks1 | |
SiteLink[] | $siteLinks2 | |
- Returns
- SiteLink[]
◆ getEntityIdForLinkedTitle()
Wikibase\Lib\Store\Sql\SiteLinkTable::getEntityIdForLinkedTitle |
( |
|
$globalSiteId, |
|
|
|
$pageTitle |
|
) |
| |
◆ getItemIdForLink()
Wikibase\Lib\Store\Sql\SiteLinkTable::getItemIdForLink |
( |
string |
$globalSiteId, |
|
|
string |
$pageTitle |
|
) |
| |
◆ getItemIdForSiteLink()
Wikibase\Lib\Store\Sql\SiteLinkTable::getItemIdForSiteLink |
( |
SiteLink |
$siteLink | ) |
|
◆ getLinks()
Wikibase\Lib\Store\Sql\SiteLinkTable::getLinks |
( |
?array |
$numericIds = null , |
|
|
?array |
$siteIds = null , |
|
|
?array |
$pageNames = null |
|
) |
| |
◆ getSiteLinksForItem()
Wikibase\Lib\Store\Sql\SiteLinkTable::getSiteLinksForItem |
( |
ItemId |
$itemId | ) |
|
◆ insertLinks()
Wikibase\Lib\Store\Sql\SiteLinkTable::insertLinks |
( |
Item |
$item, |
|
|
array |
$links, |
|
|
IDatabase |
$dbw |
|
) |
| |
|
private |
- Parameters
-
Item | $item | |
SiteLink[] | $links | |
IDatabase | $dbw | |
- Returns
- bool Success indicator
◆ saveLinksOfItem()
Wikibase\Lib\Store\Sql\SiteLinkTable::saveLinksOfItem |
( |
Item |
$item | ) |
|
◆ $db
Wikibase\Lib\Store\Sql\SiteLinkTable::$db |
|
private |
◆ $logger
Wikibase\Lib\Store\Sql\SiteLinkTable::$logger |
|
private |
◆ $readonly
Wikibase\Lib\Store\Sql\SiteLinkTable::$readonly |
|
protected |
◆ $table
Wikibase\Lib\Store\Sql\SiteLinkTable::$table |
|
protected |
The documentation for this class was generated from the following file: