24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
54 $this->lng->loadLanguageModule(
'grp');
57 $this->container = $a_parent_obj;
61 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
66 parent::__construct($a_parent_obj,
'editMembers');
68 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
70 $this->
addColumn($this->lng->txt(
'name'),
'name',
'20%');
71 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
73 if($this->privacy->enabledGroupAccessTimes())
75 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
77 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
78 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
83 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/Group");
100 $this->tpl->setVariable(
'VAL_ID',$a_set[
'usr_id']);
101 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'lastname'].
', '.$a_set[
'firstname']);
103 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
105 if($this->privacy->enabledGroupAccessTimes())
107 $this->tpl->setVariable(
'VAL_ACCESS',$a_set[
'access_time']);
109 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID',$a_set[
'usr_id']);
110 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED',$a_set[
'notification'] ?
'checked="checked"' :
'');
112 $this->tpl->setVariable(
'NUM_ROLES',count($this->participants->getRoles()));
114 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
115 foreach($this->rep_object->getLocalGroupRoles(
true) as $name => $role_id)
117 $this->tpl->setCurrentBlock(
'roles');
118 $this->tpl->setVariable(
'ROLE_ID',$role_id);
119 $this->tpl->setVariable(
'ROLE_NAME',$name);
121 if(in_array($role_id,$assigned))
123 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
125 $this->tpl->parseCurrentBlock();
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $rep_object)
Constructor.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setFormName($a_formname="")
Set Form name.
static _getInstance()
Get instance of ilPrivacySettings.
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.