56 $this->lng->loadLanguageModule(
'dateplaner');
59 $this->tabs_gui = $ilTabs;
62 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
65 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
88 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
101 case 'ilcalendarinboxgui':
102 $this->tabs_gui->setSubTabActive(
'app_inbox');
106 case 'ilcalendarmonthgui':
107 $this->tabs_gui->setSubTabActive(
'app_month');
111 case 'ilcalendarweekgui':
112 $this->tabs_gui->setSubTabActive(
'app_week');
116 case 'ilcalendardaygui':
117 $this->tabs_gui->setSubTabActive(
'app_day');
121 case 'ilcalendarusersettingsgui':
122 $this->ctrl->setReturn($this,
'');
123 $this->tabs_gui->setSubTabActive(
'properties');
126 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettingsGUI.php');
128 $this->ctrl->forwardCommand($user_settings);
131 case 'ilcalendarappointmentgui':
132 $this->ctrl->setReturn($this,
'');
133 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
135 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
137 $this->ctrl->forwardCommand($app);
140 case 'ilcalendarcategorygui':
141 $this->ctrl->setReturn($this,
'');
142 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
144 include_once(
'Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
146 $this->ctrl->forwardCommand($category);
150 $cmd = $this->ctrl->getCmd(
"show");
169 if(strlen($next_class = $this->ctrl->getNextClass()))
173 if($this->ctrl->getCmdClass() == strtolower(get_class($this)) or $this->ctrl->getCmdClass() ==
'')
175 return $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarinboxgui';
184 if($this->ctrl->getCmdClass() == strtolower(get_class($this)))
186 $this->ctrl->setCmdClass(strtolower($a_class));
200 $ilUser->writePref(
'cal_last_class',$a_class);
203 case 'ilcalendarmonthgui':
206 include_once(
'./Services/Calendar/classes/class.ilCalendarMonthGUI.php');
208 $this->ctrl->forwardCommand($month_gui);
211 case 'ilcalendarweekgui':
214 include_once(
'./Services/Calendar/classes/class.ilCalendarWeekGUI.php');
216 $this->ctrl->forwardCommand($week_gui);
219 case 'ilcalendardaygui':
222 include_once(
'./Services/Calendar/classes/class.ilCalendarDayGUI.php');
224 $this->ctrl->forwardCommand($day_gui);
227 case 'ilcalendarinboxgui':
230 include_once(
'./Services/Calendar/classes/class.ilCalendarInboxGUI.php');
231 $inbox_gui =
new ilCalendarinboxGUI($this->seed);
232 $this->ctrl->forwardCommand($inbox_gui);
249 $this->ctrl->setCmd(
'');
250 $history = $ilUser->getPref(
'cal_last_class') ? $ilUser->getPref(
'cal_last_class') :
'ilcalendarmonthgui';
265 $tpl =
new ilTemplate(
'tpl.cal_side_block.html',
true,
true,
'Services/Calendar');
267 include_once(
'./Services/Calendar/classes/class.ilMiniCalendarGUI.php');
270 $tpl->setVariable(
'MINICAL',$mini->getHTML());
272 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryGUI.php');
274 $tpl->setVariable(
'CATEGORIES',$cat->getHTML());
276 $this->tpl->setLeftContent(
$tpl->get());
300 $this->tabs_gui->addSubTabTarget(
'app_inbox',$this->ctrl->getLinkTargetByClass(
'ilCalendarInboxGUI',
''));
301 $this->tabs_gui->addSubTabTarget(
'app_day',$this->ctrl->getLinkTargetByClass(
'ilCalendarDayGUI',
''));
302 $this->tabs_gui->addSubTabTarget(
'app_week',$this->ctrl->getLinkTargetByClass(
'ilCalendarWeekGUI',
''));
303 $this->tabs_gui->addSubTabTarget(
'app_month',$this->ctrl->getLinkTargetByClass(
'ilCalendarMonthGUI',
''));
304 $this->tabs_gui->addSubTabTarget(
'properties',$this->ctrl->getLinkTargetByClass(
'ilCalendarUserSettingsGUI',
''));
314 include_once(
'Services/Calendar/classes/class.ilDate.php');
317 $this->ctrl->saveParameter($this,array(
'seed'));