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

Database abstraction, containing all the defined methods. More...

Inheritance diagram for DatabaseConnection:
DatabaseConnectionMysql

Public Member Functions

 DatabaseConnection ($db_settings)
 
 debugQueries ()
 
 tablePrefix ()
 

Data Fields

 $_debug_queries = false
 
 $_table_prefix = ''
 

Protected Member Functions

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

Detailed Description

Database abstraction, containing all the defined methods.

Version
1.1
Author
DinuSV

Member Function Documentation

DatabaseConnection (   $db_settings)

Constructor

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

Connection method

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
debugQueries ( )
Returns
true if debug queries was configured to true, false otherwise
tablePrefix ( )
Returns
table prefix

Field Documentation

$_debug_queries = false

bool : true if query-debug is enabled

$_table_prefix = ''

string : In case the database contains tables from other web applications, it's good practice to add a common prefix to all tables used within this application