ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAppointmentPresentationUserGUI.php
Go to the documentation of this file.
1<?php
2
27{
28 public function collectPropertiesAndActions(): void
29 {
30 global $DIC;
31
32 $a_app = $this->appointment;
33 $f = $DIC->ui()->factory();
34 $r = $DIC->ui()->renderer();
35 $cat_info = $this->getCatInfo();
36
37 // event title
38 $this->addInfoSection($a_app["event"]->getPresentationTitle());
39
40 // event description
41 $this->addEventDescription($a_app);
42
43 // calendar info
44 if ($cat_info != null) {
45 $this->addCalendarInfo($cat_info);
46 }
47
48 // owner
49 $this->addInfoProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
50 $this->addListItemProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
51
52 $this->addInfoSection($this->lng->txt("cal_usr_info"));
53
54 // event location
55 $this->addEventLocation($a_app);
56
57 //user notifications
58 $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
59 $recipients = $notification->getRecipients();
60 if (count($recipients) > 0) {
61 $str_notification = "";
62 foreach ($recipients as $rcp) {
63 switch ($rcp['type']) {
65 $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
66 break;
68 $str_notification .= $rcp['email'] . "<br>";
69 break;
70 }
71 }
72 $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
73 }
74 }
75}
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
collectPropertiesAndActions()
Collect properties and actions.
global $DIC
Definition: shib_login.php:26