src/snac/server/database/SQL.php
/**
     * Insert legalStatus.
     *
     * @param string[] $vhInfo associative list with keys: version, ic_id
     * @param integer $id Record id from this object and table.
     * @param integer $termID Vocabulary foreign key for the term.
     *
     */
Insert legalStatus.
@param string[] $vhInfo associative list with keys: version, ic_id
@param integer $id Record id from this object and table.
@param integer $termID Vocabulary foreign key for the term.
Insert legalStatus . @param string [] $vhInfo associative list with keys : version ic_id @param integer $id Record id from this object and table . @param integer $termID Vocabulary foreign key for the term .
public function insertLegalStatus($vhInfo, $id, $termID)
    {
        if (! $id)
        {
            $id = $this->selectID();
        }
        $qq = 'insert_subject';
        $this->sdb->prepare($qq,
                            'insert into legal_status
                            (version, ic_id, id, term_id)
                            values
                            ($1, $2, $3, $4)');
        $result = $this->sdb->execute($qq,
                                      array($vhInfo['version'],
                                            $vhInfo['ic_id'],
                                            $id,
                                            $termID));
        $this->sdb->deallocate($qq);
        return $id;
    }
public function insertLegalStatus ( $ vhInfo , $ id , $ termID ) { if ( ! $ id ) { $ id = $ this -> selectID ( ) ; } $ qq = 'insert_subject' ; $ this -> sdb -> prepare ( $ qq , 'insert into legal_status
                            (version, ic_id, id, term_id)
                            values
                            ($1, $2, $3, $4)' ) ; $ result = $ this -> sdb -> execute ( $ qq , array ( $ vhInfo [ 'version' ] , $ vhInfo [ 'ic_id' ] , $ id , $ termID ) ) ; $ this -> sdb -> deallocate ( $ qq ) ; return $ id ; }
Insert legalStatus.
Insert legalStatus .