5include_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');
113 $participants = (array)
$_POST[
'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());
153 $participants = (array)
$_POST[
'participants'];
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);
An exception for terminatinating execution or to throw for unit testing.
Confirmation screen class.
Base class for member tab content.
participants()
Show participant table, subscriber table, wating list table;.
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.
checkPermissionBool($a_permission, $a_cmd='', $a_type='', $a_ref_id=0)
Check permission.
checkPermission($a_permission, $a_cmd="")
Check permission has no manage members.
getAttendanceListUserData($a_user_id, $a_filters)
Callback from attendance list.
showParticipantsToolbar()
Show participants toolbar.
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.
deleteParticipants()
Delete participants @global type $rbacreview @global type $rbacsystem @global type $ilAccess @global ...
setSubTabs(ilTabsGUI $tabs)
Set sub tabs.
jump2UsersGallery()
Workaround for unavailable gallery.
getPrintMemberData($a_members)
canAddOrSearchUsers()
Check if current user is allowed to add / search users.
Description of class class.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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)
if(!empty($this->data['faventry'])) $tabs
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(empty($password)) $table