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());
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(
108 $ilCtrl->redirect($this,
"show");
113 global
$ilErr, $ilObjDataCache,
$lng, $ilAccess;
116 if(
sizeof(
$_POST[
"usrs"]))
118 if (!$ilAccess->checkAccess(
"write",
"",
$_POST[
"grp_id"]))
125 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
127 foreach (
$_POST[
"usrs"] as $new_member)
131 $ilErr->raiseError(
"An Error occured while assigning user to group !", $ilErr->MESSAGE);
134 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
135 $members_obj->sendNotification(