public getDbConnection ( ) : |
||
return | the DB connection instance |
public function getDbConnection()
{
if ($this->_db === null) {
$this->_db = $this->createDbConnection();
}
$this->_db->setActive(true);
return $this->_db;
}