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

Modified Files:
        db_common.php db_mysql.php 
Log Message:
I just removed some tabs...


Index: db_common.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db_common.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- db_common.php       2001/03/22 18:04:10     1.1.1.1
+++ db_common.php       2001/03/28 13:31:57     1.2
@@ -4,32 +4,33 @@
  *
  * It contains some properties most database-types need, like $is_connected, $link_id 
and $result_id.
  *
- * @author     Martin Geisler <[EMAIL PROTECTED]>
- * @version    $Id$
+ * @author   Martin Geisler <[EMAIL PROTECTED]>
+ * @version  $Id$
  */
 class db_common extends base_object {
 
   /**
    * Maintains the status of the database-connection.
    *
-   * @var      boolean
-   * @access   public
+   * @var     boolean
+   * @access  public
    */
+
   var $is_connected;
 
   /**
    * contains the link_id used when querying.
    *
-   * @var      integer
-   * @access   private
+   * @var     integer
+   * @access  private
    */
   var $link_id;
   
   /**
    * contains the result_id used when fetching rows from a result-set.
    *
-   * @var      integer
-   * @access   private
+   * @var     integer
+   * @access  private
    */
   var $result_id;
 
@@ -45,7 +46,7 @@
    * - 'db_port'     = ''
    * After that, $is_connected, $link_id and $result_id is set to false, to indicate 
that we're not connected.
    * 
-   * @param    array   the initial properties of the object
+   * @param  array  the initial properties of the object
    */
   function db_common($input) {
     /* First we extend the defaults. */

Index: db_mysql.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db_mysql.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- db_mysql.php        2001/03/22 18:04:09     1.1.1.1
+++ db_mysql.php        2001/03/28 13:31:57     1.2
@@ -4,15 +4,15 @@
  *
  * It implements all the methods necessary to insert, update and retrive METARs using 
a MySQL database.
  *
- * @author     Martin Geisler <[EMAIL PROTECTED]>
- * @version    $Id$
+ * @author   Martin Geisler <[EMAIL PROTECTED]>
+ * @version  $Id$
  */
 class db_mysql 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_mysql($input) {
     $this->db_common($input);
@@ -21,8 +21,8 @@
   /**
    * Gets the type of the database.
    *
-   * @return   string  The type of the database, 'mysql' in this case.
-   * @access   public
+   * @return  string  The type of the database, 'mysql' in this case.
+   * @access  public
    */
   function get_type() {
     return 'mysql';
@@ -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 MySQL server */
@@ -66,9 +66,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 || mysql_close($this->link_id)) {
@@ -83,8 +83,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() {
     return mysql_select_db($this->properties['db_database'], $this->link_id);
@@ -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 = mysql_query($query, $this->link_id));
@@ -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 mysql_fetch_row($this->result_id);
@@ -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 mysql_fetch_array($this->result_id);
@@ -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 mysql_num_rows($this->result_id);
@@ -137,10 +137,10 @@
   /**
    * 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
+   * @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) {
@@ -151,10 +151,10 @@
   /**
    * 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
+   * @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) {
@@ -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, UNIX_TIMESTAMP(timestamp) FROM metars WHERE station = 
'$station'");


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

Reply via email to