Class: DBConnectionStack
Source Location: /pnobjlib/DBConnectionStack.class.php
Class OverviewThis class maintains a stack of database connections. Getting a connection will always return the connection object which is currently on top of the connections stack (ie: the latest added connection). |
Methods |
Inherited Variables
Inherited Methods
Class Details
[line 23]
This class maintains a stack of database connections. Getting a connection will always return the connection object which is currently on top of the connections stack (ie: the latest added connection).
[ Top ]
Class Methods
method getConnection [line 239]
|
Get the currently active connection (the connection on top of the connection stack)
Tags:
Parameters:
[ Top ]
method getConnectionDBDriver [line 203]
|
Get the DB driver of the currently active connection. This is not necessarily the same as the DB Type and should be used to distinguish between different database types in ADODB e.g. both oracle and oci8 use the oci8 driver to load the correct data dictionary include file
Tags:
[ Top ]
method getConnectionDBHost [line 179]
method getConnectionDBName [line 168]
|
Get the DB Alias name of the currently active connection
Tags:
[ Top ]
method getConnectionDBType [line 190]
method getConnectionInfo [line 124]
|
Get the DB connection info structure for a connection as defined in config.php.
If $field is supplied, the value of the specified field is retuerned, otherwise the entire connection info array is returned.
Tags:
Parameters:
[ Top ]
method getConnectionName [line 157]
|
Get the alias name name of the currently active connection
Tags:
[ Top ]
method init [line 32]
|
Initialize a DBConnection and place it on the connection stack
Tags:
Parameters:
[ Top ]
method isDefaultConnection [line 225]
|
Check whether the current connection is the default one
Tags:
[ Top ]
method popConnection [line 305]
|
Pop the currently active connection off the stack.
Tags:
Parameters:
[ Top ]
method pushConnection [line 288]
|
Push a new database connection onto the connection stack
Tags:
Parameters:
[ Top ]
