src/snac/server/database/DBUtil.php
/**
     * Select gender from database
     *
     * Create object, add the object to Constellation. Support multiples per constellation.
     *
     * 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 gender from database
Create object, add the object to Constellation. Support multiples per constellation.

$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 gender from database Create object add the object to Constellation . Support multiples per constellation . $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 populateGender($vhInfo, $cObj)
    {
        $rows = $this->sql->selectGender($vhInfo);
        foreach ($rows as $item)
        {
            $newObj = new \snac\data\Gender();
            $newObj->setTerm($this->populateTerm($item['term_id']));
            $newObj->setDBInfo($item['version'], $item['id']);
            $this->populateMeta($vhInfo, $newObj, 'gender');
            $cObj->addGender($newObj);
        }
    }
private function populateGender ( $ vhInfo , $ cObj ) { $ rows = $ this -> sql -> selectGender ( $ vhInfo ) ; foreach ( $ rows as $ item ) { $ newObj = new \ snac \ data \ Gender ( ) ; $ newObj -> setTerm ( $ this -> populateTerm ( $ item [ 'term_id' ] ) ) ; $ newObj -> setDBInfo ( $ item [ 'version' ] , $ item [ 'id' ] ) ; $ this -> populateMeta ( $ vhInfo , $ newObj , 'gender' ) ; $ cObj -> addGender ( $ newObj ) ; } }
Select gender from database
 Create object, add the object to Constellation.
Select gender from database Create object add the object to Constellation .