src/snac/server/database/SQL.php
/**
     * Insert entityID record
     *
     * Insert an ID from external records for this constellation. For the sake of convention, we put
     * the SQL columns in the same order as the function args.
     *
     * @param string[] $vhInfo associative list with keys: version, ic_id
     *
     * @param int $id The id of this record, otherid.id
     *
     * @param string $text The text of the SameAs object.
     *
     * @param integer $typeID Vocabulary id foreign key for the type of this entityID. Probably the ids for
     * ISNI, LoC MARC organization, etc.
     *
     * @param string $uri The URI of the other record (not currently used)
     *
     */
Insert entityID record
Insert an ID from external records for this constellation. For the sake of convention, we put
the SQL columns in the same order as the function args.

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

@param int $id The id of this record, otherid.id

@param string $text The text of the SameAs object.

@param integer $typeID Vocabulary id foreign key for the type of this entityID. Probably the ids for
ISNI, LoC MARC organization, etc.

@param string $uri The URI of the other record (not currently used)
Insert entityID record Insert an ID from external records for this constellation . For the sake of convention we put the SQL columns in the same order as the function args . @param string [] $vhInfo associative list with keys : version ic_id @param int $id The id of this record otherid . id @param string $text The text of the SameAs object . @param integer $typeID Vocabulary id foreign key for the type of this entityID . Probably the ids for ISNI LoC MARC organization etc . @param string $uri The URI of the other record ( not currently used )
public function insertEntityID($vhInfo, $id, $text, $typeID, $uri)
    {
        if (! $id)
        {
            $id = $this->selectID();
        }
        $qq = 'insert_entity_id';
        $this->sdb->prepare($qq,
                            'insert into entityid
                            (version, ic_id, id, text, type, uri)
                            values
                            ($1, $2, $3, $4, $5, $6)');
        $result = $this->sdb->execute($qq,
                                      array($vhInfo['version'],
                                            $vhInfo['ic_id'],
                                            $id,
                                            $text,
                                            $typeID,
                                            $uri));
        $this->sdb->deallocate($qq);
        return $id;
    }
public function insertEntityID ( $ vhInfo , $ id , $ text , $ typeID , $ uri ) { if ( ! $ id ) { $ id = $ this -> selectID ( ) ; } $ qq = 'insert_entity_id' ; $ this -> sdb -> prepare ( $ qq , 'insert into entityid
                            (version, ic_id, id, text, type, uri)
                            values
                            ($1, $2, $3, $4, $5, $6)' ) ; $ result = $ this -> sdb -> execute ( $ qq , array ( $ vhInfo [ 'version' ] , $ vhInfo [ 'ic_id' ] , $ id , $ text , $ typeID , $ uri ) ) ; $ this -> sdb -> deallocate ( $ qq ) ; return $ id ; }
Insert entityID record
 Insert an ID from external records for this constellation.
Insert entityID record Insert an ID from external records for this constellation .