Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv16609

Modified Files:
        db_common.php db_pgsql.php phpweather.php 
Log Message:
I don't like all those <tab>s...


Index: db_common.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db_common.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- db_common.php       2001/03/28 13:31:57     1.2
+++ db_common.php       2001/04/05 15:30:42     1.3
@@ -69,5 +69,4 @@
 
 }
 
-
 ?>

Index: db_pgsql.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db_pgsql.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- db_pgsql.php        2001/04/02 19:34:21     1.2
+++ db_pgsql.php        2001/04/05 15:30:42     1.3
@@ -4,15 +4,15 @@
  *
  * It implements all the methods necessary to insert, update and retrive METARs using 
a PostgreSQL database.
  *
- * @author     Kristian Kristensen <[EMAIL PROTECTED]>
- * @version    $Id$
+ * @author   Kristian Kristensen <[EMAIL PROTECTED]>
+ * @version  $Id$
  */
 class db_pgsql extends db_common {
   
   /**
    * This constructor does nothing besides calling the parent constructor.
    *
-   * @param    array   the initial properties of the object
+   * @param  array  the initial properties of the object
    */
   function db_pgsql($input = array()) {
     $this->db_common($input);
@@ -21,8 +21,8 @@
   /**
    * Gets the type of the database.
    *
-   * @return   string  The type of the database, 'pgsql' in this case.
-   * @access   public
+   * @return  string  The type of the database, 'pgsql' in this case.
+   * @access  public
    */
   function get_type() {
     return 'pgsql';
@@ -34,9 +34,9 @@
    *
    * If there has already been made a connection to the database, this function just 
returns true, and nothing will be changed. This means that it is safe to call this 
instead of testing $is_connected. If $properties['db_pconnect'] is true, then a 
persistent connection will be established.
    *
-   * @return   boolean Returns true, if a connection were established, false 
otherwise.
-   * @access   public
-   * @see      disconnect()
+   * @return  boolean  Returns true, if a connection were established, false 
+otherwise.
+   * @access  public
+   * @see     disconnect()
    */
   function connect() {
     /* Connect to the PostgreSQL server */
@@ -62,9 +62,9 @@
    *
    * If we're already disconnected from the database, this function will just return 
true.
    *
-   * @return   boolean If the disconnec was succesfull then it returns true, 
otherwise it returns false.
-   * @access   public
-   * @see      connect()
+   * @return  boolean  If the disconnec was succesfull then it returns true, 
+otherwise it returns false.
+   * @access  public
+   * @see     connect()
    */
   function disconnect() {
     if (!$this->is_connected || pg_close($this->link_id)) {
@@ -79,8 +79,8 @@
   /**
    * Selects a database.
    *
-   * @return   boolean Returns true on success, false otherwise.
-   * @access   public
+   * @return  boolean  Returns true on success, false otherwise.
+   * @access  public
    */
   function select_db() {
     if ($this->is_connected) {
@@ -96,9 +96,9 @@
    *
    * $result_id is updated as well
    *
-   * @param    string  The SQL-statement.
-   * @return   boolean True on success, false otherwise.
-   * @access   public
+   * @param   string   The SQL-statement.
+   * @return  boolean  True on success, false otherwise.
+   * @access  public
    */
   function query($query) {
     return ($this->result_id = pg_exec( $this->link_id, $query));
@@ -107,8 +107,8 @@
   /**
    * Fetches a row as an array from the database.
    *
-   * @return   array   The next row from the result-set.
-   * @access   public
+   * @return  array   The next row from the result-set.
+   * @access  public
    */
   function fetch_row() {
     return pg_fetch_row($this->result_id,0);
@@ -117,8 +117,8 @@
   /**
    * Fetches a row as an associative array from the database.
    *
-   * @return   array   The next row from the result-set, as an associative array.
-   * @access   public
+   * @return  array   The next row from the result-set, as an associative array.
+   * @access  public
    */
   function fetch_array() {
     return pg_fetch_array($this->result_id,0);
@@ -127,8 +127,8 @@
   /**
    * Returns the number of rows in the result-set.
    *
-   * @return   integer The number of rows in the current result-set.
-   * @access   public
+   * @return  integer  The number of rows in the current result-set.
+   * @access  public
    */
   function num_rows() {
     return pg_numrows($this->result_id);
@@ -137,11 +137,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) {
     $this->query("INSERT INTO metars SET station = '$station', metar = '$metar', 
timestamp = FROM_UNIXTIME($timestamp)");
@@ -151,11 +151,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) {
     $this->query("UPDATE metars SET metar = '$metar', timestamp = '$timestamp' WHERE 
station = '$station'");
@@ -164,9 +164,9 @@
   /**
    * Gets a METAR form the database.
    *
-   * @param    string  The ICAO of the station.
-   * @return   string  The raw METAR as an array from the database.
-   * @access   public
+   * @param   string  The ICAO of the station.
+   * @return  string  The raw METAR as an array from the database.
+   * @access  public
    */
   function get_metar($station) {
     $this->query("SELECT metar, timestamp FROM metars WHERE station = '$station'");

Index: phpweather.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- phpweather.php      2001/03/26 20:25:49     1.2
+++ phpweather.php      2001/04/05 15:30:42     1.3
@@ -13,7 +13,7 @@
   /**
    * The localized output-object
    *
-   * @var      object locale_en
+   * @var  object  locale_en
    */
   var $output;
 
@@ -22,8 +22,8 @@
    *
    * It extends the defaults with 'language' = 'en'.
    *
-   * @param    array   The initial properties of the object.
-   * @access   public
+   * @param   array   The initial properties of the object.
+   * @access  public
    */
   function phpweather($input) {
     /* First we extend the defaults values. */


_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins

Reply via email to