src/snac/server/database/SQL.php
/**
     * Status by mainID and version number
     *
     * Get the version_history status.
     *
     * @param integer $mainID The constellation ID
     *
     * @param integer $version A specific version number. We assume that you have called some function to get
     * a specific version number. Null is not ok, and guesses are not ok. This will not select for <$version.
     *
     * @return string The status string of that version for the given mainID.
     */
Status by mainID and version number
Get the version_history status.

@param integer $mainID The constellation ID

@param integer $version A specific version number. We assume that you have called some function to get
a specific version number. Null is not ok, and guesses are not ok. This will not select for <$version.

@return string The status string of that version for the given mainID.
Status by mainID and version number Get the version_history status . @param integer $mainID The constellation ID @param integer $version A specific version number . We assume that you have called some function to get a specific version number . Null is not ok and guesses are not ok . This will not select for <$version . @return string The status string of that version for the given mainID .
public function selectStatus($mainID, $version)
    {
        $result = $this->sdb->query(
                                    'select status from version_history where id=$1 and version=$2',
                                    array($mainID, $version));
        $row = $this->sdb->fetchrow($result);
        return $row['status'];
    }
public function selectStatus ( $ mainID , $ version ) { $ result = $ this -> sdb -> query ( 'select status from version_history where id=$1 and version=$2' , array ( $ mainID , $ version ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'status' ] ; }
Status by mainID and version number
 Get the version_history status.
Status by mainID and version number Get the version_history status .