ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
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 {
51 $item = null;
52 switch(strtolower($input_var['type']))
53 {
54 case 'robjselect':
55 $item = $this->getRepositoryObjectSelector($input_var);
56 break;
57
58 case 'text':
59 default:
60 $item = new ilTextInputGUI($input_var['caption'], $input_var['name']);
61 break;
62
63 }
64 $item->setRequired($input_var['requirement'] == 'required' ? true : false);
65 $item->setInfo($input_var['description']);
66 $form->addItem($item);
67 }
68
69 $form->addCommandButton('start', $this->lng->txt('start_process'));
70 $form->addCommandButton('cancel', $this->lng->txt('cancel'));
71 return $form;
72 }
This class represents a property form user interface.
This class represents a text property in a property 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: