24 include_once
'./Services/Calendar/classes/class.ilCalendarSettings.php';
58 $this->lng->loadLanguageModule(
'dateplaner');
61 $this->tabs_gui = $ilTabs;
64 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
67 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
90 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
103 case 'ilcalendarinboxgui':
104 $this->tabs_gui->activateTab(
'app_inbox');
108 case 'ilconsultationhoursgui':
109 $this->tabs_gui->activateTab(
'app_consultation_hours');
110 $this->tabs_gui->clearTargets();
113 $this->tabs_gui->setBackTarget(
114 $this->lng->txt(
'cal_back_to_cal'),
118 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHoursGUI.php';
120 $this->ctrl->forwardCommand($gui);
123 case 'ilcalendarmonthgui':
124 $this->tabs_gui->activateTab(
'app_month');
128 case 'ilcalendarweekgui':
129 $this->tabs_gui->activateTab(
'app_week');
133 case 'ilcalendardaygui':
134 $this->tabs_gui->activateTab(
'app_day');
138 case 'ilcalendarusersettingsgui':
139 $this->ctrl->setReturn($this,
'');
140 $this->tabs_gui->activateTab(
'properties');
143 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettingsGUI.php');
145 $this->ctrl->forwardCommand($user_settings);
149 case 'ilcalendarappointmentgui':
150 $this->ctrl->setReturn($this,
'');
151 $this->tabs_gui->activateTab(
$_SESSION[
'cal_last_tab']);
153 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
155 $this->ctrl->forwardCommand($app);
158 case 'ilcalendarcategorygui':
159 $this->ctrl->setReturn($this,
'');
161 include_once(
'Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
163 if($this->ctrl->forwardCommand($category))
165 $this->tabs_gui->activateTab(
"cal_manage");
172 $this->tabs_gui->activateTab(
$_SESSION[
'cal_last_tab']);
177 $cmd = $this->ctrl->getCmd(
"show");
197 if(strlen($next_class = $this->ctrl->getNextClass()))
201 if($this->ctrl->getCmdClass() == strtolower(get_class($this)) or $this->ctrl->getCmdClass() ==
'')
215 return $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarinboxgui';
224 if($this->ctrl->getCmdClass() == strtolower(get_class($this)))
226 $this->ctrl->setCmdClass(strtolower($a_class));
242 case 'ilcalendarmonthgui':
243 $ilUser->writePref(
'cal_last_class',$a_class);
246 include_once(
'./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
248 $this->ctrl->forwardCommand($month_gui);
251 case 'ilcalendarweekgui':
252 $ilUser->writePref(
'cal_last_class',$a_class);
255 include_once(
'./Services/Calendar/classes/class.ilCalendarWeekGUI.php');
257 $this->ctrl->forwardCommand($week_gui);
260 case 'ilcalendardaygui':
261 $ilUser->writePref(
'cal_last_class',$a_class);
264 include_once(
'./Services/Calendar/classes/class.ilCalendarDayGUI.php');
266 $this->ctrl->forwardCommand($day_gui);
269 case 'ilcalendarinboxgui':
270 $ilUser->writePref(
'cal_last_class',$a_class);
273 include_once(
'./Services/Calendar/classes/class.ilCalendarInboxGUI.php');
274 $inbox_gui =
new ilCalendarinboxGUI($this->seed);
275 $this->ctrl->forwardCommand($inbox_gui);
292 $this->ctrl->setCmd(
'');
293 $history = $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarmonthgui';
308 $tpl =
new ilTemplate(
'tpl.cal_side_block.html',
true,
true,
'Services/Calendar');
310 include_once(
'./Services/Calendar/classes/class.ilMiniCalendarGUI.php');
313 $tpl->setVariable(
'MINICAL',$mini->getHTML());
315 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
317 $tpl->setVariable(
'CATEGORIES',$cat->getHTML());
319 $this->tpl->setLeftContent(
$tpl->get());
345 $this->tabs_gui->addTarget(
'app_inbox',$this->ctrl->getLinkTargetByClass(
'ilCalendarInboxGUI',
''));
352 $this->tabs_gui->addTarget(
'app_consultation_hours',$this->ctrl->getLinkTargetByClass(
'ilConsultationHoursGUI',
''));
354 $this->tabs_gui->addTarget(
'app_day',$this->ctrl->getLinkTargetByClass(
'ilCalendarDayGUI',
''));
355 $this->tabs_gui->addTarget(
'app_week',$this->ctrl->getLinkTargetByClass(
'ilCalendarWeekGUI',
''));
356 $this->tabs_gui->addTarget(
'app_month',$this->ctrl->getLinkTargetByClass(
'ilCalendarMonthGUI',
''));
357 $this->tabs_gui->addTarget(
'cal_manage',$this->ctrl->getLinkTargetByClass(
'ilCalendarCategoryGUI',
'manage'));
358 $this->tabs_gui->addTarget(
'properties',$this->ctrl->getLinkTargetByClass(
'ilCalendarUserSettingsGUI',
''));
368 include_once(
'Services/Calendar/classes/class.ilDate.php');
371 $this->ctrl->saveParameter($this,array(
'seed'));