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) {
51 switch (strtolower($input_var[
'type'])) {
53 $item = $this->getRepositoryObjectSelector($input_var);
58 $item =
new ilTextInputGUI($input_var[
'caption'], $input_var[
'name']);
62 $item->setRequired($input_var[
'requirement'] ==
'required' ?
true :
false);
63 $item->setInfo($input_var[
'description']);
64 $form->addItem($item);
67 $form->addCommandButton(
'start', $this->lng->txt(
'start_process'));
68 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
72 public function getRepositoryObjectSelector(
$config)
80 $children = $tree->getFilteredSubTree($tree->getRootId());
83 foreach ($children as $child) {
84 if (strtolower(
$config[
'allowedtype']) != $child[
'type']) {
88 $path = $tree->getPathFull($child[
'child']);
89 $option_elements =
array();
90 foreach (
$path as $node) {
91 if ($node[
'type'] ==
'root') {
94 $option_elements[] = $node[
'title'];
97 $options[$child[
'child']] = implode(
' / ', $option_elements);
if(isset($_POST['submit'])) $form
This class represents a text property in a property form.
Create styles array
The data for the language used.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options