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');
167 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
172 $lp_table->disable(
"content");
173 $lp_table->disable(
"header");
176 $tpl->setContent($lp_table->getHTML());
186 return $this->
types();
189 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
191 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
194 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
199 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
201 $lp_table->resetOffset();
202 $lp_table->writeFilterToSession();
208 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
210 $lp_table->resetOffset();
211 $lp_table->resetFilter();
224 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
228 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
233 $lp_table->disable(
"content");
234 $lp_table->disable(
"header");
237 $tpl->setContent($lp_table->getHTML());
247 return $this->
daily();
250 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
252 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
255 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
262 $this->tabs_gui->activateSubTab(
'trac_object_stat_admin');
266 $ilToolbar->addButton($lng->txt(
"trac_sync_obj_stats"),
267 $ilCtrl->getLinkTarget($this,
"adminSync"));
269 if($ilAccess->checkAccess(
"delete",
"", $this->ref_id))
271 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
274 $tpl->setContent($lp_table->getHTML());
282 include_once
"Services/Tracking/classes/class.ilChangeEvent.php";
286 $ilCtrl->redirect($this,
"admin");
296 return $this->
admin();
299 $ilTabs->clearTargets();
300 $ilTabs->setBackTarget($lng->txt(
"back"),
301 $ilCtrl->getLinkTarget($this,
"admin"));
304 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
306 $cgui->setFormAction($ilCtrl->getFormAction($this));
307 $cgui->setHeaderText($lng->txt(
"trac_sure_delete_data"));
308 $cgui->setCancel($lng->txt(
"cancel"),
"admin");
309 $cgui->setConfirm($lng->txt(
"delete"),
"deleteData");
312 foreach (
$_POST[
"item_id"] as $i)
314 $caption = $lng->txt(
"month_".str_pad(substr($i, 5), 2,
"0", STR_PAD_LEFT).
"_long").
315 " ".substr($i, 0, 4);
317 $cgui->addItem(
"item_id[]", $i, $caption);
320 $tpl->setContent($cgui->getHTML());
330 return $this->
admin();
333 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
341 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
343 $lp_table->resetOffset();
344 $lp_table->writeFilterToSession();
350 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
352 $lp_table->resetOffset();
353 $lp_table->resetFilter();
366 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
370 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
375 $lp_table->disable(
"content");
376 $lp_table->disable(
"header");
379 $tpl->setContent($lp_table->getHTML());
392 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
394 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
397 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
402 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
405 $a_tpl =
new ilTemplate(
"tpl.lp_object_statistics_lp_details.html",
true,
true,
"Services/Tracking");
406 $a_tpl->setVariable(
"CONTENT", $lp_table->getHTML());
407 $a_tpl->setVariable(
'CLOSE_IMG_TXT', $this->lng->txt(
'close'));
416 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
421 if($a_show_link && $ilAccess->checkAccess(
"write",
"", $this->ref_id))
423 $link =
" <a href=\"".$ilCtrl->getLinkTarget($this,
"admin").
"\">»".
424 $lng->txt(
"trac_log_info_link").
"</a>";
427 ilUtil::sendInfo(sprintf($lng->txt(
"trac_log_info"), $info_date, $info[
"counter"]).$link);
434 include_once
"Services/Cron/classes/class.ilCronManager.php";