ILIAS  release_8 Revision v8.24
class.ilAppointmentPresentationPublicGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
13{
14 public function collectPropertiesAndActions(): void
15 {
16 $a_app = $this->appointment;
17 $cat_info = $this->getCatInfo();
18
19 // event title
20 $this->addInfoSection($a_app["event"]->getPresentationTitle());
21
22 // event description
23 $this->addEventDescription($a_app);
24
25 // calendar info
26 if ($cat_info != null) {
27 $this->addCalendarInfo($cat_info);
28 }
29
30 $this->addInfoSection($this->lng->txt("cal_app_info"));
31
32 // event location
33 $this->addEventLocation($a_app);
34
35 //user notifications
36 $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
37 $recipients = $notification->getRecipients();
38 if (count($recipients) > 0) {
39 $str_notification = "";
40 foreach ($recipients as $rcp) {
41 switch ($rcp['type']) {
43 $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
44 break;
46 $str_notification .= $rcp['email'] . "<br>";
47 break;
48 }
49 }
50 $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
51 }
52 }
53}
addInfoProperty(string $a_txt, string $a_val)
Add info property.
addEventLocation(array $a_app)
Add event location.
addEventDescription(array $a_app)
Add event description.
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
addInfoSection(string $a_txt)
Add info section.
ilAppointmentPresentationPublicGUI class presents modal information for public appointments.