ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAppointmentPresentationUserGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 collectPropertiesAndActions ()
 Collect properties and actions. More...
 
- 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...
 
 getToolbar ()
 
 getInfoScreen ()
 

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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 26 of file class.ilAppointmentPresentationUserGUI.php.

Member Function Documentation

◆ collectPropertiesAndActions()

ilAppointmentPresentationUserGUI::collectPropertiesAndActions ( )

Collect properties and actions.

Reimplemented from ilAppointmentPresentationGUI.

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

28 : void
29 {
30 global $DIC;
31
32 $a_app = $this->appointment;
33 $f = $DIC->ui()->factory();
34 $r = $DIC->ui()->renderer();
35 $cat_info = $this->getCatInfo();
36
37 // event title
38 $this->addInfoSection($a_app["event"]->getPresentationTitle());
39
40 // event description
41 $this->addEventDescription($a_app);
42
43 // calendar info
44 if ($cat_info != null) {
45 $this->addCalendarInfo($cat_info);
46 }
47
48 // owner
49 $this->addInfoProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
50 $this->addListItemProperty($this->lng->txt("cal_owner"), $this->getUserName($cat_info['obj_id']));
51
52 $this->addInfoSection($this->lng->txt("cal_usr_info"));
53
54 // event location
55 $this->addEventLocation($a_app);
56
57 //user notifications
58 $notification = new ilCalendarUserNotification($a_app['event']->getEntryId());
59 $recipients = $notification->getRecipients();
60 if (count($recipients) > 0) {
61 $str_notification = "";
62 foreach ($recipients as $rcp) {
63 switch ($rcp['type']) {
65 $str_notification .= $this->getUserName($rcp['usr_id']) . "<br>";
66 break;
68 $str_notification .= $rcp['email'] . "<br>";
69 break;
70 }
71 }
72 $this->addInfoProperty($this->lng->txt("cal_user_notification"), $str_notification);
73 }
74 }
addInfoProperty(string $a_txt, string $a_val)
Add info property.
addEventLocation(array $a_app)
Add event location.
addEventDescription(array $a_app)
Add event description.
getUserName(int $a_user_id, bool $a_force_name=false)
Get (linked if possible) user name.
addInfoSection(string $a_txt)
Add info section.
addListItemProperty(string $a_txt, string $a_val)
Add list item property.
global $DIC
Definition: shib_login.php:26

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.

+ Here is the call graph for this function:

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