56 $this->sites[$site->getGlobalId()] = $site;
71 foreach (
$sites as $site ) {
90 if ( isset( $this->sites[$globalId] ) ) {
91 return $this->sites[$globalId];
110 return new SiteList( $this->sites );
In-memory SiteStore implementation, storing sites in an associative array.
saveSite(Site $site)
Saves the provided site.
getSite( $globalId, $source='cache')
Returns the site with provided global id, or null if there is no such site.
saveSites(array $sites)
Saves the provided sites.
clear()
Deletes all sites from the database.
getSites( $source='cache')
Returns a list of all sites.