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/class.ilLPObjectStatisticsTableGUI.php");
79 $lp_table->resetOffset();
80 $lp_table->writeFilterToSession();
86 include_once(
"./Services/Tracking/classes/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/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/class.ilLPObjectStatisticsTableGUI.php");
133 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
138 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
140 $lp_table->resetOffset();
141 $lp_table->writeFilterToSession();
147 include_once(
"./Services/Tracking/classes/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/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/class.ilLPObjectStatisticsTypesTableGUI.php");
192 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
197 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
199 $lp_table->resetOffset();
200 $lp_table->writeFilterToSession();
206 include_once(
"./Services/Tracking/classes/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/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/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/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->setBackTarget($lng->txt(
"back"),
298 $ilCtrl->getLinkTarget($this,
"admin"));
301 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
303 $cgui->setFormAction($ilCtrl->getFormAction($this));
304 $cgui->setHeaderText($lng->txt(
"trac_sure_delete_data"));
305 $cgui->setCancel($lng->txt(
"cancel"),
"admin");
306 $cgui->setConfirm($lng->txt(
"delete"),
"deleteData");
309 foreach (
$_POST[
"item_id"] as $i)
311 $caption = $lng->txt(
"month_".str_pad(substr($i, 5), 2,
"0", STR_PAD_LEFT).
"_long").
312 " ".substr($i, 0, 4);
314 $cgui->addItem(
"item_id[]", $i, $caption);
317 $tpl->setContent($cgui->getHTML());
327 return $this->
admin();
330 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
338 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsLPTableGUI.php");
340 $lp_table->resetOffset();
341 $lp_table->writeFilterToSession();
347 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsLPTableGUI.php");
349 $lp_table->resetOffset();
350 $lp_table->resetFilter();
363 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
365 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsLPTableGUI.php");
370 $lp_table->disable(
"content");
371 $lp_table->disable(
"header");
374 $tpl->setContent($lp_table->getHTML());
387 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
389 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsLPTableGUI.php");
392 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]).$lp_table->getHTML());
397 include_once(
"./Services/Tracking/classes/class.ilLPObjectStatisticsLPTableGUI.php");
400 $a_tpl =
new ilTemplate(
"tpl.lp_object_statistics_lp_details.html",
true,
true,
"Services/Tracking");
401 $a_tpl->setVariable(
"CONTENT", $lp_table->getHTML());
403 $a_tpl->setVariable(
'CLOSE_IMG_TXT', $this->lng->txt(
'close'));
412 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
417 if($a_show_link && $ilAccess->checkAccess(
"write",
"", $this->ref_id))
419 $link =
" <a href=\"".$ilCtrl->getLinkTarget($this,
"admin").
"\">»".
420 $lng->txt(
"trac_log_info_link").
"</a>";
423 ilUtil::sendInfo(sprintf($lng->txt(
"trac_log_info"), $info_date, $info[
"counter"]).$link);