24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
57 $this->lng->loadLanguageModule(
'grp');
60 $this->container = $a_parent_obj;
64 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
69 parent::__construct($a_parent_obj,
'editMembers');
71 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
73 $this->
addColumn($this->lng->txt(
'name'),
'name',
'20%');
74 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
76 if ($this->privacy->enabledGroupAccessTimes()) {
77 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
79 $this->
addColumn($this->lng->txt(
'grp_contact'),
'contact');
80 $this->
addColumn($this->lng->txt(
'grp_notification'),
'notification');
81 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
86 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/Group");
102 $this->tpl->setVariable(
'VAL_ID', $a_set[
'usr_id']);
103 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
105 $this->tpl->setVariable(
'VAL_LOGIN', $a_set[
'login']);
107 if ($this->privacy->enabledGroupAccessTimes()) {
108 $this->tpl->setVariable(
'VAL_ACCESS', $a_set[
'access_time']);
110 $this->tpl->setVariable(
'VAL_CONTACT_CHECKED', $a_set[
'contact'] ?
'checked="checked"' :
'');
111 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID', $a_set[
'usr_id']);
112 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED', $a_set[
'notification'] ?
'checked="checked"' :
'');
114 $this->tpl->setVariable(
'NUM_ROLES', count($this->participants->getRoles()));
116 $assigned = $this->participants->getAssignedRoles($a_set[
'usr_id']);
117 foreach ($this->rep_object->getLocalGroupRoles(
true) as
$name => $role_id) {
118 $this->tpl->setCurrentBlock(
'roles');
119 $this->tpl->setVariable(
'ROLE_ID', $role_id);
120 $this->tpl->setVariable(
'ROLE_NAME', $name);
122 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.
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.