@noinspection PhpIncludeInspection
More...
@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.
◆ getForm()
ilWorkflowLauncherGUI::getForm |
( |
|
$input_vars | ) |
|
- Parameters
-
- 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'));
70 }
This class represents a text property in a property form.
if(isset($_POST['submit'])) $form
References $form.
◆ $form_action
string ilWorkflowLauncherGUI::$form_action |
|
protected |
◆ $lng
The documentation for this class was generated from the following file: