IP.Board  3.3.0
ips_DBRegistry Class Reference
Inheritance diagram for ips_DBRegistry:
ips_base_Registry

Static Public Member Functions

static fetchQueryFileClassName ($where, $app, $key='')
static fetchQueryFileClassName ($where, $app, $key='')
static fetchQueryFileName ($where, $app, $key='')
static fetchQueryFileName ($where, $app, $key='')
static getDB ($key='')
static getDB ($key='')
static getDriverType ($key= '')
static getDriverType ($key= '')
static getPrefix ($key='')
static getPrefix ($key='')
static instance ()
static instance ()
static loadQueryFile ($where, $app, $key='')
static loadQueryFile ($where, $app, $key='')
static setDB ($db_driver, $key='')
static setDB ($db_driver, $key='', $settings=array())
static unsetDB ($key=false)

Static Protected Attributes

static $data_store = array()
static $dbObjects = array()

Detailed Description

Base Database class


Member Function Documentation

static fetchQueryFileClassName ( where,
app,
key = '' 
) [static]

Fetch query file, if available

public

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
File name
static fetchQueryFileClassName ( where,
app,
key = '' 
) [static]

Fetch query file, if available

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
File name
static fetchQueryFileName ( where,
app,
key = '' 
) [static]

Fetch query file, if available

public

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
File name
static fetchQueryFileName ( where,
app,
key = '' 
) [static]

Fetch query file, if available

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
File name
static getDB ( key = '') [static]

Get DB instance

public

Parameters:
stringKey
Returns:
object
static getDB ( key = '') [static]

Get DB reference based on key

Parameters:
stringKey
Returns:
object
static getDriverType ( key = '') [static]

Returns the driver type currently in use, ex: mysql

public

Parameters:
string$keyKey of the db connection to check
Returns:
object
static getDriverType ( key = '') [static]

Returns the driver type currently in use, ex: mysql

Parameters:
string$keyKey of the db connection to check
Returns:
string
static getPrefix ( key = '') [static]

Return the prefix for this connection

public

Parameters:
stringKey
Returns:
string
static getPrefix ( key = '') [static]

Get the prefix for this connection

Parameters:
stringKey
Returns:
string Prefix
static instance ( ) [static]

Singleton init

public

Returns:
object
static instance ( ) [static]

Loaded query files Initialize singleton

Returns:
object
static loadQueryFile ( where,
app,
key = '' 
) [static]

Fetch query file, if available

public

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
boolean
static loadQueryFile ( where,
app,
key = '' 
) [static]

Fetch query file, if available

Parameters:
string'public' or 'admin'
stringApp dir
stringKey
Returns:
boolean
static setDB ( db_driver,
key = '' 
) [static]

Sets the DB instance

public

Parameters:
object$db_driverDB instance
string$keyKey of the db connection to check
Returns:
void
static setDB ( db_driver,
key = '',
settings = array() 
) [static]

Set a database object

Parameters:
stringDB driver
stringKey
arrayArray of settings( sql_database, sql_user, sql_pass, sql_host, sql_charset, sql_tbl_prefix ) and any other connection vars
Returns:
void
static unsetDB ( key = false) [static]

Unset a DB


The documentation for this class was generated from the following files:
 All Data Structures Functions Variables