cvs: pear /Services_Weather/Weather Metar.php

From: Date: Mon, 06 Oct 2003 14:57:45 +0000
Subject: cvs: pear /Services_Weather/Weather Metar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13423@lists.php.net to get a copy of this message
eru Mon Oct 6 10:57:45 2003 EDT Modified files: /pear/Services_Weather/Weather Metar.php Log: *Added elevation to location-data Index: pear/Services_Weather/Weather/Metar.php diff -u pear/Services_Weather/Weather/Metar.php:1.13 pear/Services_Weather/Weather/Metar.php:1.14 --- pear/Services_Weather/Weather/Metar.php:1.13 Mon Oct 6 10:00:57 2003 +++ pear/Services_Weather/Weather/Metar.php Mon Oct 6 10:57:45 2003 @@ -16,7 +16,7 @@ // | Authors: Alexander Wirtz <alex@pc4p.net> | // +----------------------------------------------------------------------+ // -// $Id: Metar.php,v 1.13 2003/10/06 14:00:57 eru Exp $ +// $Id: Metar.php,v 1.14 2003/10/06 14:57:45 eru Exp $ require_once "Services/Weather/Common.php"; @@ -838,7 +838,7 @@ $locationReturn["cache"] = "HIT"; } elseif (isset($this->_db) && DB::isConnection($this->_db)) { // Get data from DB - $select = "SELECT icao, name, state, country, latitude, longitude ". + $select = "SELECT icao, name, state, country, latitude, longitude, elevation ". "FROM metarAirports WHERE icao='".$id."'"; $result = $this->_db->query($select); @@ -863,7 +863,8 @@ "state" => "", "country" => "", "latitude" => "", - "longitude" => "" + "longitude" => "", + "elevation" => "" ); } // Stuff name-string together @@ -877,6 +878,7 @@ $locationReturn["name"] = $locname; $locationReturn["latitude"] = $this->_location["latitude"]; $locationReturn["longitude"] = $this->_location["longitude"]; + $locationReturn["elevation"] = $this->_location["elevation"]; return $locationReturn; }

« previous php.pear.cvs (#13423) next »