Public Member Functions | Static Public Member Functions | Private Attributes

DBPool Class Reference
[Connectors and dialects for various databases]

Pool of DB's instances. More...

Inheritance diagram for DBPool:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 setDefault (DB $db)
 dropDefault ()
 addLink ($name, DB $db)
 dropLink ($name)
 getLink ($name=null)
 shutdown ()
 disconnect ()

Static Public Member Functions

static me ()
static getByDao (GenericDAO $dao)

Private Attributes

 $default = null
 $pool = array()

Detailed Description

Pool of DB's instances.

Definition at line 17 of file DBPool.class.php.


Member Function Documentation

DBPool::addLink ( name,
DB db 
)
Exceptions:
WrongArgumentException 
Returns:
DBPool

Definition at line 63 of file DBPool.class.php.

DBPool::disconnect (  ) 
Returns:
DBPool

Definition at line 138 of file DBPool.class.php.

Referenced by shutdown().

DBPool::dropDefault (  ) 
Returns:
DBPool

Definition at line 52 of file DBPool.class.php.

DBPool::dropLink ( name  ) 
Exceptions:
MissingElementException 
Returns:
DBPool

Definition at line 79 of file DBPool.class.php.

static DBPool::getByDao ( GenericDAO dao  )  [static]
DBPool::getLink ( name = null  ) 
Exceptions:
MissingElementException 
Returns:
DB

Definition at line 95 of file DBPool.class.php.

static DBPool::me (  )  [static]
DBPool::setDefault ( DB db  ) 
Returns:
DBPool

Definition at line 42 of file DBPool.class.php.

DBPool::shutdown (  ) 
Returns:
DBPool

Definition at line 125 of file DBPool.class.php.

References disconnect().

Here is the call graph for this function:


Member Data Documentation

DBPool::$default = null [private]

Definition at line 19 of file DBPool.class.php.

DBPool::$pool = array() [private]

Definition at line 21 of file DBPool.class.php.


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