ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAppointmentPresentationPublicGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29{
30 public function collectPropertiesAndActions(): void
31 {
32 $a_app = $this->appointment;
33 $cat_info = $this->getCatInfo();
34
35 // event title
36 $this->addInfoSection($a_app["event"]->getPresentationTitle());
37
38 // event description
39 $this->addEventDescription($a_app);
40
41 // calendar info
42 if ($cat_info != null) {
43 $this->addCalendarInfo($cat_info);
44 }
45
46 $this->addInfoSection($this->lng->txt("cal_app_info"));
47
48 // event location
49 $this->addEventLocation($a_app);
50
51 //user notifications
52 $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
53 $recipients = $notification->getRecipients();
54 if (count($recipients) > 0) {
55 $str_notification = "";
56 foreach ($recipients as $rcp) {
57 switch ($rcp['type']) {
59 $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
60 break;
62 $str_notification .= $rcp['email'] . "<br>";
63 break;
64 }
65 }
66 $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
67 }
68 }
69}
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.