5 include_once
"Services/Tracking/classes/class.ilLearningProgressBaseGUI.php";
23 parent::__construct($a_mode, $a_ref_id);
26 $this->ref_id = (int) $_REQUEST[
"ref_id"];
34 $this->tabs_gui->addSubTab(
35 'trac_object_stat_access',
36 $this->lng->txt(
'trac_object_stat_access'),
37 $this->ctrl->getLinkTarget($this,
'accessFilter')
39 $this->tabs_gui->addSubTab(
40 'trac_object_stat_daily',
41 $this->lng->txt(
'trac_object_stat_daily'),
42 $this->ctrl->getLinkTarget($this,
'dailyFilter')
44 $this->tabs_gui->addSubTab(
45 'trac_object_stat_lp',
46 $this->lng->txt(
'trac_object_stat_lp'),
47 $this->ctrl->getLinkTarget($this,
'learningProgressFilter')
49 $this->tabs_gui->addSubTab(
50 'trac_object_stat_types',
51 $this->lng->txt(
'trac_object_stat_types'),
52 $this->ctrl->getLinkTarget($this,
'typesFilter')
55 if ($ilAccess->checkAccess(
"write",
"", $this->ref_id)) {
56 $this->tabs_gui->addSubTab(
57 'trac_object_stat_admin',
58 $this->lng->txt(
'trac_object_stat_admin'),
59 $this->ctrl->getLinkTarget($this,
'admin')
69 $this->ctrl->setReturn($this,
"");
73 switch ($this->ctrl->getNextClass()) {
84 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
86 $lp_table->resetOffset();
87 $lp_table->writeFilterToSession();
93 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
95 $lp_table->resetOffset();
96 $lp_table->resetFilter();
105 public function access($a_load_data =
true)
109 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
113 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
117 $lp_table->disable(
"content");
118 $lp_table->disable(
"header");
121 $tpl->setContent($lp_table->getHTML());
133 $this->tabs_gui->activateSubTab(
'trac_object_stat_access');
135 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
138 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]) . $lp_table->getHTML());
143 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
145 $lp_table->resetOffset();
146 $lp_table->writeFilterToSession();
152 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
154 $lp_table->resetOffset();
155 $lp_table->resetFilter();
164 public function types($a_load_data =
true)
168 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
172 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
176 $lp_table->disable(
"content");
177 $lp_table->disable(
"header");
180 $tpl->setContent($lp_table->getHTML());
189 return $this->
types();
192 $this->tabs_gui->activateSubTab(
'trac_object_stat_types');
194 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
197 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]) . $lp_table->getHTML());
202 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
204 $lp_table->resetOffset();
205 $lp_table->writeFilterToSession();
211 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
213 $lp_table->resetOffset();
214 $lp_table->resetFilter();
223 public function daily($a_load_data =
true)
227 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
231 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
235 $lp_table->disable(
"content");
236 $lp_table->disable(
"header");
239 $tpl->setContent($lp_table->getHTML());
248 return $this->
daily();
251 $this->tabs_gui->activateSubTab(
'trac_object_stat_daily');
253 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
256 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]) . $lp_table->getHTML());
263 $this->tabs_gui->activateSubTab(
'trac_object_stat_admin');
267 $ilToolbar->addButton(
268 $lng->txt(
"trac_sync_obj_stats"),
269 $ilCtrl->getLinkTarget($this,
"adminSync")
272 if ($ilAccess->checkAccess(
"delete",
"", $this->ref_id)) {
273 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
276 $tpl->setContent($lp_table->getHTML());
284 include_once
"Services/Tracking/classes/class.ilChangeEvent.php";
288 $ilCtrl->redirect($this,
"admin");
297 return $this->
admin();
300 $ilTabs->clearTargets();
301 $ilTabs->setBackTarget(
303 $ilCtrl->getLinkTarget($this,
"admin")
307 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
309 $cgui->setFormAction($ilCtrl->getFormAction($this));
310 $cgui->setHeaderText($lng->txt(
"trac_sure_delete_data"));
311 $cgui->setCancel($lng->txt(
"cancel"),
"admin");
312 $cgui->setConfirm($lng->txt(
"delete"),
"deleteData");
316 $caption = $lng->txt(
"month_" . str_pad(substr($i, 5), 2,
"0", STR_PAD_LEFT) .
"_long") .
317 " " . substr($i, 0, 4);
319 $cgui->addItem(
"item_id[]", $i, $caption);
322 $tpl->setContent($cgui->getHTML());
331 return $this->
admin();
334 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
342 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
344 $lp_table->resetOffset();
345 $lp_table->writeFilterToSession();
351 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
353 $lp_table->resetOffset();
354 $lp_table->resetFilter();
367 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
371 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());
391 $this->tabs_gui->activateSubTab(
'trac_object_stat_lp');
393 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
396 $tpl->setContent($lp_table->getGraph(
$_POST[
"item_id"]) . $lp_table->getHTML());
401 include_once(
"./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
404 $a_tpl =
new ilTemplate(
"tpl.lp_object_statistics_lp_details.html",
true,
true,
"Services/Tracking");
405 $a_tpl->setVariable(
"CONTENT", $lp_table->getHTML());
406 $a_tpl->setVariable(
'CLOSE_IMG_TXT', $this->lng->txt(
'close'));
415 include_once
"Services/Tracking/classes/class.ilTrQuery.php";
420 if ($a_show_link && $ilAccess->checkAccess(
"write",
"", $this->ref_id)) {
421 $link =
" <a href=\"" . $ilCtrl->getLinkTarget($this,
"admin") .
"\">»" .
422 $lng->txt(
"trac_log_info_link") .
"</a>";
432 include_once
"Services/Cron/classes/class.ilCronManager.php";
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
access($a_load_data=true)
applyLearningProgressFilter()
showLearningProgressDetails()
resetLearningProgressFilter()
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
static deleteObjectStatistics(array $a_months)
TableGUI class for learning progress.
TableGUI class for learning progress.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
special template class to simplify handling of ITX/PEAR
TableGUI class for learning progress.
Create styles array
The data for the language used.
learningProgress($a_load_data=true)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
executeCommand()
execute command
__construct($a_mode, $a_ref_id=0)
TableGUI class for learning progress.
TableGUI class for learning progress.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static _syncObjectStats($a_now=null, $a_minimum=20000)
Process object statistics log data.
static isJobActive($a_job_id)
Check if given job is currently active.
showAggregationInfo($a_show_link=true)
showLearningProgressGraph()
static getObjectStatisticsLogInfo()
Get last update info for object statistics.
Confirmation screen class.