MediaWiki
1.34.0
|
Public Member Functions | |
clear () | |
Deletes all sites from the database. More... | |
saveSite (Site $site) | |
Saves the provided site. More... | |
saveSites (array $sites) | |
Saves the provided sites. More... | |
Public Member Functions inherited from SiteLookup | |
getSite ( $globalId) | |
Returns the site with provided global id, or null if there is no such site. More... | |
getSites () | |
Returns a list of all sites. More... | |
Definition at line 29 of file SiteStore.php.
SiteStore::clear | ( | ) |
Deletes all sites from the database.
After calling clear(), getSites() will return an empty list and getSite() will return null until saveSite() or saveSites() is called.
Implemented in DBSiteStore, CachingSiteStore, and HashSiteStore.
SiteStore::saveSite | ( | Site | $site | ) |
Saves the provided site.
Site | $site |
Implemented in DBSiteStore, CachingSiteStore, and HashSiteStore.
SiteStore::saveSites | ( | array | $sites | ) |
Saves the provided sites.
Site[] | $sites |
Implemented in DBSiteStore, CachingSiteStore, and HashSiteStore.