ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilWorkflowLauncherGUI Class Reference

@noinspection PhpIncludeInspection More...

+ Collaboration diagram for ilWorkflowLauncherGUI:

Public Member Functions

 getForm ($input_vars)
 

Protected Attributes

 $form_action
 
 $lng
 

Detailed Description

@noinspection 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.

44 {
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.
This class represents a text property in a property form.
if(isset($_POST['submit'])) $form

References $form.

Field Documentation

◆ $form_action

string ilWorkflowLauncherGUI::$form_action
protected

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

◆ $lng

ilLanguage ilWorkflowLauncherGUI::$lng
protected

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


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