24 include_once(
'Services/Calendar/classes/class.ilDate.php');
25 include_once(
'Services/Calendar/classes/class.ilCalendarHeaderNavigationGUI.php');
26 include_once(
'Services/Calendar/classes/class.ilCalendarUserSettings.php');
27 include_once(
'Services/Calendar/classes/class.ilCalendarAppointmentColors.php');
28 include_once(
'./Services/Calendar/classes/class.ilCalendarSchedule.php');
64 $this->seed = $seed_date;
69 $this->tabs_gui = $ilTabs;
74 $this->timezone = $ilUser->getTimeZone();
87 $next_class = $ilCtrl->getNextClass();
90 case 'ilcalendarappointmentgui':
91 $this->ctrl->setReturn($this,
'');
92 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
94 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
96 $this->ctrl->forwardCommand($app);
100 $cmd = $this->ctrl->getCmd(
"inbox");
102 $tpl->setContent($this->tpl->get());
119 $this->tpl =
new ilTemplate(
'tpl.inbox.html',
true,
true,
'Services/Calendar');
122 include_once(
'./Services/Calendar/classes/class.ilCalendarInboxSharedTableGUI.php');
123 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
130 $this->tpl->setVariable(
'SHARED_CAL_TABLE',$table->getHTML());
133 include_once(
'./Services/Calendar/classes/class.ilCalendarChangedAppointmentsTableGUI.php');
138 $schedule->setEventsLimit($table_gui->getLimit());
139 $schedule->addSubitemCalendars(
true);
140 $schedule->calculate();
142 if(isset(
$_GET[
'changed']))
144 $title = $this->lng->txt(
'cal_changed_events_header');
145 $events = $schedule->getChangedEvents(
true);
147 $ilCtrl->setParameter($this,
'changed', 1);
152 $title = $this->lng->txt(
'cal_upcoming_events_header');
154 $events = $schedule->getScheduledEvents();
157 $table_gui->setTitle($title);
158 $table_gui->setAppointments($events);
160 $this->tpl->setVariable(
'CHANGED_TABLE',$table_gui->getHTML());
181 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
184 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
185 foreach(
$_POST[
'cal_ids'] as $calendar_id)
193 $status->accept($calendar_id);
198 $this->ctrl->redirect($this,
'inbox');
219 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
222 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
223 foreach(
$_POST[
'cal_ids'] as $calendar_id)
231 $status->decline($calendar_id);