This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
 | 
|   | setFormAction (string $a_form_action) | 
|   | 
|   | getFormAction () | 
|   | 
|   | setHeaderText (string $a_headertext) | 
|   | 
|   | getHeaderText () | 
|   | 
|   | setFormName (string $a_name) | 
|   | 
|   | addButton (string $a_txt, string $a_cmd) | 
|   | 
|   | setCancel (string $a_txt, string $a_cmd, string $a_id='') | 
|   | 
|   | setConfirm (string $a_txt, string $a_cmd, string $a_id='') | 
|   | 
|   | addItem (string $a_post_var, string $a_id, string $a_text, string $a_img='', string $a_alt='') | 
|   | 
|   | addHiddenItem (string $a_post_var, string $a_value) | 
|   | 
|   | getHTML () | 
|   | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Confirmation screen class.
- Author
 - Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
 
- Deprecated:
 - 10 
 
Definition at line 26 of file class.ilConfirmationGUI.php.
 
◆ addButton()
  
  
      
        
          | ilConfirmationGUI::addButton  | 
          ( | 
          string  | 
          $a_txt,  | 
         
        
           | 
           | 
          string  | 
          $a_cmd  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
final   | 
  
 
 
◆ addHiddenItem()
      
        
          | ilConfirmationGUI::addHiddenItem  | 
          ( | 
          string  | 
          $a_post_var,  | 
        
        
           | 
           | 
          string  | 
          $a_value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ addItem()
      
        
          | ilConfirmationGUI::addItem  | 
          ( | 
          string  | 
          $a_post_var,  | 
        
        
           | 
           | 
          string  | 
          $a_id,  | 
        
        
           | 
           | 
          string  | 
          $a_text,  | 
        
        
           | 
           | 
          string  | 
          $a_img = '',  | 
        
        
           | 
           | 
          string  | 
          $a_alt = ''  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ getFormAction()
  
  
      
        
          | ilConfirmationGUI::getFormAction  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
final   | 
  
 
 
◆ getHeaderText()
      
        
          | ilConfirmationGUI::getHeaderText  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getHTML()
  
  
      
        
          | ilConfirmationGUI::getHTML  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
final   | 
  
 
Definition at line 139 of file class.ilConfirmationGUI.php.
References Vendor\Package\$b, getFormAction(), getHeaderText(), and ilSubmitButton\getInstance().
  141         if ($this->headertext === 
'') {
   142             throw new RuntimeException(
'Please provide a header text before rendering the confirmation dialogue');
   145         if ($this->form_action === 
'') {
   146             throw new RuntimeException(
'Please provide a form action before rendering the confirmation dialogue');
   149         if ($this->confirm_txt === 
'' || $this->confirm_cmd === 
'') {
   150             throw new RuntimeException(
'Please provide a confirmation button label and command before rendering the confirmation dialogue');
   153         if ($this->cancel_txt === 
'' || $this->cancel_cmd === 
'') {
   154             throw new RuntimeException(
'Please provide a cancel button label and command before rendering the confirmation dialogue');
   157         $this->main_tpl->setOnScreenMessage(
'question', $this->
getHeaderText());
   160         if (count($this->item) > 0) {
   162             $ctab->setData($this->item);
   164             foreach ($this->buttons as 
$b) {
   165                 $ctab->addCommandButton($b[
"cmd"], $b[
"txt"]);
   167             $ctab->addCommandButton($this->confirm_cmd, $this->confirm_txt);
   168             $ctab->addCommandButton($this->cancel_cmd, $this->cancel_txt);
   171                 $ctab->addHiddenInput($hidden_item[
"var"], $hidden_item[
"value"]);
   174             if ($this->form_name !== 
'') {
   175                 $ctab->setFormName($this->form_name);
   178             return $ctab->getHTML();
   183         $tb->setPreventDoubleSubmission(
true);
   185         if ($this->hidden_item) {
   186             foreach ($this->hidden_item as $hidden_item) {
   188                 $hiddenInput->setValue($hidden_item[
'value']);
   189                 $tb->addInputItem($hiddenInput);
   193         $confirm->setCommand($this->confirm_cmd);
   194         $confirm->setCaption($this->confirm_txt, 
false);
   195         $confirm->setId($this->confirm_id);
   198         $cancel->setCommand($this->cancel_cmd);
   199         $cancel->setCaption($this->cancel_txt, 
false);
   201         if ($this->cancel_id !== 
'') {
   202             $cancel->setId($this->cancel_id);
   205         $tb->addStickyItem($confirm);
   206         $tb->addStickyItem($cancel);
   208         return $tb->getHTML();
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ setCancel()
  
  
      
        
          | ilConfirmationGUI::setCancel  | 
          ( | 
          string  | 
          $a_txt,  | 
         
        
           | 
           | 
          string  | 
          $a_cmd,  | 
         
        
           | 
           | 
          string  | 
          $a_id = ''  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
final   | 
  
 
 
◆ setConfirm()
  
  
      
        
          | ilConfirmationGUI::setConfirm  | 
          ( | 
          string  | 
          $a_txt,  | 
         
        
           | 
           | 
          string  | 
          $a_cmd,  | 
         
        
           | 
           | 
          string  | 
          $a_id = ''  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
final   | 
  
 
 
◆ setFormAction()
  
  
      
        
          | ilConfirmationGUI::setFormAction  | 
          ( | 
          string  | 
          $a_form_action | ) | 
           | 
         
       
   | 
  
final   | 
  
 
 
◆ setFormName()
      
        
          | ilConfirmationGUI::setFormName  | 
          ( | 
          string  | 
          $a_name | ) | 
           | 
        
      
 
 
◆ setHeaderText()
      
        
          | ilConfirmationGUI::setHeaderText  | 
          ( | 
          string  | 
          $a_headertext | ) | 
           | 
        
      
 
 
◆ $buttons
  
  
      
        
          | array ilConfirmationGUI::$buttons = [] | 
         
       
   | 
  
private   | 
  
 
 
◆ $cancel_cmd
  
  
      
        
          | string ilConfirmationGUI::$cancel_cmd = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $cancel_id
  
  
      
        
          | string ilConfirmationGUI::$cancel_id = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $cancel_txt
  
  
      
        
          | string ilConfirmationGUI::$cancel_txt = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $confirm_cmd
  
  
      
        
          | string ilConfirmationGUI::$confirm_cmd = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $confirm_id
  
  
      
        
          | string ilConfirmationGUI::$confirm_id = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $confirm_txt
  
  
      
        
          | string ilConfirmationGUI::$confirm_txt = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $form_action
  
  
      
        
          | string ilConfirmationGUI::$form_action = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $form_name
  
  
      
        
          | string ilConfirmationGUI::$form_name = '' | 
         
       
   | 
  
private   | 
  
 
 
◆ $headertext
  
  
      
        
          | string ilConfirmationGUI::$headertext = '' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $hidden_item
  
  
      
        
          | array ilConfirmationGUI::$hidden_item = [] | 
         
       
   | 
  
private   | 
  
 
 
◆ $item
  
  
      
        
          | array ilConfirmationGUI::$item = [] | 
         
       
   | 
  
private   | 
  
 
 
◆ $lng
◆ $main_tpl
◆ $use_images
  
  
      
        
          | bool ilConfirmationGUI::$use_images = false | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: