public function getSitesWithVisits($time, $now)
    {
        $sites = Db::fetchAll("
            SELECT idsite FROM " . $this->table . " s
            WHERE EXISTS (
                SELECT 1
                FROM " . Common::prefixTable('log_visit') . " v
                WHERE v.idsite = s.idsite
                AND visit_last_action_time > ?
                AND visit_last_action_time <= ?
                LIMIT 1)
        ", array($time, $now));

        return $sites;
    }
public function getSitesWithVisits($time, $now)
    {
        $sites = Db::fetchAll("
            SELECT idsite FROM " . $this->table . " s
            WHERE EXISTS (
                SELECT 1
                FROM " . Common::prefixTable('log_visit') . " v
                WHERE v.idsite = s.idsite
                AND visit_last_action_time > ?
                AND visit_last_action_time <= ?
                LIMIT 1)
        ", array($time, $now));

        return $sites;
    }
public function getSitesWithVisits ( $ time , $ now ) { $ sites = Db :: fetchAll ( "
            SELECT idsite FROM " . $ this -> table . " s
            WHERE EXISTS (
                SELECT 1
                FROM " . Common :: prefixTable ( 'log_visit' ) . " v
                WHERE v.idsite = s.idsite
                AND visit_last_action_time > ?
                AND visit_last_action_time <= ?
                LIMIT 1)
        " , array ( $ time , $ now ) ) ; return $ sites ; }
Returns the list of the website IDs that received some visits since the specified timestamp.

@param string $time
@param string $now
@return array The list of website IDs
Returns the list of the website IDs that received some visits since the specified timestamp .