ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAppointmentPresentationPublicGUI.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  $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 
47  $this->addInfoSection($this->lng->txt("cal_app_info"));
48 
49  // event location
50  $this->addEventLocation($a_app);
51 
52  //user notifications
53  include_once './Services/Calendar/classes/class.ilCalendarUserNotification.php';
54 
55  $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
56 
57  $recipients = $notification->getRecipients();
58  if (count($recipients) > 0) {
59  $str_notification = "";
60  foreach ($recipients as $rcp) {
61  switch ($rcp['type']) {
63  $str_notification.= $this->getUserName($rcp['usr_id']) . "<br>";
64  break;
66  $str_notification.=$rcp['email'] . "<br>";
67  break;
68  }
69  }
70  $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
71  }
72  }
73 }
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.
ilAppointmentPresentationPublicGUI class presents modal information for public appointments.