public function __construct($scope, $params)
{
if (empty($params['db'])) {
throw new InvalidArgumentException('Missing required connection parameter(s).');
}
/* Set parameters. */
$this->_scope = $scope;
$this->_db = $params['db'];
$this->_charset = $params['charset'];
/* Initialize the Cache object. */
$this->_cache = $GLOBALS['injector']->getInstance('Horde_Cache');
}