TConnection
in package
Singleton manager for database connections
Tags
Table of Contents
Properties
- $config_path : mixed
- $conn_cache : mixed
Methods
- getDatabaseInfo() : mixed
- Returns the database information as an array
- open() : A
- Opens a database connection
- openArray() : A
- Opens a database connection from array with db info
- setConfigPath() : mixed
- Change database configuration Path
- setDatabaseInfo() : mixed
- Set database info
- __construct() : mixed
- Class Constructor There'll be no instances of this class
Properties
$config_path
private
static mixed
$config_path
$conn_cache
private
static mixed
$conn_cache
Methods
getDatabaseInfo()
Returns the database information as an array
public
static getDatabaseInfo( $database) : mixed
Parameters
open()
Opens a database connection
public
static open( $database) : A
Parameters
Tags
Return values
A —PDO object if the $database exist, otherwise, throws an exception
openArray()
Opens a database connection from array with db info
public
static openArray( $db) : A
Parameters
Return values
A —PDO object
setConfigPath()
Change database configuration Path
public
static setConfigPath( $path) : mixed
Parameters
setDatabaseInfo()
Set database info
public
static setDatabaseInfo( $database, $info) : mixed
Parameters
__construct()
Class Constructor There'll be no instances of this class
private
__construct() : mixed