ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAppointmentPresentationUserGUI Class Reference

ilAppointmentPresentationUserGUI class presents modal information for personal appointments. More...

+ Inheritance diagram for ilAppointmentPresentationUserGUI:
+ Collaboration diagram for ilAppointmentPresentationUserGUI:

Public Member Functions

 collectPropertiesAndActions ()
 
- Public Member Functions inherited from ilAppointmentPresentationGUI
 __construct (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item)
 
 getObjIdForAppointment ()
 
 getToolbar ()
 
 getListItem ()
 Get list item. More...
 
 getInfoScreen ()
 
 getCatId (int $a_entry_id)
 
 getCatInfo ()
 
 executeCommand ()
 
 getHTML ()
 
 addContainerInfo (int $a_obj_id)
 Add course/group container info. More...
 
 addInfoSection (string $a_txt)
 Add info section. More...
 
 addInfoProperty (string $a_txt, string $a_val)
 Add info property. More...
 
 addListItemProperty (string $a_txt, string $a_val)
 Add list item property. More...
 
 addAction (string $a_txt, string $a_link)
 Add action. More...
 
 collectPropertiesAndActions ()
 Collect properties and actions. More...
 
 collectStandardPropertiesAndActions ()
 Collect standard properties and actions. More...
 
 addObjectLinks (int $obj_id, ?array $a_appointment=null)
 Add object link. More...
 
 getReadableRefIds (int $a_obj_id)
 
 addEventDescription (array $a_app)
 Add event description. More...
 
 addEventLocation (array $a_app)
 Add event location. More...
 
 addLastUpdate (array $a_app)
 Add last update. More...
 
 addCalendarInfo (array $cat_info)
 
 addCommonSection (array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false)
 
 addMetaData (string $a_obj_type, int $a_obj_id, ?string $a_sub_obj_type=null, ?int $a_sub_obj_id=null)
 
 getUserName (int $a_user_id, bool $a_force_name=false)
 Get (linked if possible) user name. More...
 
 downloadFiles ()
 Download files from an appointment ( Modals ) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilAppointmentPresentationGUI
static getInstance (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item)
 
- Protected Member Functions inherited from ilAppointmentPresentationGUI
 readObjIdForAppointment ()
 read obj_id for appointment More...
 
 buildDirectLinkForAppointment (int $a_ref_id, ?array $a_appointment=null)
 Build direct link for appointment. More...
 
- Protected Attributes inherited from ilAppointmentPresentationGUI
array $appointment
 
ilToolbarGUI $toolbar
 
ilInfoScreenGUI $infoscreen
 
ilLanguage $lng
 
ilTree $tree
 
UIServices $ui
 
ilCtrlInterface $ctrl
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 
ilObjUser $user
 
RefineryFactory $refinery
 
HttpServices $http
 
Item $list_item = null
 
array $info_items = []
 
array $list_properties = []
 
array $actions = []
 
array $readable_ref_ids
 
bool $has_files = false
 
int $obj_id = 0
 
- Static Protected Attributes inherited from ilAppointmentPresentationGUI
static self $instance
 

Detailed Description

ilAppointmentPresentationUserGUI class presents modal information for personal appointments.

Author
Jesús López Reyes lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$ ilAppointmentPresentationUserGUI: ilCalendarAppointmentPresentationGUI

Definition at line 10 of file class.ilAppointmentPresentationUserGUI.php.

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationUserGUI::collectPropertiesAndActions ( )

Definition at line 12 of file class.ilAppointmentPresentationUserGUI.php.

References ilAppointmentPresentationGUI\$appointment, $DIC, Vendor\Package\$f, ilAppointmentPresentationGUI\addCalendarInfo(), ilAppointmentPresentationGUI\addEventDescription(), ilAppointmentPresentationGUI\addEventLocation(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\addListItemProperty(), ilAppointmentPresentationGUI\getCatInfo(), ilAppointmentPresentationGUI\getUserName(), ILIAS\Repository\lng(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.

12  : 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  }
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
addEventDescription(array $a_app)
Add event description.
addInfoSection(string $a_txt)
Add info section.
addInfoProperty(string $a_txt, string $a_val)
Add info property.
global $DIC
Definition: feed.php:28
addEventLocation(array $a_app)
Add event location.
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: