ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCalendarInboxGUI Class Reference
+ Inheritance diagram for ilCalendarInboxGUI:
+ Collaboration diagram for ilCalendarInboxGUI:

Public Member Functions

 __construct (ilDate $seed_date)
 Constructor public. More...
 
 initialize (int $a_calendar_presentation_type)
 
 executeCommand ()
 
- Public Member Functions inherited from ilCalendarViewGUI
 __construct (ilDate $seed, int $presentation_type)
 
 setConsulationHoursUserId (int $a_user_id)
 
 getConsultationHoursUserId ()
 
 initialize (int $a_calendar_presentation_type)
 
 getCurrentApp ()
 
 getEvents ()
 
 getDatesForItem ($item)
 
 getModalForApp ()
 Get modal for appointment (see similar code in ilCalendarBlockGUI) More...
 
 getAppointmentShyButton (ilCalendarEntry $a_calendar_entry, string $a_dstart, string $a_title_forced="")
 
 getActivePlugins (string $a_slot_id)
 
 getModalTitleByPlugins (string $a_current_title)
 
 getContentByPlugins (ilCalendarEntry $a_cal_entry, int $a_start_date, string $a_content, ilTemplate $a_tpl)
 
 addToolbarFileDownload ()
 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 ()
 
- Protected Member Functions inherited from ilCalendarViewGUI
 initAppointmentIdFromQuery ()
 
 initInitialDateFromQuery ()
 
 initInitialDateTimeFromQuery ()
 
 initBookingUserFromQuery ()
 

Protected Attributes

ilCalendarUserSettings $user_settings
 
string $timezone = 'UTC'
 
ilCalendarAppointmentColors $app_colors
 
- Protected Attributes inherited from ilCalendarViewGUI
int $presentation_type = self::CAL_PRESENTATION_UNDEFINED
 
bool $view_with_appointments = false
 
ilDate $seed
 
int $ch_user_id = 0
 
string $period_end_day = null
 
Factory $ui_factory
 
Renderer $ui_renderer
 
ilCtrlInterface $ctrl
 
ilToolbarGUI $toolbar
 
ilLogger $logger
 
ILIAS DI UIServices $ui
 
ilLanguage $lng
 
ilObjUser $user
 
ilTemplate $tpl
 
ilGlobalTemplateInterface $main_tpl
 
ilComponentFactory $component_factory
 
ilTabsGUI $tabs_gui
 
RefineryFactory $refinery
 
HttpServices $http
 

Additional Inherited Members

- Data Fields inherited from ilCalendarViewGUI
const CAL_PRESENTATION_UNDEFINED = 0
 
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 42 of file class.ilCalendarInboxGUI.php.

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

43  {
45  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilCalendarInboxGUI::executeCommand ( )

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

References $app, ILIAS\Repository\ctrl(), ilSession\get(), and ilCalendarViewGUI\initAppointmentIdFromQuery().

60  : void
61  {
62  $next_class = $this->ctrl->getNextClass();
63  switch ($next_class) {
64  case 'ilcalendarappointmentgui':
65  $this->ctrl->setReturn($this, '');
66  $this->tabs_gui->setSubTabActive((string) ilSession::get('cal_last_tab'));
67 
68  $app = new ilCalendarAppointmentGUI($this->seed, $this->seed, $this->initAppointmentIdFromQuery());
69  $this->ctrl->forwardCommand($app);
70  break;
71 
72  case 'ilcalendaragendalistgui':
73  $cal_list = new ilCalendarAgendaListGUI($this->seed);
74  $html = $this->ctrl->forwardCommand($cal_list);
75  // this fixes 0027035 since many methods ilCalendarAppointmentGUI set their own content.
76  if (strlen($html)) {
77  $this->main_tpl->setContent($html);
78  }
79  break;
80 
81  default:
82  $cmd = $this->ctrl->getCmd("inbox");
83  $this->$cmd();
84  $this->main_tpl->setContent($this->tpl->get());
85  break;
86  }
87  }
$app
Definition: cli.php:39
static get(string $a_var)
Administrate calendar appointments.
+ Here is the call graph for this function:

◆ inbox()

ilCalendarInboxGUI::inbox ( )
protected

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

References ILIAS\Repository\ctrl().

89  : void
90  {
91  $this->tpl = new ilTemplate('tpl.inbox.html', true, true, 'Services/Calendar');
92 
93  // agenda list
94  $cal_list = new ilCalendarAgendaListGUI($this->seed);
95  $html = $this->ctrl->getHTML($cal_list);
96  $this->tpl->setVariable('CHANGED_TABLE', $html);
97  }
+ Here is the call graph for this function:

◆ initialize()

ilCalendarInboxGUI::initialize ( int  $a_calendar_presentation_type)

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

References ilCalendarUserSettings\_getInstanceByUserId(), and ILIAS\Repository\user().

50  : void
51  {
52  parent::initialize($a_calendar_presentation_type);
53  $this->user_settings = ilCalendarUserSettings::_getInstanceByUserId($this->user->getId());
54  $this->app_colors = new ilCalendarAppointmentColors($this->user->getId());
55  if ($this->user->getTimeZone()) {
56  $this->timezone = $this->user->getTimeZone();
57  }
58  }
static _getInstanceByUserId(int $a_user_id)
+ Here is the call graph for this function:

Field Documentation

◆ $app_colors

ilCalendarAppointmentColors ilCalendarInboxGUI::$app_colors
protected

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

◆ $timezone

string ilCalendarInboxGUI::$timezone = 'UTC'
protected

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

◆ $user_settings

ilCalendarUserSettings ilCalendarInboxGUI::$user_settings
protected

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


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