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;
    }
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;
    }
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 ; }
Returns the list of websites from the ID array in parameters.

@param array $idSites list of website ID
@param bool $limit
@return array
Returns the list of websites from the ID array in parameters .