4 include_once
"./Modules/Course/classes/class.ilCourseParticipantsGroupsTableGUI.php";
25 $this->ref_id = $a_ref_id;
32 if (!
$GLOBALS[
'DIC']->access()->checkRbacOrPositionPermissionAccess(
'manage_members',
'manage_members', $this->ref_id)) {
33 $ilErr->raiseError($lng->txt(
'permission_denied'), $ilErr->WARNING);
36 $cmd = $ilCtrl->getCmd();
48 $tpl->setContent($tbl_gui->getHTML());
54 $tbl_gui->resetOffset();
55 $tbl_gui->writeFilterToSession();
62 $tbl_gui->resetOffset();
63 $tbl_gui->resetFilter();
71 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
73 $confirm->setFormAction($ilCtrl->getFormAction($this,
'remove'));
74 $confirm->addHiddenItem(
"grp_id",
$_GET[
"grp_id"]);
75 $confirm->setHeaderText($lng->txt(
'grp_dismiss_member'));
76 $confirm->setConfirm($lng->txt(
'confirm'),
'remove');
77 $confirm->setCancel($lng->txt(
'cancel'),
'show');
79 include_once
'./Services/User/classes/class.ilUserUtil.php';
88 $tpl->setContent($confirm->getHTML());
98 protected function remove()
102 if (!
$GLOBALS[
'DIC']->access()->checkRbacOrPositionPermissionAccess(
'manage_members',
'manage_members', (
int)
$_POST[
'grp_id'])) {
108 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
110 $members_obj->delete((
int) $_POST[
"usr_id"]);
113 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
114 $members_obj->sendNotification(
116 (
int) $_POST[
"usr_id"]
120 $ilCtrl->redirect($this,
"show");
133 global
$ilErr, $ilObjDataCache,
$lng, $ilAccess;
135 if (
sizeof(
$_POST[
"usrs"])) {
136 if (!
$GLOBALS[
'DIC']->access()->checkRbacOrPositionPermissionAccess(
'manage_members',
'manage_members', (
int)
$_POST[
'grp_id'])) {
142 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
144 foreach ($_POST[
"usrs"] as $new_member) {
146 $ilErr->raiseError(
"An Error occured while assigning user to group !", $ilErr->MESSAGE);
149 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
150 $members_obj->sendNotification(
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilCourseParticipantsGroupsGUI.
add()
Add user to group type $ilErr type $ilObjDataCache type $lng type $ilAccess.
const TYPE_DISMISS_MEMBER
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
const TYPE_ADMISSION_MEMBER
Confirmation screen class.