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);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getSharedCalendarsForUser($a_usr_id=0)
get shared calendars of user
static _getInstanceByUserId($a_user_id)
get singleton instance
Stores status (accepted/declined) of shared calendars.
executeCommand()
Execute command.
__construct(ilDate $seed_date)
Constructor.
Show shared calendars for a specific user.
special template class to simplify handling of ITX/PEAR
declineShared()
accept shared calendar
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
acceptShared()
accept shared calendar
Administrate calendar appointments.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static isSharedWithUser($a_usr_id, $a_calendar_id)
is shared with user
Represents a list of calendar appointments (including recurring events) for a specific user in a give...