src/snac/server/database/SQL.php
/**
     * Insert a Language link record
     *
     * @param string[] $vhInfo associative list with keys: version, ic_id
     *
     * @param integer $id Record id of this languae link
     *
     * @param integer $languageID Language controlled vocab id
     *
     * @param integer $scriptID Scrip controlled vocab id
     *
     * @param string $vocabularySource Vocabulary source of this language link
     *
     * @param string $note A note
     *
     * @param string $fkTable Related table name
     *
     * @param integer $fkID Related table record id, foreign key
     *
     * @return integer $id The record id of this record.
     */
Insert a Language link record
@param string[] $vhInfo associative list with keys: version, ic_id

@param integer $id Record id of this languae link

@param integer $languageID Language controlled vocab id

@param integer $scriptID Scrip controlled vocab id

@param string $vocabularySource Vocabulary source of this language link

@param string $note A note

@param string $fkTable Related table name

@param integer $fkID Related table record id, foreign key

@return integer $id The record id of this record.
Insert a Language link record @param string [] $vhInfo associative list with keys : version ic_id @param integer $id Record id of this languae link @param integer $languageID Language controlled vocab id @param integer $scriptID Scrip controlled vocab id @param string $vocabularySource Vocabulary source of this language link @param string $note A note @param string $fkTable Related table name @param integer $fkID Related table record id foreign key @return integer $id The record id of this record .
public function insertLanguage($vhInfo, $id, $languageID, $scriptID, $vocabularySource, $note, $fkTable, $fkID)
    {
        if (! $id)
        {
            $id = $this->selectID();
        }
        $qq = 'insert_language';
        $this->sdb->prepare($qq,
                            'insert into language
                            (version, ic_id, id, language_id, script_id, vocabulary_source, note, fk_table, fk_id)
                            values
                            ($1, $2, $3, $4, $5, $6, $7, $8, $9)');
        $eArgs = array($vhInfo['version'],
                       $vhInfo['ic_id'],
                       $id,
                       $languageID,
                       $scriptID,
                       $vocabularySource,
                       $note,
                       $fkTable,
                       $fkID);
        $result = $this->sdb->execute($qq, $eArgs);
        $this->sdb->deallocate($qq);
        return $id;
    }
public function insertLanguage ( $ vhInfo , $ id , $ languageID , $ scriptID , $ vocabularySource , $ note , $ fkTable , $ fkID ) { if ( ! $ id ) { $ id = $ this -> selectID ( ) ; } $ qq = 'insert_language' ; $ this -> sdb -> prepare ( $ qq , 'insert into language
                            (version, ic_id, id, language_id, script_id, vocabulary_source, note, fk_table, fk_id)
                            values
                            ($1, $2, $3, $4, $5, $6, $7, $8, $9)' ) ; $ eArgs = array ( $ vhInfo [ 'version' ] , $ vhInfo [ 'ic_id' ] , $ id , $ languageID , $ scriptID , $ vocabularySource , $ note , $ fkTable , $ fkID ) ; $ result = $ this -> sdb -> execute ( $ qq , $ eArgs ) ; $ this -> sdb -> deallocate ( $ qq ) ; return $ id ; }
Insert a Language link record
 @param string[] $vhInfo associative list with keys: version, ic_id
Insert a Language link record @param string [] $vhInfo associative list with keys : version ic_id