ILIAS  release_8 Revision v8.24
class.ilAppointmentPresentationUserGUI.php
Go to the documentation of this file.
1<?php
2
11{
12 public function collectPropertiesAndActions(): void
13 {
14 global $DIC;
15
16 $a_app = $this->appointment;
17 $f = $DIC->ui()->factory();
18 $r = $DIC->ui()->renderer();
19 $cat_info = $this->getCatInfo();
20
21 // event title
22 $this->addInfoSection($a_app["event"]->getPresentationTitle());
23
24 // event description
25 $this->addEventDescription($a_app);
26
27 // calendar info
28 if ($cat_info != null) {
29 $this->addCalendarInfo($cat_info);
30 }
31
32 // owner
33 $this->addInfoProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
34 $this->addListItemProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
35
36 $this->addInfoSection($this->lng->txt("cal_usr_info"));
37
38 // event location
39 $this->addEventLocation($a_app);
40
41 //user notifications
42 $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
43 $recipients = $notification->getRecipients();
44 if (count($recipients) > 0) {
45 $str_notification = "";
46 foreach ($recipients as $rcp) {
47 switch ($rcp['type']) {
49 $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
50 break;
52 $str_notification .= $rcp['email'] . "<br>";
53 break;
54 }
55 }
56 $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
57 }
58 }
59}
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.
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
ilAppointmentPresentationUserGUI class presents modal information for personal appointments.
collectPropertiesAndActions()
Collect properties and actions.
global $DIC
Definition: feed.php:28