Whups_Form_Ticket_Delete::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( &$vars, $title = '' )
    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"))));
    }
Whups_Form_Ticket_Delete