src/snac/server/database/DBUtil.php
/**
     * Populate the resource origination names
     *
     * Like all populate* functions, this modifies the $rObj by calling one its setters, in this case
     * addOriginationName().
     *
     * @param \snac\data\Resource $rObj A Resource object
     */
Populate the resource origination names
Like all populate* functions, this modifies the $rObj by calling one its setters, in this case
addOriginationName().

@param \snac\data\Resource $rObj A Resource object
Populate the resource origination names Like all populate * functions this modifies the $rObj by calling one its setters in this case addOriginationName () . @param \ snac \ data \ Resource $rObj A Resource object
private function populateOriginationNames($rObj)
    {
        $gRows = $this->sql->selectOriginationNames($rObj->getID(), $rObj->getVersion());
        foreach ($gRows as $rec)
        {
            $gObj = new \snac\data\OriginationName();
            $gObj->setName($rec['name']);
            $gObj->setDBInfo($rec['version'], $rec['id']);
            $rObj->addOriginationName($gObj);
        }
    }
private function populateOriginationNames ( $ rObj ) { $ gRows = $ this -> sql -> selectOriginationNames ( $ rObj -> getID ( ) , $ rObj -> getVersion ( ) ) ; foreach ( $ gRows as $ rec ) { $ gObj = new \ snac \ data \ OriginationName ( ) ; $ gObj -> setName ( $ rec [ 'name' ] ) ; $ gObj -> setDBInfo ( $ rec [ 'version' ] , $ rec [ 'id' ] ) ; $ rObj -> addOriginationName ( $ gObj ) ; } }
Populate the resource origination names
 Like all populate* functions, this modifies the $rObj by calling one its setters, in this case
 addOriginationName().
Populate the resource origination names Like all populate * functions this modifies the $rObj by calling one its setters in this case addOriginationName () .
/*
         * $gRows where g is for generic. As in "a generic object". Make this as idiomatic as possible.
         */