5 include_once
"Services/Tracking/classes/class.ilLearningProgressBaseGUI.php";
35 $this->tabs_gui->addSubTab(
'trac_object_stat_access',
36 $this->lng->txt(
'trac_object_stat_access'),
37 $this->ctrl->getLinkTarget($this,
'accessFilter'));
38 $this->tabs_gui->addSubTab(
'trac_object_stat_daily',
39 $this->lng->txt(
'trac_object_stat_daily'),
40 $this->ctrl->getLinkTarget($this,
'dailyFilter'));
41 $this->tabs_gui->addSubTab(
'trac_object_stat_lp',
42 $this->lng->txt(
'trac_object_stat_lp'),
43 $this->ctrl->getLinkTarget($this,
'learningProgressFilter'));
44 $this->tabs_gui->addSubTab(
'trac_object_stat_types',
45 $this->lng->txt(
'trac_object_stat_types'),
46 $this->ctrl->getLinkTarget($this,
'typesFilter'));
48 if($ilAccess->checkAccess(
"write",
"", $this->ref_id))
50 $this->tabs_gui->addSubTab(
'trac_object_stat_admin',
51 $this->lng->txt(
'trac_object_stat_admin'),
52 $this->ctrl->getLinkTarget($this,
'admin'));
61 $this->ctrl->setReturn($this,
"");
65 switch($this->ctrl->getNextClass())
77 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
79 $lp_table->resetOffset();
80 $lp_table->writeFilterToSession();
86 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
88 $lp_table->resetOffset();
89 $lp_table->resetFilter();
102 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
106 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
111 $lp_table->disable(
"content");
112 $lp_table->disable(
"header");
115 $tpl->setContent($lp_table->getHTML());
128 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
130 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
133 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
138 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
140 $lp_table->resetOffset();
141 $lp_table->writeFilterToSession();
147 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
149 $lp_table->resetOffset();
150 $lp_table->resetFilter();
163 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
165 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
170 $lp_table->disable(
"content");
171 $lp_table->disable(
"header");
174 $tpl->setContent($lp_table->getHTML());
184 return $this->
types();
187 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
189 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
192 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
197 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
199 $lp_table->resetOffset();
200 $lp_table->writeFilterToSession();
206 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
208 $lp_table->resetOffset();
209 $lp_table->resetFilter();
222 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
226 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
231 $lp_table->disable(
"content");
232 $lp_table->disable(
"header");
235 $tpl->setContent($lp_table->getHTML());
245 return $this->
daily();
248 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
250 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
253 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
260 $this->tabs_gui->activateSubTab(
'trac_object_stat_admin');
264 $ilToolbar->addButton($lng->txt(
"trac_sync_obj_stats"),
265 $ilCtrl->getLinkTarget($this,
"adminSync"));
267 if($ilAccess->checkAccess(
"delete",
"", $this->ref_id))
269 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
272 $tpl->setContent($lp_table->getHTML());
280 include_once
"Services/Tracking/classes/class.ilChangeEvent.php";
284 $ilCtrl->redirect($this,
"admin");
294 return $this->
admin();
297 $ilTabs->clearTargets();
298 $ilTabs->setBackTarget($lng->txt(
"back"),
299 $ilCtrl->getLinkTarget($this,
"admin"));
302 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
304 $cgui->setFormAction($ilCtrl->getFormAction($this));
305 $cgui->setHeaderText($lng->txt(
"trac_sure_delete_data"));
306 $cgui->setCancel($lng->txt(
"cancel"),
"admin");
307 $cgui->setConfirm($lng->txt(
"delete"),
"deleteData");
310 foreach (
$_POST[
"item_id"] as $i)
312 $caption = $lng->txt(
"month_".str_pad(substr($i, 5), 2,
"0", STR_PAD_LEFT).
"_long").
313 " ".substr($i, 0, 4);
315 $cgui->addItem(
"item_id[]", $i, $caption);
318 $tpl->setContent($cgui->getHTML());
328 return $this->
admin();
331 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
339 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
341 $lp_table->resetOffset();
342 $lp_table->writeFilterToSession();
348 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
350 $lp_table->resetOffset();
351 $lp_table->resetFilter();
364 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
366 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
371 $lp_table->disable(
"content");
372 $lp_table->disable(
"header");
375 $tpl->setContent($lp_table->getHTML());
388 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
390 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
393 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
398 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
401 $a_tpl =
new ilTemplate(
"tpl.lp_object_statistics_lp_details.html",
true,
true,
"Services/Tracking");
402 $a_tpl->setVariable(
"CONTENT", $lp_table->getHTML());
404 $a_tpl->setVariable(
'CLOSE_IMG_TXT', $this->lng->txt(
'close'));
413 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
418 if($a_show_link && $ilAccess->checkAccess(
"write",
"", $this->ref_id))
420 $link =
" <a href=\"".$ilCtrl->getLinkTarget($this,
"admin").
"\">»".
421 $lng->txt(
"trac_log_info_link").
"</a>";
424 ilUtil::sendInfo(sprintf($lng->txt(
"trac_log_info"), $info_date, $info[
"counter"]).$link);