Orion PHP  0.11.12
The PHP5.3 framework
Orion\Core\DB\Sql Class Reference
+ Inheritance diagram for Orion\Core\DB\Sql:

List of all members.

Static Public Member Functions

static getConnection ()
static disconnect ()

Private Member Functions

 __construct ()
 __clone ()

Static Private Attributes

static $instance = null
static $DEFAULT_DRIVER = 'mysql'
static $SQL_DRIVERS = array( 'mysql', 'pgsql' )

Detailed Description

Orion sql connector class.

Generates a singelton PDO instance.

Author:
Thibaut Despoulain BSD 4-clauses
Version:
0.11.12

Definition at line 19 of file sql.php.


Constructor & Destructor Documentation

Orion\Core\DB\Sql::__construct ( ) [private]

the constructor is set to private so nobody can create a new instance using new

Definition at line 45 of file sql.php.


Member Function Documentation

Orion\Core\DB\Sql::__clone ( ) [private]

__clone is set to private, so nobody can clone the instance

Definition at line 99 of file sql.php.

static Orion\Core\DB\Sql::disconnect ( ) [static]

Manually close the PDO connection to database

Returns:
boolean success

Implements Orion\Core\DB\Base.

Definition at line 88 of file sql.php.

static Orion\Core\DB\Sql::getConnection ( ) [static]

Return PDO instance or create intitial connection

Returns:
PDO public

Implements Orion\Core\DB\Base.

Definition at line 55 of file sql.php.


Member Data Documentation

Orion::Core::DB\Sql::$DEFAULT_DRIVER = 'mysql' [static, private]

Definition at line 32 of file sql.php.

Orion::Core::DB\Sql::$instance = null [static, private]

Definition at line 25 of file sql.php.

Orion::Core::DB\Sql::$SQL_DRIVERS = array( 'mysql', 'pgsql' ) [static, private]

Definition at line 39 of file sql.php.


The documentation for this class was generated from the following file: