6 * Saves the provided site.
12 * @return boolean Success indicator
14 public function saveSite( Site
$site );
17 * Saves the provided sites.
21 * @param Site[] $sites
23 * @return boolean Success indicator
25 public function saveSites( array $sites );
28 * Returns the site with provided global id, or null if there is no such site.
32 * @param string $globalId
33 * @param string $source either 'cache' or 'recache'.
34 * If 'cache', the values are allowed (but not obliged) to come from a cache.
38 public function getSite( $globalId, $source = 'cache' );
41 * Returns a list of all sites. By default this site is
42 * fetched from the cache, which can be changed to loading
43 * the list from the database using the $useCache parameter.
47 * @param string $source either 'cache' or 'recache'.
48 * If 'cache', the values are allowed (but not obliged) to come from a cache.
52 public function getSites( $source = 'cache' );