3 declare(strict_types=1);
48 if ($this->
http->wrapper()->post()->has(
'visible_participants')) {
49 $this->requested_visible_participants = (array) $this->
http->wrapper()->post()->retrieve(
50 'visible_participants',
51 $this->
refinery->custom()->transformation(
function ($v) {
55 } elseif ($this->
http->wrapper()->query()->has(
'visible_participants')) {
56 $this->requested_visible_participants = (array) $this->
http->wrapper()->query()->retrieve(
57 'visible_participants',
58 $this->
refinery->custom()->transformation(
function ($v) {
64 if ($this->
http->wrapper()->post()->has(
'participated')) {
65 $this->requested_participated = (array) $this->
http->wrapper()->post()->retrieve(
67 $this->
refinery->custom()->transformation(
function ($v) {
73 if ($this->
http->wrapper()->post()->has(
'registered')) {
74 $this->requested_registered = (array) $this->
http->wrapper()->post()->retrieve(
76 $this->
refinery->custom()->transformation(
function ($v) {
82 if ($this->
http->wrapper()->post()->has(
'contact')) {
83 $this->requested_contact = (array) $this->
http->wrapper()->post()->retrieve(
85 $this->
refinery->custom()->transformation(
function ($v) {
91 if ($this->
http->wrapper()->post()->has(
'excused')) {
92 $this->requested_excused = (array) $this->
http->wrapper()->post()->retrieve(
94 $this->
refinery->custom()->transformation(
function ($v) {
100 if ($this->
http->wrapper()->post()->has(
'mark')) {
101 $this->requested_mark = (array) $this->
http->wrapper()->post()->retrieve(
103 $this->
refinery->custom()->transformation(
function ($v) {
109 if ($this->
http->wrapper()->post()->has(
'comment')) {
110 $this->requested_comment = (array) $this->
http->wrapper()->post()->retrieve(
112 $this->
refinery->custom()->transformation(
function ($v) {
118 if ($this->
http->wrapper()->post()->has(
'notification')) {
119 $this->requested_notification = (array) $this->
http->wrapper()->post()->retrieve(
121 $this->
refinery->custom()->transformation(
function ($v) {
127 if ($this->
http->wrapper()->post()->has(
'participants')) {
128 $this->requested_participants = (array) $this->
http->wrapper()->post()->retrieve(
130 $this->
refinery->custom()->transformation(
function ($v) {
156 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.sess_edit_members.html',
'Modules/Session');
170 $parent_object = parent::getParentObject();
171 return $parent_object;
188 $subscriber->setTitle($this->
lng->txt(
'group_new_registrations'));
200 $waiting = $wait->getUserIds();
202 foreach ($this->requested_visible_participants as $part_id) {
203 if (in_array($part_id, $waiting)) {
208 $participated = (bool) ($this->requested_participated[$part_id] ??
false);
209 $registered = (bool) ($this->requested_registered[$part_id] ??
false);
210 $contact = (bool) ($this->requested_contact[$part_id] ??
false);
211 $excused = (bool) ($this->requested_excused[$part_id] ??
false);
213 $part_id = (
int) $part_id;
215 if ($part->isAssigned($part_id) && !$participated && !$registered) {
216 $part->delete($part_id);
218 if (!$part->isAssigned($part_id) && ($participated || $registered)) {
222 $event_part->setUserId($part_id);
225 $event_part->setNotificationEnabled((
bool) ($this->requested_notification[$part_id] ??
false));
226 $event_part->setParticipated($participated);
227 $event_part->setRegistered($registered);
228 $event_part->setContact($contact);
229 $event_part->setExcused($excused);
230 $event_part->updateUser();
233 $this->tpl->setOnScreenMessage(
'success', $this->
getLanguage()->txt(
'settings_saved'),
true);
234 $this->
getCtrl()->redirect($this,
'participants');
242 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'no_checkbox'),
true);
243 $this->
ctrl->redirect($this,
'participants');
247 $confirm->setFormAction($this->
ctrl->getFormAction($this,
'confirmDeleteParticipants'));
248 $confirm->setHeaderText($this->
lng->txt($this->getParentObject()->getType() .
'_header_delete_members'));
249 $confirm->setConfirm($this->
lng->txt(
'confirm'),
'deleteParticipants');
250 $confirm->setCancel($this->
lng->txt(
'cancel'),
'participants');
258 $name[
'lastname'] .
', ' .
$name[
'firstname'] .
' [' .
$name[
'login'] .
']',
263 $this->tpl->setContent($confirm->getHTML());
273 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_checkbox"),
true);
274 $this->
ctrl->redirect($this,
'participants');
282 $event_part->setUserId($part_id);
283 $event_part->setParticipated(
false);
284 $event_part->setRegistered(
false);
285 $event_part->setMark(
'');
286 $event_part->setComment(
'');
287 $event_part->updateUser();
290 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt($this->getParentObject()->getType() .
"_members_deleted"),
true);
291 $this->
ctrl->redirect($this,
"participants");
310 $data[
'registered'] = (bool) (
$data[
'registered'] ??
false);
311 $data[
'participated'] = (bool) (
$data[
'participated'] ??
false);
313 if ($filters && $filters[
"registered"] && !
$data[
"registered"]) {
319 $this->
lng->txt(
'yes') :
320 $this->
lng->txt(
'no');
321 $data[
'participated'] =
$data[
'participated'] ?
322 $this->
lng->txt(
'yes') :
323 $this->
lng->txt(
'no');
341 return $context_options;
array $requested_registered
Base class for member tab content.
checkPermissionBool(string $a_permission, string $a_cmd='', string $a_type='', int $a_ref_id=0)
initParticipantTemplate()
checkRbacOrPositionAccessBool(string $a_rbac_perm, string $a_pos_perm, int $a_ref_id=0)
No support for positions in sessions Check if rbac or position access is granted. ...
Class ilMailMemberSessionRoles.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
checkPermission(string $a_permission, string $a_cmd="")
Check permission If not granted redirect to parent gui.
static getInstance(int $a_ref_id)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
ilObjectGUI $repository_gui
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupName(int $a_user_id)
lookup user name
getAttendanceListUserData(int $user_id, array $filters=[])
initParticipantTableGUI()
confirmDeleteParticipants()
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $requested_participants
Class ilObjectGUI Basic methods of all Output classes.
GUI class for course/group subscriptions.
ilParticipants $participants
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $requested_notification
__construct(Container $dic, ilPlugin $plugin)
array $requested_visible_participants
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjectGUI $repository_gui, ilObject $repository_obj)
Class ilAbstractMailMemberRoles.
array $requested_participated
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getPrintMemberData(array $a_members)