MediaWiki REL1_41
|
Interface for storing and retrieving Site objects. More...
Inherits SiteLookup.
Inherited by CachingSiteStore, DBSiteStore, and HashSiteStore.
Public Member Functions | |
clear () | |
Deletes all sites from the database. | |
saveSite (Site $site) | |
Saves the provided site. | |
saveSites (array $sites) | |
Saves the provided sites. | |
Public Member Functions inherited from SiteLookup | |
getSite ( $globalId) | |
Return the site with provided global ID, or null if there is no such site. | |
getSites () | |
Return a list of all sites. | |
Interface for storing and retrieving Site objects.
Default implementation is DBSiteStore.
Definition at line 30 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 CachingSiteStore, DBSiteStore, and HashSiteStore.
SiteStore::saveSite | ( | Site | $site | ) |
Saves the provided site.
Site | $site |
Implemented in CachingSiteStore, DBSiteStore, and HashSiteStore.
SiteStore::saveSites | ( | array | $sites | ) |
Saves the provided sites.
Site[] | $sites |
Implemented in CachingSiteStore, DBSiteStore, and HashSiteStore.