4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   30        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   32        $ilAccess = 
$DIC[
'ilAccess'];
 
   38        $this->
setTitle(
$lng->txt(
"usr_settings_header_profile"));
 
   44        $this->
addColumn($this->lng->txt(
"user_field"), 
"");
 
   45        $this->
addColumn($this->lng->txt(
"access"), 
"");
 
   46        $this->
addColumn($this->lng->txt(
"export") . 
" / " . $this->lng->txt(
"search"), 
"");
 
   47        $this->
addColumn($this->lng->txt(
"default"), 
"");
 
   51        $this->
setRowTemplate(
"tpl.std_fields_settings_row.html", 
"Services/User");
 
   55        include_once(
"./Services/User/classes/class.ilUserProfile.php");
 
   57        $up->skipField(
"username");
 
   58        $fds = $up->getStandardFields();
 
   60        foreach ($fds as $k => 
$f) {
 
   78        $field = $a_set[
"key"];
 
   81            "visible" => 
"user_visible_in_profile",
 
   82            "changeable" => 
"changeable",
 
   83            "searchable" => 
"header_searchable",
 
   84            "required" => 
"required_field",
 
   86            "course_export" => 
"course_export",
 
   87            'group_export' => 
'group_export',
 
   88            "visib_reg" => 
"header_visible_registration",
 
   89            'visib_lua' => 
'usr_settings_visib_lua',
 
   90            'changeable_lua' => 
'usr_settings_changeable_lua' 
   93        foreach ($props as $prop => $lv) {
 
   94            $up_prop = strtoupper($prop);
 
   96            if (($prop != 
"searchable" && $a_set[$prop . 
"_hide"] != 
true) ||
 
   98                $this->tpl->setCurrentBlock($prop);
 
   99                $this->tpl->setVariable(
 
  100                    "HEADER_" . $up_prop,
 
  103                $this->tpl->setVariable(
"PROFILE_OPTION_" . $up_prop, $prop . 
"_" . $field);
 
  116                if ($prop == 
"required" && 
$ilSetting->get(
"require_" . $field) == 
"1") {
 
  119                if ($prop == 
"export" && 
$ilSetting->get(
"usr_settings_export_" . $field) == 
"1") {
 
  122                if ($prop == 
"course_export" && 
$ilSetting->get(
"usr_settings_course_export_" . $field) == 
"1") {
 
  125                if ($prop == 
"group_export" && 
$ilSetting->get(
"usr_settings_group_export_" . $field) == 
"1") {
 
  128                if ($prop == 
"visib_reg" && (
int) 
$ilSetting->get(
'usr_settings_visib_reg_' . $field, 
'1')) {
 
  131                if ($prop == 
"visib_lua" && (
int) 
$ilSetting->get(
'usr_settings_visib_lua_' . $field, 
'1')) {
 
  135                if ($prop == 
"changeable_lua" && (
int) 
$ilSetting->get(
'usr_settings_changeable_lua_' . $field, 
'1')) {
 
  140                if ($this->confirm_change == 1) {       
 
  141                    $checked = 
$_POST[
"chb"][$prop . 
"_" . $field];
 
  143                if (isset($a_set[$prop . 
"_fix_value"])) {      
 
  144                    $checked = $a_set[$prop . 
"_fix_value"];
 
  148                    $this->tpl->setVariable(
"CHECKED_" . $up_prop, 
" checked=\"checked\"");
 
  150                if (isset($a_set[$prop . 
"_fix_value"])) {
 
  151                    $this->tpl->setVariable(
"DISABLE_" . $up_prop, 
" disabled=\"disabled\"");
 
  153                $this->tpl->parseCurrentBlock();
 
  158        if ($a_set[
"default"] != 
"") {
 
  159            switch ($a_set[
"input"]) {
 
  163                    if ($selected_option == 
"") {
 
  164                        $selected_option = $a_set[
"default"];
 
  166                    foreach ($a_set[
"options"] as $k => $v) {
 
  167                        $this->tpl->setCurrentBlock(
"def_sel_option");
 
  168                        $this->tpl->setVariable(
"OPTION_VALUE", $k);
 
  169                        $text = ($a_set[
"input"] == 
"selection")
 
  172                        if ($a_set[
"input"] == 
"hitsperpage" && $k == 9999) {
 
  173                            $text = 
$lng->txt(
"no_limit");
 
  175                        if ($selected_option == $k) {
 
  176                            $this->tpl->setVariable(
 
  178                                ' selected="selected" ' 
  181                        $this->tpl->setVariable(
"OPTION_TEXT", $text);
 
  182                        $this->tpl->parseCurrentBlock();
 
  184                    $this->tpl->setCurrentBlock(
"def_selection");
 
  185                    $this->tpl->setVariable(
"PROFILE_OPTION_DEFAULT_VALUE", 
"default_" . $field);
 
  186                    $this->tpl->parseCurrentBlock();
 
  189            $this->tpl->setCurrentBlock(
"default");
 
  190            $this->tpl->parseCurrentBlock();
 
  194        $this->tpl->setVariable(
"TXT_GROUP", 
$lng->txt($a_set[
"group"]));
 
  197        $lv = ($a_set[
"lang_var"] == 
"")
 
  199            : $a_set[
"lang_var"];
 
  200        if ($a_set[
"key"] == 
"country") {
 
  201            $lv = 
"country_free_text";
 
  203        if ($a_set[
"key"] == 
"sel_country") {
 
  204            $lv = 
"country_selection";
 
  207        $this->tpl->setVariable(
"TXT_FIELD", 
$lng->txt($lv));
 
  212        $this->confirm_change = 
true;
 
An exception for terminatinating execution or to throw for unit testing.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setDescription($a_val)
Set description.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
fillRow($a_set)
Fill table row.
static _isSearchable($a_key)
static _isEnabled($a_key)
User settings configuration (what preferences can be visible/changed/...)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc