ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilCalendarInboxGUI Class Reference
+ Inheritance diagram for ilCalendarInboxGUI:
+ Collaboration diagram for ilCalendarInboxGUI:

Public Member Functions

 __construct (ilDate $seed_date)
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
- Public Member Functions inherited from ilCalendarViewGUI
 __construct (ilDate $seed, $presentation_type)
 
 setConsulationHoursUserId ($a_user_id)
 
 getConsultationHoursUserId ()
 
 initialize ($a_calendar_presentation_type)
 View initialization. More...
 
 getCurrentApp ()
 Get app for id. More...
 
 getEvents ()
 Get events. More...
 
 getDatesForItem ($item)
 Get start/end date for item. More...
 
 getModalForApp ()
 Get modal for appointment (see similar code in ilCalendarBlockGUI) More...
 
 getAppointmentShyButton ($a_calendar_entry, $a_dstart, $a_title_forced="")
 
 getActivePlugins ($a_slot_id)
 
 getModalTitleByPlugins ($a_current_title)
 
 getContentByPlugins ($a_cal_entry, $a_start_date, $a_content, $a_tpl)
 
 addToolbarActions ()
 Add download link to toolbar. More...
 
 downloadFiles ()
 Download files related to the appointments showed in the current calendar view (day,week,month,list). More...
 
 getBucketTitle ()
 get proper label to add in the background task popover More...
 
 countEventsInView ()
 get the events starting between 2 dates based in seed + view options. More...
 

Protected Member Functions

 inbox ()
 show inbox More...
 

Protected Attributes

 $user_settings = null
 
 $lng
 
 $ctrl
 
 $tabs_gui
 
 $tpl
 
 $user
 
 $toolbar
 
 $timezone = 'UTC'
 
- Protected Attributes inherited from ilCalendarViewGUI
 $ui_factory
 
 $ui_renderer
 
 $ctrl
 
 $presentation_type
 
 $toolbar
 
 $logger
 
 $ui
 
 $view_with_appointments
 
 $lng
 
 $user
 
 $seed
 
 $ch_user_id = 0
 

Additional Inherited Members

- Data Fields inherited from ilCalendarViewGUI
const CAL_PRESENTATION_DAY = 1
 
const CAL_PRESENTATION_WEEK = 2
 
const CAL_PRESENTATION_MONTH = 3
 
const CAL_PRESENTATION_AGENDA_LIST = 9
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCalendarInboxGUI::__construct ( ilDate  $seed_date)

Constructor.

@access public

Parameters

xrefitem todo 146.

Definition at line 61 of file class.ilCalendarInboxGUI.php.

62 {
64 $this->user_settings = ilCalendarUserSettings::_getInstanceByUserId($this->user->getId());
65 $this->app_colors = new ilCalendarAppointmentColors($this->user->getId());
66 $this->timezone = $this->user->getTimeZone();
67 }
user()
Definition: user.php:4
static _getInstanceByUserId($a_user_id)
get singleton instance
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarViewGUI\CAL_PRESENTATION_AGENDA_LIST, and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilCalendarInboxGUI::executeCommand ( )

Execute command.

@access public

Definition at line 75 of file class.ilCalendarInboxGUI.php.

76 {
77 global $DIC;
78
79 $ilCtrl = $DIC['ilCtrl'];
80 $tpl = $DIC['tpl'];
81
82 $next_class = $ilCtrl->getNextClass();
83 switch ($next_class) {
84 case 'ilcalendarappointmentgui':
85 $this->ctrl->setReturn($this, '');
86 $this->tabs_gui->setSubTabActive($_SESSION['cal_last_tab']);
87
88 include_once('./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
89 $app = new ilCalendarAppointmentGUI($this->seed, $this->seed, (int) $_GET['app_id']);
90 $this->ctrl->forwardCommand($app);
91 break;
92
93 case 'ilcalendaragendalistgui':
94 include_once("./Services/Calendar/classes/Agenda/class.ilCalendarAgendaListGUI.php");
95 $cal_list = new ilCalendarAgendaListGUI($this->seed);
96 $html = $this->ctrl->forwardCommand($cal_list);
97 // this fixes 0027035 since many methods ilCalendarAppointmentGUI set their own content.
98 if (strlen($html)) {
99 $tpl->setContent($html);
100 }
101 break;
102
103 default:
104 $cmd = $this->ctrl->getCmd("inbox");
105 $this->$cmd();
106 $tpl->setContent($this->tpl->get());
107 break;
108 }
109
110 return true;
111 }
$_GET["client_id"]
$_SESSION["AccountId"]
Administrate calendar appointments.
$app
Definition: cli.php:38
global $ilCtrl
Definition: ilias.php:18
$DIC
Definition: xapitoken.php:46

References $_GET, $_SESSION, $app, $DIC, $ilCtrl, and $tpl.

◆ inbox()

ilCalendarInboxGUI::inbox ( )
protected

show inbox

Definition at line 116 of file class.ilCalendarInboxGUI.php.

117 {
118 global $DIC;
119
120 $ilCtrl = $DIC['ilCtrl'];
121
122 $this->tpl = new ilTemplate('tpl.inbox.html', true, true, 'Services/Calendar');
123
124 // agenda list
125 $cal_list = new ilCalendarAgendaListGUI($this->seed);
126 $html = $ilCtrl->getHTML($cal_list);
127 $this->tpl->setVariable('CHANGED_TABLE', $html);
128 }
special template class to simplify handling of ITX/PEAR

References $DIC, and $ilCtrl.

Field Documentation

◆ $ctrl

ilCalendarInboxGUI::$ctrl
protected

Definition at line 47 of file class.ilCalendarInboxGUI.php.

◆ $lng

ilCalendarInboxGUI::$lng
protected

Definition at line 46 of file class.ilCalendarInboxGUI.php.

◆ $tabs_gui

ilCalendarInboxGUI::$tabs_gui
protected

Definition at line 48 of file class.ilCalendarInboxGUI.php.

◆ $timezone

ilCalendarInboxGUI::$timezone = 'UTC'
protected

Definition at line 52 of file class.ilCalendarInboxGUI.php.

◆ $toolbar

ilCalendarInboxGUI::$toolbar
protected

Definition at line 51 of file class.ilCalendarInboxGUI.php.

◆ $tpl

ilCalendarInboxGUI::$tpl
protected

Definition at line 49 of file class.ilCalendarInboxGUI.php.

Referenced by executeCommand().

◆ $user

ilCalendarInboxGUI::$user
protected

Definition at line 50 of file class.ilCalendarInboxGUI.php.

◆ $user_settings

ilCalendarInboxGUI::$user_settings = null
protected

Definition at line 44 of file class.ilCalendarInboxGUI.php.


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