src/snac/server/database/SQL.php
/**
     * Insert nrd record
     *
     * Insert the non-repeating parts (non repeading data) of the constellation. No need to return a value as
     * the nrd row key is ic_id,version which corresponds to the row key in all other tables being
     * id,version. Table nrd is the 1:1 table for the constellation. The peculiar thing about nrd is that
     * there is no corresponding php object. The Constellation has entityTyp and ARK, but the Constellation is
     * not an "nrd object".
     *
     * We happen to know that nrd.id currently the constellation ic_id. We are also sure that you do not want
     * to use this field for anything. We are writing a value into it for the sake of consistency.
     *
     * @param string[] $vhInfo associative list with keys: version, ic_id
     *
     * @param string $ark_id ARK string. There was a reason why I added _id to distinguish this from something
     * else with the naked name "ark".
     *
     * @param integer $entity_type A foreign key into table vocabulary, handled by Term related functions here and in
     * DBUtils.
     *
     * @param integer $tableID Value for nrd.id.
     *
     */
Insert nrd record
Insert the non-repeating parts (non repeading data) of the constellation. No need to return a value as
the nrd row key is ic_id,version which corresponds to the row key in all other tables being
id,version. Table nrd is the 1:1 table for the constellation. The peculiar thing about nrd is that
there is no corresponding php object. The Constellation has entityTyp and ARK, but the Constellation is
not an "nrd object".

We happen to know that nrd.id currently the constellation ic_id. We are also sure that you do not want
to use this field for anything. We are writing a value into it for the sake of consistency.

@param string[] $vhInfo associative list with keys: version, ic_id

@param string $ark_id ARK string. There was a reason why I added _id to distinguish this from something
else with the naked name "ark".

@param integer $entity_type A foreign key into table vocabulary, handled by Term related functions here and in
DBUtils.

@param integer $tableID Value for nrd.id.
Insert nrd record Insert the non - repeating parts ( non repeading data ) of the constellation . No need to return a value as the nrd row key is ic_id version which corresponds to the row key in all other tables being id version . Table nrd is the 1 : 1 table for the constellation . The peculiar thing about nrd is that there is no corresponding php object . The Constellation has entityTyp and ARK but the Constellation is not an " nrd object " . We happen to know that nrd . id currently the constellation ic_id . We are also sure that you do not want to use this field for anything . We are writing a value into it for the sake of consistency . @param string [] $vhInfo associative list with keys : version ic_id @param string $ark_id ARK string . There was a reason why I added _id to distinguish this from something else with the naked name " ark " . @param integer $entity_type A foreign key into table vocabulary handled by Term related functions here and in DBUtils . @param integer $tableID Value for nrd . id .
public function insertNrd($vhInfo, $ark_id, $entity_type, $tableID)
    {
        $qq = 'insert_nrd';
        $this->sdb->prepare($qq,
                            'insert into nrd
                            (version, ic_id, ark_id, entity_type, id)
                            values
                            ($1, $2, $3, $4, $5)');
        $execList = array($vhInfo['version'], $vhInfo['ic_id'], $ark_id, $entity_type, $tableID);
        $result = $this->sdb->execute($qq, $execList);
        $this->sdb->deallocate($qq);
    }
public function insertNrd ( $ vhInfo , $ ark_id , $ entity_type , $ tableID ) { $ qq = 'insert_nrd' ; $ this -> sdb -> prepare ( $ qq , 'insert into nrd
                            (version, ic_id, ark_id, entity_type, id)
                            values
                            ($1, $2, $3, $4, $5)' ) ; $ execList = array ( $ vhInfo [ 'version' ] , $ vhInfo [ 'ic_id' ] , $ ark_id , $ entity_type , $ tableID ) ; $ result = $ this -> sdb -> execute ( $ qq , $ execList ) ; $ this -> sdb -> deallocate ( $ qq ) ; }
Insert nrd record
 Insert the non-repeating parts (non repeading data) of the constellation.
Insert nrd record Insert the non - repeating parts ( non repeading data ) of the constellation .