public static function setSites($sites)
    {
        self::triggerSetSitesEvent($sites);

        foreach ($sites as $idsite => $site) {
            self::setSiteFromArray($idsite, $site);
        }
    }
public static function setSites($sites)
    {
        self::triggerSetSitesEvent($sites);

        foreach ($sites as $idsite => $site) {
            self::setSiteFromArray($idsite, $site);
        }
    }
public static function setSites ( $ sites ) { self :: triggerSetSitesEvent ( $ sites ) ; foreach ( $ sites as $ idsite => $ site ) { self :: setSiteFromArray ( $ idsite , $ site ) ; } }
Sets the cached site data with an array that associates site IDs with
individual site data.

@param array $sites The array of sites data. Indexed by site ID. eg,

array('1' => array('name' => 'Site 1', ...),
'2' => array('name' => 'Site 2', ...))`
Sets the cached site data with an array that associates site IDs with individual site data .