Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /www/gimpster.com/php/phpweather/db_layer.php
PHP Weather - PHP Weather

db_layer

base_object
   |
  +-- db_layer

This class is used to maintain the database-object.

 

private class db_layer extends base_object

This class is used to maintain the database-object.

AuthorsMartin Geisler <gimpster@gimpster.com>
Versiondb_layer.html,v 1.6 2001/06/27 11:35:43 gimpster Exp

 
Direct known subclasses: data_retrieval

Methods inherited from base_object

base_object, error, debug, print_properties

Public Method Summary

void

db_layer(array $input)

Creates the database-object based on $input['db_type'].

Private Method Summary

void

set_db_type(string $type)

Sets the database-type and creates the database-object.
string

get_db_type()

Gets the database-type.

Fields inherited from base_object

$properties, $version

Public Field Summary

object db_type

$db

Variable containing the database-object.

Public Method Details

db_layer

public void db_layer( array $input )

  Creates the database-object based on $input['db_type'].

Parameter
array $input
properties for the object.
Returns void


Private Method Details

set_db_type

private void set_db_type( string $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.

Parameter
string $type
database-type, like 'null', 'mysql' and so on.
Returns void


get_db_type

private string get_db_type( )

  Gets the database-type.

Returns string

the type of the database used, like 'none', 'mysql' and so on.


Public Field Details

$db

public object db_type $db

>><<

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.



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta