5 require_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
33 $this->lng = $DIC[
'lng'];
46 $form->setTitle($this->lng->txt(
'input_variables_required'));
47 $form->setDescription($this->lng->txt(
'input_variables_desc'));
49 foreach($input_vars as $input_var)
52 switch(strtolower($input_var[
'type']))
55 $item = $this->getRepositoryObjectSelector($input_var);
60 $item =
new ilTextInputGUI($input_var[
'caption'], $input_var[
'name']);
64 $item->setRequired($input_var[
'requirement'] ==
'required' ?
true :
false);
65 $item->setInfo($input_var[
'description']);
66 $form->addItem($item);
69 $form->addCommandButton(
'start', $this->lng->txt(
'start_process'));
70 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
74 public function getRepositoryObjectSelector(
$config)
82 $children = $tree->getFilteredSubTree($tree->getRootId());
85 foreach($children as $child)
87 if(strtolower(
$config[
'allowedtype']) != $child[
'type'])
92 $path = $tree->getPathFull($child[
'child']);
93 $option_elements =
array();
94 foreach(
$path as $node)
96 if($node[
'type'] ==
'root')
100 $option_elements[] = $node[
'title'];
103 $options[$child[
'child']] = implode(
' / ', $option_elements);
if(!is_array($argv)) $options
This class represents a text property in a property form.
Create styles array
The data for the language used.