4 include_once
"./Modules/Course/classes/class.ilCourseParticipantsGroupsTableGUI.php";
19 $this->ref_id = $a_ref_id;
26 if(!$ilAccess->checkAccess(
'write',
'',$this->ref_id))
28 $ilErr->raiseError($lng->txt(
'permission_denied'),$ilErr->WARNING);
31 $cmd = $ilCtrl->getCmd();
44 $tpl->setContent($tbl_gui->getHTML());
50 $tbl_gui->resetOffset();
51 $tbl_gui->writeFilterToSession();
58 $tbl_gui->resetOffset();
59 $tbl_gui->resetFilter();
67 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
69 $confirm->setFormAction($ilCtrl->getFormAction($this,
'remove'));
70 $confirm->addHiddenItem(
"grp_id",
$_GET[
"grp_id"]);
71 $confirm->setHeaderText($lng->txt(
'grp_dismiss_member'));
72 $confirm->setConfirm($lng->txt(
'confirm'),
'remove');
73 $confirm->setCancel($lng->txt(
'cancel'),
'show');
75 include_once
'./Services/User/classes/class.ilUserUtil.php';
77 $confirm->addItem(
'usr_id',
82 $tpl->setContent($confirm->getHTML());
87 global $ilAccess, $ilObjDataCache,
$lng;
89 if (!$ilAccess->checkAccess(
"write",
"",
$_POST[
"grp_id"]))
96 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
98 $members_obj->delete(
$_POST[
"usr_id"]);
101 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
102 $members_obj->sendNotification(
107 include_once
'./Modules/Forum/classes/class.ilForumNotification.php';
116 global
$ilErr, $ilObjDataCache,
$lng, $ilAccess;
119 if(
sizeof(
$_POST[
"usrs"]))
121 if (!$ilAccess->checkAccess(
"write",
"",
$_POST[
"grp_id"]))
128 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
130 foreach (
$_POST[
"usrs"] as $new_member)
134 $ilErr->raiseError(
"An Error occured while assigning user to group !", $ilErr->MESSAGE);
137 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
138 $members_obj->sendNotification(
143 include_once
'./Modules/Forum/classes/class.ilForumNotification.php';