MediaWiki master
|
Holds a list of sites stored in the database. More...
Inherits MediaWiki\Site\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 34 of file DBSiteStore.php.
MediaWiki\Site\DBSiteStore::__construct | ( | IConnectionProvider | $dbProvider | ) |
MediaWiki\Site\DBSiteStore::clear | ( | ) |
Clears the list of sites stored in the database.
Implements MediaWiki\Site\SiteStore.
Definition at line 242 of file DBSiteStore.php.
References MediaWiki\Site\DBSiteStore\reset().
MediaWiki\Site\DBSiteStore::getSite | ( | $globalId | ) |
string | $globalId |
Implements MediaWiki\Site\SiteLookup.
Definition at line 126 of file DBSiteStore.php.
References MediaWiki\Site\DBSiteStore\getSites().
MediaWiki\Site\DBSiteStore::getSites | ( | ) |
Implements MediaWiki\Site\SiteLookup.
Definition at line 54 of file DBSiteStore.php.
References MediaWiki\Site\DBSiteStore\$sites, and MediaWiki\Site\DBSiteStore\loadSites().
Referenced by MediaWiki\Site\DBSiteStore\getSite().
|
protected |
Fetches the site from the database and loads them into the sites field.
Definition at line 65 of file DBSiteStore.php.
References MediaWiki\Site\Site\newForType().
Referenced by MediaWiki\Site\DBSiteStore\getSites().
MediaWiki\Site\DBSiteStore::reset | ( | ) |
Resets the SiteList.
Definition at line 233 of file DBSiteStore.php.
Referenced by MediaWiki\Site\DBSiteStore\clear(), and MediaWiki\Site\DBSiteStore\saveSites().
MediaWiki\Site\DBSiteStore::saveSite | ( | Site | $site | ) |
Site | $site |
Implements MediaWiki\Site\SiteStore.
Definition at line 141 of file DBSiteStore.php.
References MediaWiki\Site\DBSiteStore\saveSites().
MediaWiki\Site\DBSiteStore::saveSites | ( | array | $sites | ) |
Site[] | $sites |
Implements MediaWiki\Site\SiteStore.
Definition at line 152 of file DBSiteStore.php.
References MediaWiki\Site\DBSiteStore\$sites, and MediaWiki\Site\DBSiteStore\reset().
Referenced by MediaWiki\Site\DBSiteStore\saveSite().
|
protected |
Definition at line 36 of file DBSiteStore.php.
Referenced by MediaWiki\Site\DBSiteStore\getSites(), and MediaWiki\Site\DBSiteStore\saveSites().