55 $this->lng->loadLanguageModule(
'dateplaner');
58 $this->tabs_gui = $ilTabs;
61 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
79 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
92 case 'ilcalendarinboxgui':
93 $this->tabs_gui->setSubTabActive(
'app_inbox');
97 case 'ilcalendarmonthgui':
98 $this->tabs_gui->setSubTabActive(
'app_month');
102 case 'ilcalendarweekgui':
103 $this->tabs_gui->setSubTabActive(
'app_week');
107 case 'ilcalendardaygui':
108 $this->tabs_gui->setSubTabActive(
'app_day');
112 case 'ilcalendarusersettingsgui':
113 $this->ctrl->setReturn($this,
'');
114 $this->tabs_gui->setSubTabActive(
'properties');
117 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettingsGUI.php');
119 $this->ctrl->forwardCommand($user_settings);
122 case 'ilcalendarappointmentgui':
123 $this->ctrl->setReturn($this,
'');
124 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
126 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
128 $this->ctrl->forwardCommand($app);
131 case 'ilcalendarcategorygui':
132 $this->ctrl->setReturn($this,
'');
133 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
135 include_once(
'Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
137 $this->ctrl->forwardCommand($category);
141 $cmd = $this->ctrl->getCmd(
"show");
160 if(strlen($next_class = $this->ctrl->getNextClass()))
164 if($this->ctrl->getCmdClass() == strtolower(get_class($this)) or $this->ctrl->getCmdClass() ==
'')
166 return $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarinboxgui';
175 if($this->ctrl->getCmdClass() == strtolower(get_class($this)))
177 $this->ctrl->setCmdClass(strtolower($a_class));
191 $ilUser->writePref(
'cal_last_class',$a_class);
194 case 'ilcalendarmonthgui':
197 include_once(
'./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
199 $this->ctrl->forwardCommand($month_gui);
202 case 'ilcalendarweekgui':
205 include_once(
'./Services/Calendar/classes/class.ilCalendarWeekGUI.php');
207 $this->ctrl->forwardCommand($week_gui);
210 case 'ilcalendardaygui':
213 include_once(
'./Services/Calendar/classes/class.ilCalendarDayGUI.php');
215 $this->ctrl->forwardCommand($day_gui);
218 case 'ilcalendarinboxgui':
221 include_once(
'./Services/Calendar/classes/class.ilCalendarInboxGUI.php');
222 $inbox_gui =
new ilCalendarinboxGUI($this->seed);
223 $this->ctrl->forwardCommand($inbox_gui);
240 $this->ctrl->setCmd(
'');
241 $history = $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarmonthgui';
256 $tpl =
new ilTemplate(
'tpl.cal_side_block.html',
true,
true,
'Services/Calendar');
258 include_once(
'./Services/Calendar/classes/class.ilMiniCalendarGUI.php');
261 $tpl->setVariable(
'MINICAL',$mini->getHTML());
263 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
265 $tpl->setVariable(
'CATEGORIES',$cat->getHTML());
267 $this->tpl->setLeftContent(
$tpl->get());
291 $this->tabs_gui->addSubTabTarget(
'app_inbox',$this->ctrl->getLinkTargetByClass(
'ilCalendarInboxGUI',
''));
292 $this->tabs_gui->addSubTabTarget(
'app_day',$this->ctrl->getLinkTargetByClass(
'ilCalendarDayGUI',
''));
293 $this->tabs_gui->addSubTabTarget(
'app_week',$this->ctrl->getLinkTargetByClass(
'ilCalendarWeekGUI',
''));
294 $this->tabs_gui->addSubTabTarget(
'app_month',$this->ctrl->getLinkTargetByClass(
'ilCalendarMonthGUI',
''));
295 $this->tabs_gui->addSubTabTarget(
'properties',$this->ctrl->getLinkTargetByClass(
'ilCalendarUserSettingsGUI',
''));
305 include_once(
'Services/Calendar/classes/class.ilDate.php');
308 $this->ctrl->saveParameter($this,array(
'seed'));