ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilWorkflowLauncherGUI Class Reference

PhpIncludeInspection More...

+ Collaboration diagram for ilWorkflowLauncherGUI:

Public Member Functions

 getForm ($input_vars)
 

Protected Attributes

 $form_action
 
 $lng
 

Detailed Description

PhpIncludeInspection

Class ilWorkflowLauncherGUI

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

/

Definition at line 16 of file class.ilWorkflowLauncherGUI.php.

Member Function Documentation

◆ getForm()

ilWorkflowLauncherGUI::getForm (   $input_vars)
Parameters
array$input_vars
Returns
ilPropertyFormGUI

Definition at line 43 of file class.ilWorkflowLauncherGUI.php.

References $config, $DIC, $form, PHPMailer\PHPMailer\$options, $path, and $tree.

44  {
45  $form = new ilPropertyFormGUI();
46  $form->setTitle($this->lng->txt('input_variables_required'));
47  $form->setDescription($this->lng->txt('input_variables_desc'));
48 
49  foreach ($input_vars as $input_var) {
50  $item = null;
51  switch (strtolower($input_var['type'])) {
52  case 'robjselect':
53  $item = $this->getRepositoryObjectSelector($input_var);
54  break;
55 
56  case 'text':
57  default:
58  $item = new ilTextInputGUI($input_var['caption'], $input_var['name']);
59  break;
60 
61  }
62  $item->setRequired($input_var['requirement'] == 'required' ? true : false);
63  $item->setInfo($input_var['description']);
64  $form->addItem($item);
65  }
66 
67  $form->addCommandButton('start', $this->lng->txt('start_process'));
68  $form->addCommandButton('cancel', $this->lng->txt('cancel'));
69  return $form;
70  }
This class represents a property form user interface.
if(isset($_POST['submit'])) $form
This class represents a text property in a property form.

Field Documentation

◆ $form_action

ilWorkflowLauncherGUI::$form_action
protected

Definition at line 19 of file class.ilWorkflowLauncherGUI.php.

◆ $lng

ilWorkflowLauncherGUI::$lng
protected

Definition at line 22 of file class.ilWorkflowLauncherGUI.php.


The documentation for this class was generated from the following file: