Public Member Functions | Data Fields | Protected Member Functions
DatabaseConnectionMysql Class Reference

Database MySql connection. More...

Inheritance diagram for DatabaseConnectionMysql:
DatabaseConnection

Public Member Functions

 DatabaseConnectionMysql ($db_settings)
 
 connected ()
 
- Public Member Functions inherited from DatabaseConnection
 DatabaseConnection ($db_settings)
 
 debugQueries ()
 
 tablePrefix ()
 

Data Fields

 $_connected = false
 
 $_connection = NULL
 
- Data Fields inherited from DatabaseConnection
 $_debug_queries = false
 
 $_table_prefix = ''
 

Protected Member Functions

 connect ($base, $server, $user, $pass)
 
- Protected Member Functions inherited from DatabaseConnection
 connect ($base, $server, $user, $pass)
 

Detailed Description

Database MySql connection.

Version
1.1
Author
DinuSV

Connects to a mysql database. Also a wrapper for php's connection resource.

Member Function Documentation

DatabaseConnectionMysql (   $db_settings)

Constructor

connect (   $base,
  $server,
  $user,
  $pass 
)
protected

Connect to mysql database Overrides DatabaseConnection::connect( $base, $server, $user, $pass )

Parameters
string$base: the database to connect to
string$server: the server name
string$user: user for the database
string$pass: password for the database
connected ( )
Returns
true if connected, false otherwise

Field Documentation

$_connected = false

bool : is set to true once the connection is established

$_connection = NULL

resource : mysql connection