src/snac/server/database/DBUtil.php
/**
     * Save a GeoTerm
     *
     * Insert a GeoTerm object into the database. This is a public function that outside code is expected to
     * call.
     *
     * @param \snac\data\GeoTerm $term A GeoTerm object
     *
     * @param integer $version A version number, defaults to 1
     *
     * The ID may be null or the empty string in which case the database will assign a new value.
     */
Save a GeoTerm
Insert a GeoTerm object into the database. This is a public function that outside code is expected to
call.



@param integer $version A version number, defaults to 1

The ID may be null or the empty string in which case the database will assign a new value.
Save a GeoTerm Insert a GeoTerm object into the database . This is a public function that outside code is expected to call . @param integer $version A version number defaults to 1 The ID may be null or the empty string in which case the database will assign a new value .
public function saveGeoTerm(\snac\data\GeoTerm $term, $version)
    {
        if (! $version)
        {
            $version = 1;
        }
        $id = insertGeo($term->getID(),
                        $version,
                        $term->getURI(),
                        $term->getName(),
                        $term->getLatitude(),
                        $term->getLongitude(),
                        $term->getAdministrationCode(),
                        $term->getCountryCode());
        return $id;
    }
public function saveGeoTerm ( \ snac \ data \ GeoTerm $ term , $ version ) { if ( ! $ version ) { $ version = 1 ; } $ id = insertGeo ( $ term -> getID ( ) , $ version , $ term -> getURI ( ) , $ term -> getName ( ) , $ term -> getLatitude ( ) , $ term -> getLongitude ( ) , $ term -> getAdministrationCode ( ) , $ term -> getCountryCode ( ) ) ; return $ id ; }
Save a GeoTerm
 Insert a GeoTerm object into the database.
Save a GeoTerm Insert a GeoTerm object into the database .