ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

public

Parameters

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

References ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarViewGUI\CAL_PRESENTATION_AGENDA_LIST, timezone, and user().

62  {
63  parent::__construct($seed_date, ilCalendarViewGUI::CAL_PRESENTATION_AGENDA_LIST);
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  }
Set timezone
static _getInstanceByUserId($a_user_id)
get singleton instance
user()
Definition: user.php:4
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilCalendarInboxGUI::executeCommand ( )

Execute command.

public

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

References $_GET, $_SESSION, $html, $ilCtrl, $tpl, and ilLoggerFactory\getRootLogger().

76  {
77  global $ilCtrl,$tpl;
78 
79  $next_class = $ilCtrl->getNextClass();
80  switch ($next_class) {
81  case 'ilcalendarappointmentgui':
82  $this->ctrl->setReturn($this, '');
83  $this->tabs_gui->setSubTabActive($_SESSION['cal_last_tab']);
84 
85  include_once('./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
86 
87  ilLoggerFactory::getRootLogger()->debug("****** inbox seed 0 " . $this->seed);
88 
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  $tpl->setContent($html);
98  break;
99 
100  default:
101  $cmd = $this->ctrl->getCmd("inbox");
102  $this->$cmd();
103  $tpl->setContent($this->tpl->get());
104  break;
105  }
106 
107  return true;
108  }
$_SESSION["AccountId"]
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
Administrate calendar appointments.
$html
Definition: example_001.php:87
static getRootLogger()
The unique root logger has a fixed error level.
+ Here is the call graph for this function:

◆ inbox()

ilCalendarInboxGUI::inbox ( )
protected

show inbox

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

References $html, and $ilCtrl.

114  {
115  global $ilCtrl;
116 
117  $this->tpl = new ilTemplate('tpl.inbox.html', true, true, 'Services/Calendar');
118 
119  // agenda list
120  $cal_list = new ilCalendarAgendaListGUI($this->seed);
121  $html = $ilCtrl->getHTML($cal_list);
122  $this->tpl->setVariable('CHANGED_TABLE', $html);
123  }
global $ilCtrl
Definition: ilias.php:18
special template class to simplify handling of ITX/PEAR
$html
Definition: example_001.php:87

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: