ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAppointmentPresentationUserGUI Class Reference

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

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

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)
 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...
 
- Static Protected Attributes inherited from ilAppointmentPresentationGUI
static $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$

@ilCtrl_IsCalledBy ilAppointmentPresentationUserGUI: ilCalendarAppointmentPresentationGUI

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

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationUserGUI::collectPropertiesAndActions ( )

Collect properties and actions.

Reimplemented from ilAppointmentPresentationGUI.

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

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

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

+ Here is the call graph for this function:

◆ getSeed()

ilAppointmentPresentationUserGUI::getSeed ( )

Get seed date.

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

References $seed.

Field Documentation

◆ $seed

ilAppointmentPresentationUserGUI::$seed
protected

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

Referenced by getSeed().


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