src/snac/server/database/DBUtil.php
/**
     * Select GeneralContext from database
     *
     * Create object, add the object to Constellation. Support multiples per constellation.  Get BiogHist from
     * database, create relevant object and add to the constellation object passed as an argument.
     *
     * Note: $cObj passed by reference and changed in place.
     *
     * @param integer[] $vhInfo list with keys version, ic_id.
     *
     * @param $cObj \snac\data\Constellation object, passed by reference, and changed in place
     */
Select GeneralContext from database
Create object, add the object to Constellation. Support multiples per constellation.  Get BiogHist from
database, create relevant object and add to the constellation object passed as an argument.

$cObj passed by reference and changed in place.

@param integer[] $vhInfo list with keys version, ic_id.

@param $cObj \snac\data\Constellation object, passed by reference, and changed in place
Select GeneralContext from database Create object add the object to Constellation . Support multiples per constellation . Get BiogHist from database create relevant object and add to the constellation object passed as an argument . $cObj passed by reference and changed in place . @param integer [] $vhInfo list with keys version ic_id . @param $cObj \ snac \ data \ Constellation object passed by reference and changed in place
private function populateBiogHist($vhInfo, $cObj)
    {
        $tableName = 'biog_hist';
        $rows = $this->sql->selectBiogHist($vhInfo);
        foreach ($rows as $item)
        {
            $newObj = new \snac\data\BiogHist();
            $newObj->setText($item['text']);
            $newObj->setDBInfo($item['version'], $item['id']);
            $this->populateMeta($vhInfo, $newObj, $tableName);
            $this->populateLanguage($vhInfo, $newObj, $item['id'], $tableName);
            $cObj->addBiogHist($newObj);
        }
    }
private function populateBiogHist ( $ vhInfo , $ cObj ) { $ tableName = 'biog_hist' ; $ rows = $ this -> sql -> selectBiogHist ( $ vhInfo ) ; foreach ( $ rows as $ item ) { $ newObj = new \ snac \ data \ BiogHist ( ) ; $ newObj -> setText ( $ item [ 'text' ] ) ; $ newObj -> setDBInfo ( $ item [ 'version' ] , $ item [ 'id' ] ) ; $ this -> populateMeta ( $ vhInfo , $ newObj , $ tableName ) ; $ this -> populateLanguage ( $ vhInfo , $ newObj , $ item [ 'id' ] , $ tableName ) ; $ cObj -> addBiogHist ( $ newObj ) ; } }
Select GeneralContext from database
 Create object, add the object to Constellation.
Select GeneralContext from database Create object add the object to Constellation .