ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAppointmentPresentationPublicGUI Class Reference

ilAppointmentPresentationPublicGUI class presents modal information for public appointments. More...

+ Inheritance diagram for ilAppointmentPresentationPublicGUI:
+ Collaboration diagram for ilAppointmentPresentationPublicGUI:

Public Member Functions

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

Protected Attributes

 $seed
 
- Protected Attributes inherited from ilAppointmentPresentationGUI
 $toolbar
 
 $appointment
 
 $infoscreen
 
 $lng
 
 $tree
 
 $ui
 
 $list_item = null
 
 $info_items = array()
 
 $list_properties = array()
 
 $actions = array()
 
 $ctrl
 
 $access
 
 $readable_ref_ids
 
 $has_files = false
 
 $obj_id = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from ilAppointmentPresentationGUI
static getInstance ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 
- Protected Member Functions inherited from ilAppointmentPresentationGUI
 readObjIdForAppointment ()
 read obj_id for appointment More...
 
 buildDirectLinkForAppointment ($a_ref_id, $a_appointment=null)
 Build direct link for appointment. More...
 
- Static Protected Attributes inherited from ilAppointmentPresentationGUI
static $instance
 

Detailed Description

ilAppointmentPresentationPublicGUI class presents modal information for public appointments.

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

@ilCtrl_IsCalledBy ilAppointmentPresentationPublicGUI: ilCalendarAppointmentPresentationGUI

Definition at line 15 of file class.ilAppointmentPresentationPublicGUI.php.

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationPublicGUI::collectPropertiesAndActions ( )

Collect properties and actions.

Reimplemented from ilAppointmentPresentationGUI.

Definition at line 27 of file class.ilAppointmentPresentationPublicGUI.php.

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 }
addEventDescription($a_app)
Add event description.
getUserName($a_user_id, $a_force_name=false)
Get (linked if possible) user name.
addInfoProperty($a_txt, $a_val)
Add info property.
global $DIC
Definition: saml.php:7

References ilAppointmentPresentationGUI\$appointment, $DIC, ilAppointmentPresentationGUI\addCalendarInfo(), ilAppointmentPresentationGUI\addEventDescription(), ilAppointmentPresentationGUI\addEventLocation(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\getCatInfo(), ilAppointmentPresentationGUI\getUserName(), ilCalendarUserNotification\TYPE_EMAIL, and ilCalendarUserNotification\TYPE_USER.

+ Here is the call graph for this function:

◆ getSeed()

ilAppointmentPresentationPublicGUI::getSeed ( )

Field Documentation

◆ $seed

ilAppointmentPresentationPublicGUI::$seed
protected

Definition at line 17 of file class.ilAppointmentPresentationPublicGUI.php.

Referenced by getSeed().


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