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()) {
74 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
76 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
77 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
82 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/Group");
98 $this->tpl->setVariable(
'VAL_ID', $a_set[
'usr_id']);
99 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
101 $this->tpl->setVariable(
'VAL_LOGIN', $a_set[
'login']);
103 if ($this->privacy->enabledGroupAccessTimes()) {
104 $this->tpl->setVariable(
'VAL_ACCESS', $a_set[
'access_time']);
106 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID', $a_set[
'usr_id']);
107 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED', $a_set[
'notification'] ?
'checked="checked"' :
'');
109 $this->tpl->setVariable(
'NUM_ROLES', count($this->participants->getRoles()));
111 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
112 foreach ($this->rep_object->getLocalGroupRoles(
true) as
$name => $role_id) {
113 $this->tpl->setCurrentBlock(
'roles');
114 $this->tpl->setVariable(
'ROLE_ID', $role_id);
115 $this->tpl->setVariable(
'ROLE_NAME', $name);
117 if (in_array($role_id, $assigned)) {
118 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
120 $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.
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.
static _getInstance()
Get instance of ilPrivacySettings.