5require_once(
"Services/Table/classes/class.ilTableGUI.php");
 
   33                $this->form_action = $a_form_action;
 
   38                return $this->form_action;
 
   48                $this->headertext = $a_headertext;
 
   58                return $this->headertext;
 
   69                $this->buttons[] = array(
 
   70                        "txt" => $a_txt, 
"cmd" => $a_cmd);
 
   81                $this->cancel_txt = $a_txt;
 
   82                $this->cancel_cmd = $a_cmd;
 
   93                $this->confirm_txt = $a_txt;
 
   94                $this->confirm_cmd = $a_cmd;
 
  105        public function addItem($a_post_var, $a_id, $a_text, $a_img = 
"",
 
  108                $this->item[] = array(
"var" => $a_post_var, 
"id" => $a_id,
 
  109                        "text" => $a_text, 
"img" => $a_img, 
"alt" => $a_alt);
 
  112                        $this->use_images = 
true;
 
  124                $this->hidden_item[] = array(
"var" => $a_post_var, 
"value" => $a_value);
 
  138                include_once(
"./Services/Utilities/classes/class.ilConfirmationTableGUI.php");
 
  141                if (count($this->item) > 0)
 
  144                        $ctab->setData($this->item);
 
  147                        foreach ($this->buttons as $b)
 
  149                                $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
 
  151                        $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
 
  152                        $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
 
  161                                $ctab->setFormName($this->form_name);
 
  164                        return $ctab->getHTML();
 
  169                        $tb->setPreventDoubleSubmission(
true);
 
  171                        if($this->hidden_item)
 
  173                                require_once 
'Services/Form/classes/class.ilPropertyFormGUI.php';
 
  178                                        $tb->addInputItem($hiddenInput);
 
  181                        require_once 
'Services/UIComponent/Button/classes/class.ilSubmitButton.php';
 
  183                        $confirm->setCommand($this->confirm_cmd);
 
  184                        $confirm->setCaption($this->confirm_txt, 
false);
 
  187                        $cancel->setCommand($this->cancel_cmd);
 
  188                        $cancel->setCaption($this->cancel_txt, 
false);
 
  190                        $tb->addButtonInstance($confirm);
 
  191                        $tb->addButtonInstance($cancel);
 
  193                        return $tb->getHTML();
 
  204                $this->form_name = $a_name;
 
Confirmation screen class.
addButton($a_txt, $a_cmd)
Set cancel button command and text.
setFormAction($a_form_action)
setCancel($a_txt, $a_cmd)
Set cancel button command and text.
getHeaderText()
Get Set header text.
__construct()
Constructor.
setHeaderText($a_headertext)
Set Set header text.
addHiddenItem($a_post_var, $a_value)
Add hidden item.
setConfirm($a_txt, $a_cmd)
Set confirmation button command and text.
setFormName($a_name)
Set form name.
addItem($a_post_var, $a_id, $a_text, $a_img="", $a_alt="")
Add row item.
getHTML()
Get confirmation screen HTML.
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.