5 include_once
'./Services/Membership/classes/class.ilMembershipGUI.php';
41 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_edit_members.html',
'Modules/Session');
50 include_once
'./Modules/Session/classes/class.ilSessionWaitingList.php';
78 foreach ((
array) $_REQUEST[
'visible_participants'] as $part_id) {
79 $participated = (bool)
$_POST[
'participated'][$part_id];
80 $registered = (bool)
$_POST[
'registered'][$part_id];
82 $this->
getLogger()->debug(
'Participated: ' . (
int) $participated);
83 $this->
getLogger()->debug(
'Registered: ' . (
int) $registered);
85 if ($part->isAssigned($part_id)) {
86 if (!$participated && !$registered) {
87 $part->delete($part_id);
90 if ($participated || $registered) {
95 $event_part->setUserId($part_id);
98 $event_part->setParticipated($participated);
99 $event_part->setRegistered($registered);
100 $event_part->updateUser();
104 $this->
getCtrl()->redirect($this,
'participants');
115 if (!count($participants)) {
117 $this->ctrl->redirect($this,
'participants');
120 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
122 $confirm->setFormAction($this->ctrl->getFormAction($this,
'confirmDeleteParticipants'));
123 $confirm->setHeaderText($this->lng->txt($this->getParentObject()->getType() .
'_header_delete_members'));
124 $confirm->setConfirm($this->lng->txt(
'confirm'),
'deleteParticipants');
125 $confirm->setCancel($this->lng->txt(
'cancel'),
'participants');
127 foreach ($participants as $usr_id) {
133 $name[
'lastname'] .
', ' .
$name[
'firstname'] .
' [' .
$name[
'login'] .
']',
138 $this->tpl->setContent($confirm->getHTML());
155 if (!is_array($participants) or !count($participants)) {
157 $this->ctrl->redirect($this,
'participants');
160 foreach ($participants as $part_id) {
165 $event_part->setUserId($part_id);
166 $event_part->setParticipated(
false);
167 $event_part->setRegistered(
false);
168 $event_part->setMark(
'');
169 $event_part->setComment(
'');
170 $event_part->updateUser();
173 ilUtil::sendSuccess($this->lng->txt($this->getParentObject()->getType() .
"_members_deleted"),
true);
174 $this->ctrl->redirect($this,
"participants");
185 $ilToolbar =
$GLOBALS[
'DIC']->toolbar();
188 $ilToolbar->addButton(
189 $this->lng->txt($this->getParentObject()->getType() .
"_print_list"),
190 $this->ctrl->getLinkTarget($this,
'printMembers')
221 if ($a_filters && $a_filters[
"registered"] && !
$data[
"registered"]) {
226 $this->lng->txt(
'yes') :
227 $this->lng->txt(
'no');
228 $data[
'participated'] =
$data[
'participated'] ?
229 $this->lng->txt(
'yes') :
230 $this->lng->txt(
'no');
242 if ($a_permission ==
'manage_members') {
243 $a_permission =
'write';
245 return parent::checkPermission($a_permission, $a_cmd);
254 if ($a_permission ==
'manage_members') {
255 $a_permission =
'write';
257 return parent::checkPermissionBool($a_permission, $a_cmd,
$a_type, $a_ref_id);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _lookupName($a_user_id)
lookup user name
Base class for member tab content.
initParticipantTemplate()
Init participant view template.
getMembersObject()
Get member object.
jump2UsersGallery()
Workaround for unavailable gallery.
showParticipantsToolbar()
Show participants toolbar.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
setSubTabs(ilTabsGUI $tabs)
Set sub tabs.
initWaitingList()
init waiting list
static getInstance($a_ref_id)
Get instance by ref_id.
initParticipantTableGUI()
getPrintMemberData($a_members)
confirmDeleteParticipants()
Show confirmation screen for participants deletion.
GUI class for membership features.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
checkPermissionBool($a_permission, $a_cmd='', $a_type='', $a_ref_id=0)
checkPermission($a_permission, $a_cmd="")
Check permission has no manage members.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
updateMembers()
update entries from member table
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
if(!empty($this->data['faventry'])) $tabs
canAddOrSearchUsers()
Check if current user is allowed to add / search users.
Description of class class.
participants()
Show participant table, subscriber table, wating list table;.
deleteParticipants()
Delete participants type $rbacreview type $rbacsystem type $ilAccess type $ilUser.
getParentObject()
Get parent object.
if(empty($password)) $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. ...
getAttendanceListUserData($a_user_id, $a_filters)
Callback from attendance list.
Confirmation screen class.