*/
public function __construct($context = array())
{
+ if (!empty($context['dbAdapter'])) {
+ $this->_db = $context['dbAdapter'];
+ }
+
if (!empty($params['typeManager'])) {
$this->_typeManager = $params['typeManager'];
}
}
/**
- *
+ * Set the database connection.
*
* @param Horde_Db $db The database connection
*/
public function __construct($context = array())
{
- $this->_db = $adapter;
+ if (!empty($context['dbAdapter'])) {
+ $this->_db = $context['dbAdapter'];
+ }
}
/**
'users' => 'rampage_users',
);
- public function __construct($adapter, $params = array())
+ public function __construct($context = array())
{
- $this->_db = $adapter;
+ if (!empty($context['dbAdapter'])) {
+ $this->_db = $context['dbAdapter'];
+ }
}
/**