Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv11194
Modified Files:
db_layer.php
Log Message:
Rearranging comments.
Index: db_layer.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db_layer.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- db_layer.php 2001/07/05 16:05:11 1.9
+++ db_layer.php 2001/07/08 19:25:36 1.10
@@ -19,10 +19,13 @@
* @version $Id$
*/
class db_layer extends base_object {
+
/**
* Variable containing the database-object.
*
- * The database-object handles all communication with the database. It is created
as an object of the appropriate type, like db_mysql, db_pgsql, etc.
+ * The database-object handles all communication with the
+ * database. It is created as an object of the appropriate type, like
+ * db_mysql, db_pgsql, etc.
*
* @var object db_type
* @access public
@@ -32,22 +35,23 @@
/**
* Creates the database-object based on $input['db_type'].
*
- * @param $input array initial properties for the object.
+ * @param $input array Initial properties for the object.
*/
function db_layer($input) {
/* We call the parent constructor. */
$this->base_object($input);
- /* We then create our db object */
+ /* We then create our db object */
$this->set_db_type($this->properties['db_type']);
}
/**
* Sets the database-type and creates the database-object.
*
- * If the type isn't recognized, then 'null' will be used instead, as this
database-type is always available.
+ * If the type isn't recognized, then 'null' will be used instead, as
+ * this database-type is always available.
*
- * @param $type string the database-type, like 'null', 'mysql' and so on.
+ * @param $type string The database-type, like 'null', 'mysql' and so on.
*/
function set_db_type($type) {
switch ($type) {
@@ -77,8 +81,10 @@
/**
* Gets the database-type.
*
- * @return string the type of the database used, like 'none', 'mysql' and so on.
+ * @return string The type of the database used, like 'none', 'mysql'
+ * and so on.
*/
+
function get_db_type() {
return $this->properties['db_type'];
}
_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins