src/snac/server/database/DBUtil.php
/**
     * Populate Constellation properties
     *
     * Populate the Constellation's 1:1 properties. An existing (empty) constellation is changed in place.
     *
     * Get a constellation from the database
     *
     * Select a given constellation from the database based on version and ic_id.
     * Create an empty constellation by calling the constructor with no args. Then used the setters to add
     * individual properties of the class(es).
     *
     * | php                                                    | sql                    |
     * |--------------------------------------------------------+------------------------|
     * | setArkID                                               | ark_id                 |
     * | setEntityType                                          | entity_type            |
     * |                                                        |                        |
     *
     * @param integer[] $vhInfo associative list with keys 'version' and 'ic_id'. The version and ic_id
     * you want. Note that constellation component version numbers are the max() <= version requested.
     * ic_id is the unique id across all tables in this constellation. This is not the nrd.id, but is
     * version_history.ic_id which is also nrd.ic_id, etc.
     *
     * @param $cObj \snac\data\Constellation object, passed by reference, and changed in place
     *
     */
Populate Constellation properties
Populate the Constellation's 1:1 properties. An existing (empty) constellation is changed in place.

Get a constellation from the database

Select a given constellation from the database based on version and ic_id.
Create an empty constellation by calling the constructor with no args. Then used the setters to add
individual properties of the class(es).



@param integer[] $vhInfo associative list with keys 'version' and 'ic_id'. The version and ic_id
you want. Note that constellation component version numbers are the max() <= version requested.
ic_id is the unique id across all tables in this constellation.

@param $cObj \snac\data\Constellation object, passed by reference, and changed in place
Populate Constellation properties Populate the Constellation ' s 1 : 1 properties . An existing ( empty ) constellation is changed in place . Get a constellation from the database Select a given constellation from the database based on version and ic_id . Create an empty constellation by calling the constructor with no args . Then used the setters to add individual properties of the class ( es ) . @param integer [] $vhInfo associative list with keys ' version ' and ' ic_id ' . The version and ic_id you want . Note that constellation component version numbers are the max () < = version requested . ic_id is the unique id across all tables in this constellation . @param $cObj \ snac \ data \ Constellation object passed by reference and changed in place
private function populateNrd($vhInfo, $cObj)
    {
        $row = $this->sql->selectNrd($vhInfo);
        $cObj->setArkID($row['ark_id']);
        $cObj->setEntityType($this->populateTerm($row['entity_type']));
        $cObj->setID($vhInfo['ic_id']); 
        $cObj->setVersion($vhInfo['version']);
    }
private function populateNrd ( $ vhInfo , $ cObj ) { $ row = $ this -> sql -> selectNrd ( $ vhInfo ) ; $ cObj -> setArkID ( $ row [ 'ark_id' ] ) ; $ cObj -> setEntityType ( $ this -> populateTerm ( $ row [ 'entity_type' ] ) ) ; $ cObj -> setID ( $ vhInfo [ 'ic_id' ] ) ; $ cObj -> setVersion ( $ vhInfo [ 'version' ] ) ; }
Populate Constellation properties
 Populate the Constellation's 1:1 properties.
Populate Constellation properties Populate the Constellation ' s 1 : 1 properties .
// constellation ID, $row['ic_id'] has the same value.