|
MediaWiki
master
|


Public Member Functions | |
| __construct (LoadBalancer $dbLoadBalancer) | |
| clear () | |
| Clears the list of sites stored in the database. More... | |
| getSite ($globalId) | |
| getSites () | |
| reset () | |
| Resets the SiteList. More... | |
| saveSite (Site $site) | |
| saveSites (array $sites) | |
Protected Member Functions | |
| loadSites () | |
| Fetches the site from the database and loads them into the sites field. More... | |
Protected Attributes | |
| SiteList null | $sites = null |
Private Attributes | |
| LoadBalancer | $dbLoadBalancer |
Definition at line 31 of file DBSiteStore.php.
| DBSiteStore::__construct | ( | LoadBalancer | $dbLoadBalancer | ) |
| LoadBalancer | $dbLoadBalancer |
Definition at line 51 of file DBSiteStore.php.
References $dbLoadBalancer.
| DBSiteStore::clear | ( | ) |
Clears the list of sites stored in the database.
Implements SiteStore.
Definition at line 275 of file DBSiteStore.php.
| DBSiteStore::getSite | ( | $globalId | ) |
| string | $globalId |
Implements SiteLookup.
Definition at line 146 of file DBSiteStore.php.
References getSites(), and sites.
| DBSiteStore::getSites | ( | ) |
Implements SiteLookup.
Definition at line 62 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 73 of file DBSiteStore.php.
References $dbr, $res, as, DB_SLAVE, Site\newForType(), sites, and unserialize().
Referenced by getSites().
| DBSiteStore::reset | ( | ) |
Resets the SiteList.
Definition at line 264 of file DBSiteStore.php.
References sites.
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 $success, as, DB_MASTER, reset(), and serialize().
Referenced by saveSite().
|
private |
Definition at line 41 of file DBSiteStore.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file DBSiteStore.php.
Referenced by getSites().