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

Class: MySQLConnection

Source Location: /classes/sql/MySQLConnection.php

Class Overview

SimpleDBConnection
   |
   --MySQLConnection

Class used for connecting to a MySQL Database.


Variables

Methods


Child classes:

StatisticConnection
This class opens a Connection to the Statistic Database.

Inherited Constants

Inherited Variables

Inherited Methods

Class: SimpleDBConnection

SimpleDBConnection::SimpleDBConnection()
Connects to the DB by using getConnection()!
SimpleDBConnection::close()
This closes the Connection what is usually unnecessary (PHP closes links automatically).
SimpleDBConnection::connect()
SimpleDBConnection::freeResult()
Free the MySQL resources associated with $result ==> usually unnecessary!
SimpleDBConnection::getConnection()
Gets the Standard Connection by using.
SimpleDBConnection::insert()
Inserts a new DB entry and if exists returns the auto increment value.
SimpleDBConnection::onError()
SimpleDBConnection::sql()
Executes any SQL Statement (mysql_query).
SimpleDBConnection::sqlQuery()

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

$db =  ''

[line 40]


Type:   mixed


[ Top ]

$host =  ''

[line 39]


Type:   mixed


[ Top ]

$isConnected =  FALSE

[line 44]


Type:   mixed


[ Top ]

$password =  ''

[line 42]


Type:   mixed


[ Top ]

$user =  ''

[line 41]


Type:   mixed


[ Top ]



Class Methods


constructor MySQLConnection [line 49]

MySQLConnection MySQLConnection( mixed $host, mixed $db, mixed $user, mixed $password)

Connects to the DB.



[ Top ]

method getConnection [line 63]

void getConnection( )



Overrides SimpleDBConnection::getConnection() (Gets the Standard Connection by using.)

[ Top ]

method isConnected [line 73]

void isConnected( )



[ Top ]

method onError [line 78]

void onError( mixed $number)



Overrides SimpleDBConnection::onError() (parent method not documented)

[ Top ]

method setConnectValues [line 55]

void setConnectValues( mixed $host, mixed $db, mixed $user, mixed $password)



[ Top ]


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