public function __construct(&$vars, $title = '')
{
parent::__construct($vars, $title);
$info = $GLOBALS['whups_driver']->getTicketDetails($vars->get('id'));
$this->_queue = $info['queue'];
$this->addHidden('', 'id', 'int', true, true);
$this->_warn = $this->addVariable('', 'warn', 'html', false);
$this->_warn->setDefault('<span class="horde-form-error">' . _("Really delete this ticket? It will NOT be archived, and will be gone forever.") . '</span>');
$this->setButtons(array(array('class' => 'horde-delete', 'value' => _("Delete")), array('class' => 'horde-cancel', 'value' => _("Cancel"))));
}