src/snac/server/database/DBUtil.php
/**
     * Build a GeoTerm
     *
     * Return a GeoTerm object selected from database. Outside code can (and will, sometimes) call this, but
     * primarily this is used to build GeoTerm objects as part of Place in a Constellation.
     *
     * @param integer $termID A unique integer record id from the database table geo_place.
     *
     * @return \snac\data\GeoTerm $gObj A GeoTerm object.
     */
Build a GeoTerm
Return a GeoTerm object selected from database. Outside code can (and will, sometimes) call this, but
primarily this is used to build GeoTerm objects as part of Place in a Constellation.

@param integer $termID A unique integer record id from the database table geo_place.


Build a GeoTerm Return a GeoTerm object selected from database . Outside code can ( and will sometimes ) call this but primarily this is used to build GeoTerm objects as part of Place in a Constellation . @param integer $termID A unique integer record id from the database table geo_place .
public function buildGeoTerm($termID)
    {
        $rec = $this->sql->selectGeoTerm($termID);
        if ($rec == null || empty($rec))
            return null;
        $gObj = new \snac\data\GeoTerm();
        $gObj->setID($rec['id']);
        $gObj->setURI($rec['uri']);
        $gObj->setName($rec['name']);
        $gObj->setLatitude($rec['latitude']);
        $gObj->setLongitude($rec['longitude']);
        $gObj->setAdministrationCode($rec['admin_code']);
        $gObj->setCountryCode($rec['country_code']);
        return $gObj;
    }
public function buildGeoTerm ( $ termID ) { $ rec = $ this -> sql -> selectGeoTerm ( $ termID ) ; if ( $ rec == null || empty ( $ rec ) ) return null ; $ gObj = new \ snac \ data \ GeoTerm ( ) ; $ gObj -> setID ( $ rec [ 'id' ] ) ; $ gObj -> setURI ( $ rec [ 'uri' ] ) ; $ gObj -> setName ( $ rec [ 'name' ] ) ; $ gObj -> setLatitude ( $ rec [ 'latitude' ] ) ; $ gObj -> setLongitude ( $ rec [ 'longitude' ] ) ; $ gObj -> setAdministrationCode ( $ rec [ 'admin_code' ] ) ; $ gObj -> setCountryCode ( $ rec [ 'country_code' ] ) ; return $ gObj ; }
Build a GeoTerm
 Return a GeoTerm object selected from database.
Build a GeoTerm Return a GeoTerm object selected from database .
/*
         * Class GeoTerm has no SNACControlMetadata
         */