ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAppointmentPresentationUserGUI.php
Go to the documentation of this file.
1 <?php
2 include_once './Services/Calendar/interfaces/interface.ilCalendarAppointmentPresentation.php';
3 include_once './Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationGUI.php';
4 
16 {
17  protected $seed;
18 
22  public function getSeed()
23  {
24  return $this->seed;
25  }
26 
27  public function collectPropertiesAndActions()
28  {
29  global $DIC;
30 
31  $a_app = $this->appointment;
32 
33 
34  $f = $DIC->ui()->factory();
35  $r = $DIC->ui()->renderer();
36 
37  $ctrl = $DIC->ctrl();
38 
39  $cat_info = $this->getCatInfo();
40 
41  // common info: title, description, location, calendar
42  //$this->addCommonSection($a_app, 0, $cat_info);
43 
44  // event title
45  $this->addInfoSection($a_app["event"]->getPresentationTitle());
46 
47  // event description
48  $this->addEventDescription($a_app);
49 
50  // calendar info
51  if ($cat_info != null) {
52  $this->addCalendarInfo($cat_info);
53  }
54 
55  // owner
56  $this->addInfoProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
57  $this->addListItemProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
58 
59  $this->addInfoSection($this->lng->txt("cal_usr_info"));
60 
61  // event location
62  $this->addEventLocation($a_app);
63 
64  //user notifications
65  include_once './Services/Calendar/classes/class.ilCalendarUserNotification.php';
66 
67  $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
68 
69  $recipients = $notification->getRecipients();
70  if (count($recipients) > 0) {
71  $str_notification = "";
72  foreach ($recipients as $rcp) {
73  switch ($rcp['type']) {
75  $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
76  break;
78  $str_notification .= $rcp['email'] . "<br>";
79  break;
80  }
81  }
82  $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
83  }
84  }
85 }
ilAppointmentPresentationUserGUI class presents modal information for personal appointments.
addInfoProperty($a_txt, $a_val)
Add info property.
getUserName($a_user_id, $a_force_name=false)
Get (linked if possible) user name.
global $DIC
Definition: saml.php:7
addEventDescription($a_app)
Add event description.
$r
Definition: example_031.php:79
addListItemProperty($a_txt, $a_val)
Add list item property.