MediaWiki REL1_41
|
Holds a list of sites stored in the database. More...
Inherits SiteStore.
Public Member Functions | |
__construct (IConnectionProvider $dbProvider) | |
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 |
Holds a list of sites stored in the database.
Definition at line 32 of file DBSiteStore.php.
DBSiteStore::__construct | ( | IConnectionProvider | $dbProvider | ) |
DBSiteStore::clear | ( | ) |
Clears the list of sites stored in the database.
Implements SiteStore.
Definition at line 240 of file DBSiteStore.php.
References reset().
DBSiteStore::getSite | ( | $globalId | ) |
string | $globalId |
Implements SiteLookup.
Definition at line 124 of file DBSiteStore.php.
References getSites().
DBSiteStore::getSites | ( | ) |
Implements SiteLookup.
Definition at line 52 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 63 of file DBSiteStore.php.
References Site\newForType().
Referenced by getSites().
DBSiteStore::reset | ( | ) |
Resets the SiteList.
Definition at line 231 of file DBSiteStore.php.
Referenced by clear(), and saveSites().
DBSiteStore::saveSite | ( | Site | $site | ) |
Site | $site |
Implements SiteStore.
Definition at line 139 of file DBSiteStore.php.
References saveSites().
DBSiteStore::saveSites | ( | array | $sites | ) |
Site[] | $sites |
Implements SiteStore.
Definition at line 150 of file DBSiteStore.php.
References $sites, and reset().
Referenced by saveSite().
|
protected |
Definition at line 34 of file DBSiteStore.php.
Referenced by getSites(), and saveSites().