5include_once
'./Services/Membership/classes/class.ilMembershipGUI.php';
50 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_edit_members.html',
'Modules/Session');
59 include_once
'./Modules/Session/classes/class.ilSessionWaitingList.php';
84 $subscriber->setTitle($this->lng->txt(
'group_new_registrations'));
100 $waiting = $wait->getUserIds();
102 foreach ((array) $_REQUEST[
'visible_participants'] as $part_id) {
103 if (in_array($part_id, $waiting)) {
108 $participated = (bool)
$_POST[
'participated'][$part_id];
109 $registered = (bool)
$_POST[
'registered'][$part_id];
110 $contact = (bool)
$_POST[
'contact'][$part_id];
111 $excused = (bool)
$_POST[
'excused'][$part_id];
113 if ($part->isAssigned($part_id)) {
114 if (!$participated && !$registered && !$contact) {
115 $part->delete($part_id);
118 if ($participated || $registered || $contact) {
123 $event_part->setUserId($part_id);
126 $event_part->setNotificationEnabled(
$_POST[
'notification'][$part_id]);
127 $event_part->setParticipated($participated);
128 $event_part->setRegistered($registered);
129 $event_part->setContact($contact);
130 $event_part->setExcused($excused);
131 $event_part->updateUser();
134 ilUtil::sendSuccess($this->
getLanguage()->txt(
'settings_saved'),
true);
135 $this->
getCtrl()->redirect($this,
'participants');
144 $participants = (array)
$_POST[
'participants'];
146 if (!count($participants)) {
148 $this->ctrl->redirect($this,
'participants');
151 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
153 $confirm->setFormAction($this->ctrl->getFormAction($this,
'confirmDeleteParticipants'));
154 $confirm->setHeaderText($this->lng->txt($this->getParentObject()->getType() .
'_header_delete_members'));
155 $confirm->setConfirm($this->lng->txt(
'confirm'),
'deleteParticipants');
156 $confirm->setCancel($this->lng->txt(
'cancel'),
'participants');
158 foreach ($participants as $usr_id) {
164 $name[
'lastname'] .
', ' .
$name[
'firstname'] .
' [' .
$name[
'login'] .
']',
169 $this->tpl->setContent($confirm->getHTML());
184 $participants = (array)
$_POST[
'participants'];
186 if (!is_array($participants) or !count($participants)) {
188 $this->ctrl->redirect($this,
'participants');
191 foreach ($participants as $part_id) {
196 $event_part->setUserId($part_id);
197 $event_part->setParticipated(
false);
198 $event_part->setRegistered(
false);
199 $event_part->setMark(
'');
200 $event_part->setComment(
'');
201 $event_part->updateUser();
204 ilUtil::sendSuccess($this->lng->txt($this->getParentObject()->getType() .
"_members_deleted"),
true);
205 $this->ctrl->redirect($this,
"participants");
241 if ($a_filters && $a_filters[
"registered"] && !
$data[
"registered"]) {
246 $this->lng->txt(
'yes') :
247 $this->lng->txt(
'no');
248 $data[
'participated'] =
$data[
'participated'] ?
249 $this->lng->txt(
'yes') :
250 $this->lng->txt(
'no');
261 return $this->lng->txt($this->
getParentObject()->getType() .
'_members');
277 return $context_options;
An exception for terminatinating execution or to throw for unit testing.
Confirmation screen class.
Class ilMailMemberSessionRoles.
Base class for member tab content.
checkPermissionBool($a_permission, $a_cmd='', $a_type='', $a_ref_id=0)
Check permission.
checkPermission($a_permission, $a_cmd="")
Check permission If not granted redirect to parent gui.
getParentObject()
Get parent object.
getMembersObject()
Get member object.
static _lookupName($a_user_id)
lookup user name
static getInstance($a_ref_id)
Get instance by ref_id.
GUI class for membership features.
getMemberTabName()
Get member tab name.
getAttendanceListUserData($a_user_id, $a_filters)
Callback from attendance list.
updateMembers()
update entries from member table
checkRbacOrPositionAccessBool($a_rbac_perm, $a_pos_perm, $a_ref_id=0)
No support for positions in sessions Check if rbac or position access is granted.
initWaitingList()
init waiting list
confirmDeleteParticipants()
Show confirmation screen for participants deletion.
initParticipantTableGUI()
initParticipantTemplate()
Init participant view template.
getMailContextOptions()
array
deleteParticipants()
Delete participants @global type $rbacreview @global type $rbacsystem @global type $ilAccess @global ...
getPrintMemberData($a_members)
canAddOrSearchUsers()
Check if current user is allowed to add / search users.bool
Description of class class.
GUI class for course/group subscriptions.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)