/**
* Constructor.
*
* @param array $params A hash containing connection parameters.
*/
public function __construct($params = array())
{
if (!isset($params['db'])) {
throw new InvalidArgumentException('Missing db parameter.');
}
$this->_db = $params['db'];
unset($params['db']);
$params = array_merge(array('table' => 'wicked_pages', 'historytable' => 'wicked_history', 'attachmenttable' => 'wicked_attachments', 'attachmenthistorytable' => 'wicked_attachment_history'), $params);
parent::__construct($params);
}