src/snac/server/database/DBUtil.php
/**
     * Save the biogHist
     *
     * Constellation biogHist is currently a list, although the expectation is that it only has a single
     * element.
     *
     * biogHist language, and biogHist date(s?). This is a private function that exists to
     * keep the code organized. It is probably only called from saveConstellation().
     *
     * @param array[] $vhInfo Associative list with keys version, ic_id
     *
     * @param \snac\data\BiogHist A single BiogHist object.
     */
Save the biogHist
Constellation biogHist is currently a list, although the expectation is that it only has a single
element.

biogHist language, and biogHist date(s?). This is a private function that exists to
keep the code organized. It is probably only called from saveConstellation().

@param array[] $vhInfo Associative list with keys version, ic_id


Save the biogHist Constellation biogHist is currently a list although the expectation is that it only has a single element . biogHist language and biogHist date ( s? ) . This is a private function that exists to keep the code organized . It is probably only called from saveConstellation () . @param array [] $vhInfo Associative list with keys version ic_id
private function saveBiogHist($vhInfo, $cObj)
    {
        $tableName = 'biog_hist';
        foreach ($cObj->getBiogHistList() as $biogHist)
        {
            $bid = $biogHist->getID();
            if ($this->prepOperation($vhInfo, $biogHist))
            {
                $bid = $this->sql->insertBiogHist($vhInfo,
                                                  $biogHist->getID(),
                                                  $biogHist->getText());
                $biogHist->setID($bid);
                $biogHist->setVersion($vhInfo['version']);
            }
            $this->saveMeta($vhInfo, $biogHist, $tableName, $bid);
            if ($lang = $biogHist->getLanguage())
            {
                $this->saveLanguage($vhInfo, $biogHist, $tableName, $bid);
            }
        }
    }
private function saveBiogHist ( $ vhInfo , $ cObj ) { $ tableName = 'biog_hist' ; foreach ( $ cObj -> getBiogHistList ( ) as $ biogHist ) { $ bid = $ biogHist -> getID ( ) ; if ( $ this -> prepOperation ( $ vhInfo , $ biogHist ) ) { $ bid = $ this -> sql -> insertBiogHist ( $ vhInfo , $ biogHist -> getID ( ) , $ biogHist -> getText ( ) ) ; $ biogHist -> setID ( $ bid ) ; $ biogHist -> setVersion ( $ vhInfo [ 'version' ] ) ; } $ this -> saveMeta ( $ vhInfo , $ biogHist , $ tableName , $ bid ) ; if ( $ lang = $ biogHist -> getLanguage ( ) ) { $ this -> saveLanguage ( $ vhInfo , $ biogHist , $ tableName , $ bid ) ; } } }
Save the biogHist
 Constellation biogHist is currently a list, although the expectation is that it only has a single
 element.
Save the biogHist Constellation biogHist is currently a list although the expectation is that it only has a single element .