bigace.classes.sql
[ class tree: bigace.classes.sql ] [ index: bigace.classes.sql ] [ all elements ]

Class: SimpleDBConnection

Source Location: /classes/sql/SimpleDBConnection.php

Class Overview


Class used for connecting to a MySQL Database.


Variables

Methods


Child classes:

MySQLConnection
Class used for connecting to a MySQL Database.

Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 36]
Class used for connecting to a MySQL Database.

If you want to use a differnet Database you have to change the functions implementation.

The DB abstraction layer is - roughly spoken - not existent because BIGACE was planned and programmed as a LAMP System.




[ Top ]


Class Variables

$connect =  null

[line 40]


Type:   mixed


[ Top ]



Class Methods


constructor SimpleDBConnection [line 45]

SimpleDBConnection SimpleDBConnection( )

Connects to the DB by using getConnection()!



[ Top ]

method close [line 113]

void close( )

This closes the Connection what is usually unnecessary (PHP closes links automatically).



[ Top ]

method connect [line 50]

void connect( )



[ Top ]

method freeResult [line 125]

void freeResult( mixed $result)

Free the MySQL resources associated with $result ==> usually unnecessary!



[ Top ]

method getConnection [line 70]

void getConnection( )

Gets the Standard Connection by using.

Overwrite this method for using your own Connection!




Overridden in child classes as:

MySQLConnection::getConnection()

[ Top ]

method insert [line 100]

void insert( mixed $query)

Inserts a new DB entry and if exists returns the auto increment value.



[ Top ]

method onError [line 60]

void onError( mixed $number)



Overridden in child classes as:

MySQLConnection::onError()

[ Top ]

method sql [line 87]

void sql( mixed $query)

Executes any SQL Statement (mysql_query).



[ Top ]

method sqlQuery [line 79]

void sqlQuery( mixed $query)



[ Top ]


Documentation generated on Tue, 11 Oct 2005 23:02:20 +0200 by phpDocumentor 1.3.0RC2