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(
107 include_once
'./Modules/Forum/classes/class.ilForumNotification.php';
111 $ilCtrl->redirect($this,
"show");
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';
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilCourseParticipantsGroupsGUI.
const TYPE_DISMISS_MEMBER
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)
Default behaviour is:
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static checkForumsExistsDelete($ref_id, $user_id=0)
const TYPE_ADMISSION_MEMBER
static checkForumsExistsInsert($ref_id, $user_id=0)
Confirmation screen class.