/**
* Constructor.
*
* @param array $params Configuration parameters (in addition to base
* Horde_Perms parameters):
* <pre>
* 'db' - (Horde_Db_Adapter) [REQUIRED] The DB instance.
* 'table' - (string) The name of the perms table.
* DEFAULT: 'horde_perms'
* </pre>
*
* @throws Horde_Perms_Exception
*/
public function __construct($params = array())
{
if (!isset($params['db'])) {
throw new Horde_Perms_Exception('Missing db parameter.');
}
$this->_db = $params['db'];
unset($params['db']);
$this->_params = array_merge(array('table' => 'horde_perms'), $this->_params, $params);
parent::__construct($params);
}