4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
27 $this->permissions = $a_permissions;
31 $this->
setTitle($lng->txt(
"user_defined_list"));
35 $this->
addColumn($this->lng->txt(
"user_field"),
"");
36 $this->
addColumn($this->lng->txt(
"access"),
"");
37 $this->
addColumn($this->lng->txt(
"export").
" / ".$this->lng->txt(
"search").
38 " / ".$this->lng->txt(
"certificate"),
"");
39 $this->
addColumn($this->lng->txt(
"actions"),
"");
43 $this->
setRowTemplate(
"tpl.std_fields_settings_row.html",
"Services/User");
48 $fds = $user_field_definitions->getDefinitions();
50 foreach ($fds as $k => $f)
66 $field = $a_set[
"field_id"];
68 $props = array(
"visible" =>
"user_visible_in_profile",
69 "changeable" =>
"changeable",
70 "searchable" =>
"header_searchable",
71 "required" =>
"required_field",
73 "course_export" =>
"course_export",
74 'group_export' =>
'group_export',
75 "visib_reg" =>
"header_visible_registration",
76 'visib_lua' =>
'usr_settings_visib_lua',
77 'changeable_lua' =>
'usr_settings_changeable_lua',
78 'certificate' =>
'certificate'
108 foreach ($props as $prop => $lv)
110 $up_prop = strtoupper($prop);
113 ($prop !=
"searchable"))
115 $this->tpl->setCurrentBlock($prop);
116 $this->tpl->setVariable(
"HEADER_".$up_prop,
118 $this->tpl->setVariable(
"PROFILE_OPTION_".$up_prop, $prop.
"_".$field);
126 if ($this->confirm_change == 1)
128 $checked =
$_POST[
"chb"][$prop.
"_".$field];
133 $this->tpl->setVariable(
"CHECKED_".$up_prop,
" checked=\"checked\"");
138 $this->tpl->setVariable(
"DISABLE_".$up_prop,
" disabled=\"disabled\"");
141 $this->tpl->parseCurrentBlock();
148 $ilCtrl->setParameter($this->parent_obj,
'field_id', $a_set[
"field_id"]);
149 $this->tpl->setCurrentBlock(
"action");
150 $this->tpl->setVariable(
"HREF_CMD",
151 $ilCtrl->getLinkTarget($this->parent_obj,
'edit'));
152 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"edit"));
153 $this->tpl->parseCurrentBlock();
157 $this->tpl->setCurrentBlock(
"cb");
158 $this->tpl->setVariable(
"FIELD_ID", $a_set[
"field_id"]);
159 $this->tpl->parseCurrentBlock();
160 $this->tpl->setVariable(
"TXT_FIELD", $a_set[
"field_name"]);
165 $this->confirm_change =
true;