Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv22178 Modified Files: README db_none.php locale_en.php metar_parser.php Log Message: Changed some tabs to whitespace. Also introduces #VERSION# and #DATE# in the README-file. These strings are substituted, when we make a new release. Index: README =================================================================== RCS file: /cvsroot/phpweather/phpweather/README,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- README 2001/03/24 18:56:59 1.9 +++ README 2001/03/30 13:25:36 1.10 @@ -1,4 +1,4 @@ -README for PHP Weather +README for PHP Weather #VERSION# #DATE# Copyright (C) 2000, 2001 Martin Geisler <[EMAIL PROTECTED]> Licensed under the GNU GPL. See the file COPYING for details. @@ -28,12 +28,11 @@ please write a translation. o Can be use with WAP-phones. Example-page is included. -Please see http://www.gimpster.com/php/phpweather/index.php for full -details and examples. +Please see http://phpweather.sourceforge.net/ for full details and +examples. How to contact me ----------------- - If you encounter problems with PHP Weather, or just want to suggest a new feature, then please don't hesitate to contact me at this address: Index: db_none.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db_none.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- db_none.php 2001/03/26 20:18:26 1.2 +++ db_none.php 2001/03/30 13:25:36 1.3 @@ -31,9 +31,9 @@ /** * Establishes a connection to the database. * - * @return boolean Since there's no database with this back-end, this function will always return true. - * @access public - * @see disconnect() + * @return boolean Since there's no database with this back-end, this function +will always return true. + * @access public + * @see disconnect() */ function connect() { return true; @@ -42,9 +42,9 @@ /** * Disconnects from the database. * - * @return boolean Since we don't really use a database, this will always return true. - * @access public - * @see connect() + * @return boolean Since we don't really use a database, this will always return +true. + * @access public + * @see connect() */ function disconnect() { return true; @@ -53,8 +53,8 @@ /** * Selects a database. * - * @return boolean This function always returns false, since that should stop users from trying to use the database. - * @access public + * @return boolean This function always returns false, since that should stop +users from trying to use the database. + * @access public */ function select_db() { return false; @@ -63,9 +63,9 @@ /** * Executes a SQL-query. * - * @param string The SQL-statement. - * @return boolean We can't execute SQL with no database, we return false. - * @access public + * @param string The SQL-statement. + * @return boolean We can't execute SQL with no database, we return false. + * @access public */ function query($query) { return false; @@ -74,8 +74,8 @@ /** * Fetches a row as an array from the database. * - * @return array We can't fetch rows with no database, so we return an empty array. - * @access public + * @return array We can't fetch rows with no database, so we return an empty +array. + * @access public */ function fetch_row() { return array(); @@ -84,8 +84,8 @@ /** * Fetches a row as an associative array from the database. * - * @return array We can't fetch rows with no database, so we return an empty array. - * @access public + * @return array We can't fetch rows with no database, so we return an empty +array. + * @access public */ function fetch_array() { return array(); @@ -94,8 +94,8 @@ /** * Returns the number of rows in the result-set. * - * @return integer This doesn't make any sense with no database. - * @access public + * @return integer This doesn't make any sense with no database. + * @access public */ function num_rows() { return 0; @@ -104,11 +104,11 @@ /** * Inserts a METAR into the database. * - * @param string The ICAO of the station. - * @param string The raw METAR. - * @param integer A standard UNIX timestamp. - * @access public - * @see update_metar() + * @param string The ICAO of the station. + * @param string The raw METAR. + * @param integer A standard UNIX timestamp. + * @access public + * @see update_metar() */ function insert_metar($station, $metar, $timestamp) { ; @@ -117,11 +117,11 @@ /** * Updates an existing METAR in the database. * - * @param string The ICAO of the station. - * @param string The raw METAR. - * @param integer A standard UNIX timestamp. - * @access public - * @see insert_metar() + * @param string The ICAO of the station. + * @param string The raw METAR. + * @param integer A standard UNIX timestamp. + * @access public + * @see insert_metar() */ function update_metar($station, $metar, $timestamp) { ; @@ -130,9 +130,9 @@ /** * Gets a METAR form the database. * - * @param string The ICAO of the station. - * @return string Since we don't have a database, we just return an empty string. - * @access public + * @param string The ICAO of the station. + * @return string Since we don't have a database, we just return an empty string. + * @access public */ function get_metar($station) { return ''; Index: locale_en.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/locale_en.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -3 -r1.1.1.1 -r1.2 --- locale_en.php 2001/03/22 18:04:10 1.1.1.1 +++ locale_en.php 2001/03/30 13:25:36 1.2 @@ -2,15 +2,15 @@ /** * Provides all the strings needed by locale_common to produce English output. * - * @author Martin Geisler <[EMAIL PROTECTED]> - * @version $Id$ + * @author Martin Geisler <[EMAIL PROTECTED]> + * @version $Id$ */ class locale_en extends locale_common { - + /** * This constructor provides all the strings used. * - * @param array This is just passed on to locale_common() + * @param array This is just passed on to locale_common() */ function locale_en($input) { Index: metar_parser.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/metar_parser.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -3 -r1.1.1.1 -r1.2 --- metar_parser.php 2001/03/22 18:04:11 1.1.1.1 +++ metar_parser.php 2001/03/30 13:25:36 1.2 @@ -4,8 +4,8 @@ * * The decoded METAR is saved in $decoded_metar, in a language-neutral format. * - * @author Martin Geisler <[EMAIL PROTECTED]> - * @version $Id$ + * @author Martin Geisler <[EMAIL PROTECTED]> + * @version $Id$ * @see $decoded_metar */ class metar_parser extends data_retrieval { @@ -15,11 +15,10 @@ * * $decoded_metar is an array of arrays. Each sub-array corresponds to a group of related weather-info. We have cloud-groups, visibility-groups and so on. * - * @var array + * @var array */ var $decoded_metar; - /** * This constructor does nothing besides passing the input down the hierarchy. * @@ -38,10 +37,10 @@ * degree, store in $temp_c, convert to Fahrenheit and store in * $temp_f * - * @param string The temperature to convert, coded to tenth of degree, like 1015 - * @param integer The temperature measured in degrees Celsius - * @param integer The temperature measured in degrees Fahrenheit - * @access private + * @param string The temperature to convert, coded to tenth of degree, like 1015 + * @param integer The temperature measured in degrees Celsius + * @param integer The temperature measured in degrees Fahrenheit + * @access private */ function store_temp($temp, &$temp_c, &$temp_f) { /* @@ -65,12 +64,12 @@ * * $value is converted and stored based on $windunit. * - * @param float The value one seeks to convert. - * @param string The unit of $value. - * @param float &$knots After $value has been converted into knots, it will be stored in this variable. - * @param float &$meterspersec After $value has been converted into meters per second, it will be stored in this variable. - * @param float &$milesperhour After $value has been converted into miles per hour, it will be stored in this variable. - * @access private + * @param float The value one seeks to convert. + * @param string The unit of $value. + * @param float &$knots After $value has been converted into knots, it +will be stored in this variable. + * @param float &$meterspersec After $value has been converted into meters per +second, it will be stored in this variable. + * @param float &$milesperhour After $value has been converted into miles per +hour, it will be stored in this variable. + * @access private */ function store_speed($value, $windunit, &$knots, &$meterspersec, &$milesperhour) { if ($value == 0) { @@ -109,9 +108,9 @@ * * This function loops over the various parts of the raw METAR, and stores the different bits in $decoded_metar. It uses get_metar() to retrieve the METAR, so it is not necessary to connect to the database before you call this function. * - * @return array The decoded METAR. - * @see $decoded_metar - * @access public + * @return array The decoded METAR. + * @see $decoded_metar + * @access public */ function decode_metar() { /* initialization */ _______________________________________________ PHPWeather-checkins mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/phpweather-checkins