MediaWiki REL1_39
|
Public Member Functions | |
__construct (ILoadBalancer $dbLoadBalancer) | |
clear () | |
Clears the list of sites stored in the database. | |
getSite ( $globalId) | |
getSites () | |
reset () | |
Resets the SiteList. | |
saveSite (Site $site) | |
saveSites (array $sites) | |
Protected Member Functions | |
loadSites () | |
Fetches the site from the database and loads them into the sites field. | |
Protected Attributes | |
SiteList null | $sites = null |
Definition at line 33 of file DBSiteStore.php.
DBSiteStore::__construct | ( | ILoadBalancer | $dbLoadBalancer | ) |
ILoadBalancer | $dbLoadBalancer |
Definition at line 53 of file DBSiteStore.php.
DBSiteStore::clear | ( | ) |
Clears the list of sites stored in the database.
Implements SiteStore.
Definition at line 271 of file DBSiteStore.php.
References DB_PRIMARY, and reset().
DBSiteStore::getSite | ( | $globalId | ) |
string | $globalId |
Implements SiteLookup.
Definition at line 146 of file DBSiteStore.php.
References getSites().
DBSiteStore::getSites | ( | ) |
Implements SiteLookup.
Definition at line 64 of file DBSiteStore.php.
References $sites, and loadSites().
Referenced by getSite().
|
protected |
Fetches the site from the database and loads them into the sites field.
Definition at line 75 of file DBSiteStore.php.
References $dbr, $res, DB_REPLICA, Site\newForType(), and unserialize().
Referenced by getSites().
DBSiteStore::reset | ( | ) |
Resets the SiteList.
Definition at line 260 of file DBSiteStore.php.
Referenced by clear(), and saveSites().
DBSiteStore::saveSite | ( | Site | $site | ) |
Site | $site |
Implements SiteStore.
Definition at line 163 of file DBSiteStore.php.
References saveSites().
DBSiteStore::saveSites | ( | array | $sites | ) |
Site[] | $sites |
Implements SiteStore.
Definition at line 176 of file DBSiteStore.php.
References $sites, $success, DB_PRIMARY, reset(), and serialize().
Referenced by saveSite().
|
protected |
Definition at line 38 of file DBSiteStore.php.
Referenced by getSites(), and saveSites().