original_string: public function getSitesFromIds($idSites, $limit = false)
      {
          if (count($idSites) === 0) {
              return array();
          }
  
          if ($limit) {
              $limit = "LIMIT " . (int)$limit;
          } else {
              $limit = '';
          }
  
          $idSites = array_map('intval', $idSites);
  
          $db    = $this->getDb();
          $sites = $db->fetchAll("SELECT * FROM " . $this->table . "
                                  WHERE idsite IN (" . implode(", ", $idSites) . ")
                                  ORDER BY idsite ASC $limit");
  
          return $sites;
      }
code: public function getSitesFromIds($idSites, $limit = false)
      {
          if (count($idSites) === 0) {
              return array();
          }
  
          if ($limit) {
              $limit = "LIMIT " . (int)$limit;
          } else {
              $limit = '';
          }
  
          $idSites = array_map('intval', $idSites);
  
          $db    = $this->getDb();
          $sites = $db->fetchAll("SELECT * FROM " . $this->table . "
                                  WHERE idsite IN (" . implode(", ", $idSites) . ")
                                  ORDER BY idsite ASC $limit");
  
          return $sites;
      }
code_tokens: public function getSitesFromIds ( $ idSites , $ limit = false ) { if ( count ( $ idSites ) === 0 ) { return array ( ) ; } if ( $ limit ) { $ limit = "LIMIT " . ( int ) $ limit ; } else { $ limit = '' ; } $ idSites = array_map ( 'intval' , $ idSites ) ; $ db = $ this -> getDb ( ) ; $ sites = $ db -> fetchAll ( "SELECT * FROM " . $ this -> table . "
                                  WHERE idsite IN (" . implode ( ", " , $ idSites ) . ")
                                  ORDER BY idsite ASC $limit" ) ; return $ sites ; }
docstring: Returns the list of websites from the ID array in parameters.
  
  @param array $idSites list of website ID
  @param bool $limit
  @return array
docstring_tokens: Returns the list of websites from the ID array in parameters .