30 protected \ILIAS\User\StandardGUIRequest
$request;
39 $ilCtrl = $DIC[
'ilCtrl'];
42 $this->permissions = $a_permissions;
47 $this->main_tpl->setOnScreenMessage(
'info',
$lng->
txt(
'usr_settings_explanation_profile'));
53 $this->
addColumn($this->
lng->txt(
"export") .
" / " . $this->
lng->txt(
"search") .
54 " / " . $this->
lng->txt(
"certificate"),
"");
59 $this->
setRowTemplate(
"tpl.std_fields_settings_row.html",
"Services/User");
64 $fds = $user_field_definitions->getDefinitions();
66 foreach ($fds as $k =>
$f) {
72 $this->request = new \ILIAS\User\StandardGUIRequest(
82 protected function fillRow(array $a_set): void
87 $ilCtrl = $DIC[
'ilCtrl'];
89 $field = $a_set[
"field_id"];
91 $props = array(
"visible" =>
"user_visible_in_profile",
92 "changeable" =>
"changeable",
93 "searchable" =>
"header_searchable",
94 "required" =>
"required_field",
96 "course_export" =>
"course_export",
97 'group_export' =>
'group_export',
98 "visib_reg" =>
"header_visible_registration",
99 'visib_lua' =>
'usr_settings_visib_lua',
100 'changeable_lua' =>
'usr_settings_changeable_lua',
101 'certificate' =>
'certificate' 104 $perms = $this->permissions->hasPermissions(
134 $req_checked = $this->request->getChecked();
136 foreach ($props as $prop => $lv) {
137 $up_prop = strtoupper($prop);
140 ($prop !=
"searchable")) {
141 $this->tpl->setCurrentBlock($prop);
142 $this->tpl->setVariable(
143 "HEADER_" . $up_prop,
146 $this->tpl->setVariable(
"PROFILE_OPTION_" . $up_prop, $prop .
"_" . $field);
153 if ($this->confirm_change == 1) {
154 $checked = $req_checked[$prop .
"_" . $field] ??
false;
158 $this->tpl->setVariable(
"CHECKED_" . $up_prop,
" checked=\"checked\"");
162 $this->tpl->setVariable(
"DISABLE_" . $up_prop,
" disabled=\"disabled\"");
165 $this->tpl->parseCurrentBlock();
171 $ilCtrl->setParameter($this->parent_obj,
'field_id', $a_set[
"field_id"]);
172 $this->tpl->setCurrentBlock(
"action");
173 $this->tpl->setVariable(
175 $ilCtrl->getLinkTarget($this->parent_obj,
'edit')
177 $this->tpl->setVariable(
"TXT_CMD",
$lng->
txt(
"edit"));
178 $this->tpl->parseCurrentBlock();
182 $this->tpl->setCurrentBlock(
"cb");
183 $this->tpl->setVariable(
"FIELD_ID", $a_set[
"field_id"]);
184 $this->tpl->parseCurrentBlock();
185 $this->tpl->setVariable(
"TXT_FIELD", $a_set[
"field_name"]);
190 $this->confirm_change =
true;
const SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS
__construct(object $a_parent_obj, string $a_parent_cmd, ilClaimingPermissionHelper $a_permissions)
const SUBACTION_FIELD_ACCESS_SEARCHABLE
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableTitle(bool $a_enabletitle)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
const SUBACTION_FIELD_ACCESS_VISIBLE_COURSES
const SUBACTION_FIELD_ACCESS_EXPORT
const SUBACTION_FIELD_ACCESS_CERTIFICATE
const SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL
const SUBACTION_FIELD_ACCESS_REQUIRED
const ACTION_FIELD_EDIT_ACCESS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
ILIAS User StandardGUIRequest $request
static getAccessPermissions()
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
const SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
const SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION
disable(string $a_module_name)
const SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)
ilClaimingPermissionHelper $permissions