src/snac/server/database/SQL.php
/**
     * User for Constellation by mainID and version number
     *
     * Get the version_history user id editing this constellation.
     *
     * @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 int The user id who most recently touched this constellation
     */
User for Constellation by mainID and version number
Get the version_history user id editing this constellation.

@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 int The user id who most recently touched this constellation
User for Constellation by mainID and version number Get the version_history user id editing this constellation . @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 int The user id who most recently touched this constellation
public function selectCurrentUserForConstellation($mainID, $version)
    {
        $result = $this->sdb->query(
                                    'select user_id from version_history where id=$1 and version=$2',
                                    array($mainID, $version));
        $row = $this->sdb->fetchrow($result);
        return $row['user_id'];
    }
public function selectCurrentUserForConstellation ( $ mainID , $ version ) { $ result = $ this -> sdb -> query ( 'select user_id from version_history where id=$1 and version=$2' , array ( $ mainID , $ version ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; return $ row [ 'user_id' ] ; }
User for Constellation by mainID and version number
 Get the version_history user id editing this constellation.
User for Constellation by mainID and version number Get the version_history user id editing this constellation .