src/snac/server/database/SQL.php
/**
     * Get a single vocabulary record
     *
     * @param integer $termID The record id of a vocabulary term
     *
     * @return string[] A list with keys: id, type, value, uri, description
     *
     */
Get a single vocabulary record
@param integer $termID The record id of a vocabulary term

@return string[] A list with keys: id, type, value, uri, description
Get a single vocabulary record @param integer $termID The record id of a vocabulary term @return string [] A list with keys : id type value uri description
public function selectTerm($termID)
    {
        $qq = 'sc';
        $this->sdb->prepare($qq,
                            'select
                            id, type, value, uri, description
                            from vocabulary where $1=id');
        $result = $this->sdb->execute($qq, array($termID));
        $row = $this->sdb->fetchrow($result);
        $this->sdb->deallocate($qq);
        return $row;
    }
public function selectTerm ( $ termID ) { $ qq = 'sc' ; $ this -> sdb -> prepare ( $ qq , 'select
                            id, type, value, uri, description
                            from vocabulary where $1=id' ) ; $ result = $ this -> sdb -> execute ( $ qq , array ( $ termID ) ) ; $ row = $ this -> sdb -> fetchrow ( $ result ) ; $ this -> sdb -> deallocate ( $ qq ) ; return $ row ; }
Get a single vocabulary record
 @param integer $termID The record id of a vocabulary term
Get a single vocabulary record @param integer $termID The record id of a vocabulary term