src/snac/server/database/SQL.php
/**
     * Select Report By Time
     *
     * Reads the report from the database with the given name for the given timestamp.  By default,
     * this method will read the latest report by that name.
     *
     * @param string $name The name of the report to read
     * @param string $timestamp optional The timestamp for the report to read
     * @return string[] The report data from the database
     */
Select Report By Time
Reads the report from the database with the given name for the given timestamp.  By default,
this method will read the latest report by that name.

@param string $name The name of the report to read
@param string $timestamp optional The timestamp for the report to read
@return string[] The report data from the database
Select Report By Time Reads the report from the database with the given name for the given timestamp . By default this method will read the latest report by that name . @param string $name The name of the report to read @param string $timestamp optional The timestamp for the report to read @return string [] The report data from the database
public function selectReportByTime($name, $timestamp = null) {
        $result = null;
        if ($timestamp == null) {
            $result = $this->sdb->query("select * from reports where name = $1 order by timestamp desc limit 1",
                                        array($name));
        } else {
            $result = $this->sdb->query("select * from reports where name = $1 and timestamp = $2",
                                        array($name, $timestamp));
        }
        if (!$result)
            return false;
        return $this->sdb->fetchrow($result);
    }
public function selectReportByTime ( $ name , $ timestamp = null ) { $ result = null ; if ( $ timestamp == null ) { $ result = $ this -> sdb -> query ( " select * from reports where name = $1 order by timestamp desc limit 1 " , array ( $ name ) ) ; } else { $ result = $ this -> sdb -> query ( " select * from reports where name = $1 and timestamp = $2 " , array ( $ name , $ timestamp ) ) ; } if ( ! $ result ) return false ; return $ this -> sdb -> fetchrow ( $ result ) ; }
Select Report By Time
 Reads the report from the database with the given name for the given timestamp.
Select Report By Time Reads the report from the database with the given name for the given timestamp .