Overview

Packages

  • Horde
    • Form
    • MIME
      • Viewer
    • Scheduler
  • None
  • Whups
    • UnitTests

Classes

  • Whups_Application
  • Whups_Block_Myqueries
  • Whups_Block_Myrequests
  • Whups_Block_Mytickets
  • Whups_Block_Query
  • Whups_Block_Queuecontents
  • Whups_Block_Queuesummary
  • Whups_Block_Unassigned
  • Whups_Driver_sql
  • Whups_Exception
  • Whups_Factory_Driver
  • Whups_Form_AddListener
  • Whups_Form_DeleteListener
  • Whups_Form_Queue_StepOne
  • Whups_Form_Queue_StepThree
  • Whups_Form_Queue_StepTwo
  • Whups_Form_Renderer_Query
  • Whups_Form_SetTypeStepOne
  • Whups_Form_SetTypeStepTwo
  • Whups_Form_Ticket_Delete
  • Whups_Test_Perms
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  *
 4:  * Copyright 2001-2002 Robert E. Coyle <robertecoyle@hotmail.com>
 5:  * Copyright 2001-2012 Horde LLC (http://www.horde.org/)
 6:  *
 7:  * See the enclosed file LICENSE for license information (BSD). If you
 8:  * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
 9:  */
10: 
11: class Whups_Form_Queue_StepThree extends Horde_Form
12: {
13: 
14:     public function __construct(&$vars, $title = '')
15:     {
16:         global $whups_driver;
17: 
18:         parent::__construct($vars, $title);
19: 
20:         $this->addHidden('', 'id', 'int', true, true);
21:         $this->addHidden('', 'group', 'int', false, true);
22:         $this->addHidden('', 'queue', 'int', true, true);
23:         $this->addHidden('', 'type', 'int', true, true);
24:         $this->addHidden('', 'newcomment', 'longtext', false, true);
25: 
26:         $info = $whups_driver->getQueue($vars->get('queue'));
27:         if (!empty($info['versioned'])) {
28:             $this->addHidden('', 'version', 'int', true, true);
29:         }
30: 
31:         /* Give user an opportunity to check that state and priority
32:          * are still valid. */
33:         $type = $vars->get('type');
34:         $this->addVariable(_("State"), 'state', 'enum', true, false, null, array($whups_driver->getStates($type)));
35:         $this->addVariable(_("Priority"), 'priority', 'enum', true, false, null, array($whups_driver->getPriorities($type)));
36:     }
37: 
38: }
API documentation generated by ApiGen