original_string: public static function setSites($sites)
      {
          self::triggerSetSitesEvent($sites);
  
          foreach ($sites as $idsite => $site) {
              self::setSiteFromArray($idsite, $site);
          }
      }
code: public static function setSites($sites)
      {
          self::triggerSetSitesEvent($sites);
  
          foreach ($sites as $idsite => $site) {
              self::setSiteFromArray($idsite, $site);
          }
      }
code_tokens: public static function setSites ( $ sites ) { self :: triggerSetSitesEvent ( $ sites ) ; foreach ( $ sites as $ idsite => $ site ) { self :: setSiteFromArray ( $ idsite , $ site ) ; } }
docstring: 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', ...))`
docstring_tokens: Sets the cached site data with an array that associates site IDs with individual site data .