4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
26 $this->
setTitle($lng->txt(
"user_defined_list"));
30 $this->
addColumn($this->lng->txt(
"user_field"),
"");
31 $this->
addColumn($this->lng->txt(
"access"),
"");
32 $this->
addColumn($this->lng->txt(
"export").
" / ".$this->lng->txt(
"search").
33 " / ".$this->lng->txt(
"certificate"),
"");
34 $this->
addColumn($this->lng->txt(
"actions"),
"");
38 $this->
setRowTemplate(
"tpl.std_fields_settings_row.html",
"Services/User");
43 $fds = $user_field_definitions->getDefinitions();
45 foreach ($fds as $k => $f)
61 $field = $a_set[
"field_id"];
63 $props = array(
"visible" =>
"user_visible_in_profile",
64 "changeable" =>
"changeable",
65 "searchable" =>
"header_searchable",
66 "required" =>
"required_field",
68 "course_export" =>
"course_export",
69 'group_export' =>
'group_export',
70 "visib_reg" =>
"header_visible_registration",
71 'visib_lua' =>
'usr_settings_visib_lua',
72 'changeable_lua' =>
'usr_settings_changeable_lua',
73 'certificate' =>
'certificate'
76 foreach ($props as $prop => $lv)
78 $up_prop = strtoupper($prop);
81 ($prop !=
"searchable"))
83 $this->tpl->setCurrentBlock($prop);
84 $this->tpl->setVariable(
"HEADER_".$up_prop,
86 $this->tpl->setVariable(
"PROFILE_OPTION_".$up_prop, $prop.
"_".$field);
94 if ($this->confirm_change == 1)
96 $checked =
$_POST[
"chb"][$prop.
"_".$field];
101 $this->tpl->setVariable(
"CHECKED_".$up_prop,
" checked=\"checked\"");
103 $this->tpl->parseCurrentBlock();
108 $ilCtrl->setParameter($this->parent_obj,
'field_id', $a_set[
"field_id"]);
109 $this->tpl->setCurrentBlock(
"action");
110 $this->tpl->setVariable(
"HREF_CMD",
111 $ilCtrl->getLinkTarget($this->parent_obj,
'edit'));
112 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"edit"));
113 $this->tpl->parseCurrentBlock();
116 $this->tpl->setVariable(
"FIELD_ID", $a_set[
"field_id"]);
117 $this->tpl->setVariable(
"TXT_FIELD", $a_set[
"field_name"]);
122 $this->confirm_change =
true;