src/snac/server/database/SQL.php
/**
     * Current resource version by ID
     *
     * The max, that is: current version for ID regardless of status. This will return max for deleted as
     * well as all other status values.
     * @param integer $id The resource ID
     *
     * @return integer Latest version number from resource.version
     *
     */
Current resource version by ID
The max, that is: current version for ID regardless of status. This will return max for deleted as
well as all other status values.
@param integer $id The resource ID

@return integer Latest version number from resource.version
Current resource version by ID The max that is : current version for ID regardless of status . This will return max for deleted as well as all other status values . @param integer $id The resource ID @return integer Latest version number from resource . version
public function selectCurrentResourceVersion($id)
    {
        $result = $this->sdb->query(
                                    'select max(version) as version
                                    from resource_cache
                                    where resource_cache.id=$1',
                                    array($id));
        $row = $this->sdb->fetchrow($result);
        return $row['version'];
    }
public function selectCurrentResourceVersion ( $ id ) { $ result = $ this -> sdb -> query ( 'select max(version) as version
                                    from resource_cache
                                    where resource_cache.id=$1' , array ( $ id ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'version' ] ; }
Current resource version by ID
 The max, that is: current version for ID regardless of status.
Current resource version by ID The max that is : current version for ID regardless of status .