class DatabaseContainer (View source)

The DbContainer class.

Methods

getDb(string $driver = null, array $option = array(), boolean $forceNew = false)

Method to get property Db

setDb(AbstractDatabaseDriver|callable $db)

Method to set property db

Details

at line line 37
static AbstractDatabaseDriver getDb(string $driver = null, array $option = array(), boolean $forceNew = false)

Method to get property Db

Parameters

string $driver
array $option
boolean $forceNew

Return Value

AbstractDatabaseDriver

at line line 59
static DatabaseContainer setDb(AbstractDatabaseDriver|callable $db)

Method to set property db

Parameters

AbstractDatabaseDriver|callable $db

Return Value

DatabaseContainer Return self to support chaining.