This class manages database connections and generation of their adapters.

Lazy loading of the adapters is used.

author jorgen
package WebLab

 Methods

Returns all of the database adapters defined in the configuration file.

getAll() : \WebLab_Data_Adapter[]
Static

All adapters that had not been loaded yet will now be loaded before returning the list.

Returns

Retrieves the database with $name from the database list, or generates it's adapter and adds it to the list.

getDb(string $name) : \WebLab_Data_Adapter
Static

Parameters

$name

string

Exceptions

\WebLab_Exception_Data If database with that name was defined.

Returns

Lazy loads the configuration.

_getConfig() : mixed[]
Static

Returns

mixed[]

 Properties

 

$_config : mixed[]
 

$_databases : \WebLab_Data_Adapter[]