4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   27        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   29        $ilAccess = 
$DIC[
'ilAccess'];
 
   32        $this->permissions = $a_permissions;
 
   40        $this->
addColumn($this->lng->txt(
"user_field"), 
"");
 
   41        $this->
addColumn($this->lng->txt(
"access"), 
"");
 
   42        $this->
addColumn($this->lng->txt(
"export") . 
" / " . $this->lng->txt(
"search") .
 
   43            " / " . $this->lng->txt(
"certificate"), 
"");
 
   44        $this->
addColumn($this->lng->txt(
"actions"), 
"");
 
   48        $this->
setRowTemplate(
"tpl.std_fields_settings_row.html", 
"Services/User");
 
   53        $fds = $user_field_definitions->getDefinitions();
 
   55        foreach ($fds as $k => 
$f) {
 
   72        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   74        $field = $a_set[
"field_id"];
 
   76        $props = array(
"visible" => 
"user_visible_in_profile",
 
   77            "changeable" => 
"changeable",
 
   78            "searchable" => 
"header_searchable",
 
   79            "required" => 
"required_field",
 
   81            "course_export" => 
"course_export",
 
   82            'group_export' => 
'group_export',
 
   83            "visib_reg" => 
"header_visible_registration",
 
   84            'visib_lua' => 
'usr_settings_visib_lua',
 
   85            'changeable_lua' => 
'usr_settings_changeable_lua',
 
   86            'certificate' => 
'certificate' 
   89        $perms = $this->permissions->hasPermissions(
 
  119        foreach ($props as $prop => $lv) {
 
  120            $up_prop = strtoupper($prop);
 
  123                ($prop != 
"searchable")) {
 
  124                $this->tpl->setCurrentBlock($prop);
 
  125                $this->tpl->setVariable(
 
  126                    "HEADER_" . $up_prop,
 
  129                $this->tpl->setVariable(
"PROFILE_OPTION_" . $up_prop, $prop . 
"_" . $field);
 
  136                if ($this->confirm_change == 1) {       
 
  137                    $checked = 
$_POST[
"chb"][$prop . 
"_" . $field];
 
  141                    $this->tpl->setVariable(
"CHECKED_" . $up_prop, 
" checked=\"checked\"");
 
  145                    $this->tpl->setVariable(
"DISABLE_" . $up_prop, 
" disabled=\"disabled\"");
 
  148                $this->tpl->parseCurrentBlock();
 
  154            $ilCtrl->setParameter($this->parent_obj, 
'field_id', $a_set[
"field_id"]);
 
  155            $this->tpl->setCurrentBlock(
"action");
 
  156            $this->tpl->setVariable(
 
  158                $ilCtrl->getLinkTarget($this->parent_obj, 
'edit')
 
  160            $this->tpl->setVariable(
"TXT_CMD", 
$lng->txt(
"edit"));
 
  161            $this->tpl->parseCurrentBlock();
 
  165        $this->tpl->setCurrentBlock(
"cb");
 
  166        $this->tpl->setVariable(
"FIELD_ID", $a_set[
"field_id"]);
 
  167        $this->tpl->parseCurrentBlock();
 
  168        $this->tpl->setVariable(
"TXT_FIELD", $a_set[
"field_name"]);
 
  173        $this->confirm_change = 
true;
 
An exception for terminatinating execution or to throw for unit testing.
TableGUI class for custom defined user fields.
__construct($a_parent_obj, $a_parent_cmd, ilUDFPermissionHelper $a_permissions)
Constructor.
fillRow($a_set)
Fill table row.
static getAccessPermissions()
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.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
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
const ACTION_FIELD_EDIT_ACCESS
const SUBACTION_FIELD_ACCESS_CERTIFICATE
const SUBACTION_FIELD_ACCESS_VISIBLE_LOCAL
const SUBACTION_FIELD_ACCESS_SEARCHABLE
const SUBACTION_FIELD_ACCESS_EXPORT
const SUBACTION_FIELD_ACCESS_CHANGEABLE_PERSONAL
const SUBACTION_FIELD_ACCESS_VISIBLE_PERSONAL
const SUBACTION_FIELD_ACCESS_REQUIRED
const SUBACTION_FIELD_ACCESS_VISIBLE_REGISTRATION
const SUBACTION_FIELD_ACCESS_VISIBLE_COURSES
const SUBACTION_FIELD_ACCESS_VISIBLE_GROUPS
const SUBACTION_FIELD_ACCESS_CHANGEABLE_LOCAL
static _getInstance()
Get instance.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc