5 include_once
"Services/Tracking/classes/class.ilLearningProgressBaseGUI.php";
28 $this->tabs_gui->addSubTab(
'trac_object_stat_access',
29 $this->lng->txt(
'trac_object_stat_access'),
30 $this->ctrl->getLinkTarget($this,
'access'));
31 $this->tabs_gui->addSubTab(
'trac_object_stat_daily',
32 $this->lng->txt(
'trac_object_stat_daily'),
33 $this->ctrl->getLinkTarget($this,
'daily'));
34 $this->tabs_gui->addSubTab(
'trac_object_stat_types',
35 $this->lng->txt(
'trac_object_stat_types'),
36 $this->ctrl->getLinkTarget($this,
'types'));
37 $this->tabs_gui->addSubTab(
'trac_object_stat_admin',
38 $this->lng->txt(
'trac_object_stat_admin'),
39 $this->ctrl->getLinkTarget($this,
'admin'));
47 $this->ctrl->setReturn($this,
"");
51 switch($this->ctrl->getNextClass())
63 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
65 $lp_table->resetOffset();
66 $lp_table->writeFilterToSession();
72 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
74 $lp_table->resetOffset();
75 $lp_table->resetFilter();
83 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
85 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
88 $tpl->setContent($lp_table->getHTML());
101 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
103 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
106 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
111 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
113 $lp_table->resetOffset();
114 $lp_table->writeFilterToSession();
120 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
122 $lp_table->resetOffset();
123 $lp_table->resetFilter();
131 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
133 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
136 $tpl->setContent($lp_table->getHTML());
146 return $this->
types();
149 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
151 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
154 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
159 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
161 $lp_table->resetOffset();
162 $lp_table->writeFilterToSession();
168 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
170 $lp_table->resetOffset();
171 $lp_table->resetFilter();
179 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
181 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
184 $tpl->setContent($lp_table->getHTML());
194 return $this->
daily();
197 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
199 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
202 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
209 $this->tabs_gui->activateSubTab(
'trac_object_stat_admin');
211 $ilToolbar->addButton($lng->txt(
"trac_sync_obj_stats"),
212 $ilCtrl->getLinkTarget($this,
"adminSync"));
214 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsAdminTableGUI.php");
217 $tpl->setContent($lp_table->getHTML());
224 include_once
"Services/Tracking/classes/class.ilChangeEvent.php";
228 $ilCtrl->redirect($this,
"admin");
238 return $this->
admin();
241 $ilTabs->setBackTarget($lng->txt(
"back"),
242 $ilCtrl->getLinkTarget($this,
"admin"));
245 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
247 $cgui->setFormAction($ilCtrl->getFormAction($this));
248 $cgui->setHeaderText($lng->txt(
"trac_sure_delete_data"));
249 $cgui->setCancel($lng->txt(
"cancel"),
"admin");
250 $cgui->setConfirm($lng->txt(
"delete"),
"deleteData");
253 foreach (
$_POST[
"item_id"] as $i)
255 $caption = $lng->txt(
"month_".str_pad(substr($i, 5), 2,
"0", STR_PAD_LEFT).
"_long").
256 " ".substr($i, 0, 4);
258 $cgui->addItem(
"item_id[]", $i, $caption);
261 $tpl->setContent($cgui->getHTML());
271 return $this->
admin();
274 include_once
"Services/Tracking/classes/class.ilTrQuery.php";