1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_DeleteQueue extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: global $whups_driver;
19:
20: parent::__construct($vars, _("Delete Queue Confirmation"));
21:
22: $queue = $vars->get('queue');
23: $info = $whups_driver->getQueue($queue);
24:
25: $this->addHidden('', 'queue', 'int', true, true);
26:
27: $mname = &$this->addVariable(
28: _("Queue Name"), 'name', 'text', false, true);
29: $mname->setDefault($info['name']);
30:
31: $mdesc = &$this->addVariable(
32: _("Queue Description"), 'description', 'text', false, true);
33: $mdesc->setDefault($info['description']);
34:
35: $yesno = array(array(0 => _("No"), 1 => _("Yes")));
36: $this->addVariable(
37: _("Really delete this queue? This will also delete all associated tickets and their comments. This can not be undone!"),
38: 'yesno', 'enum', true, false, null, $yesno);
39: }
40:
41: }
42: