ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilLPObjectStatisticsGUI Class Reference
+ Inheritance diagram for ilLPObjectStatisticsGUI:
+ Collaboration diagram for ilLPObjectStatisticsGUI:

Public Member Functions

 __construct ($a_mode, $a_ref_id=0)
 
 executeCommand ()
 execute command More...
 
 applyAccessFilter ()
 
 resetAccessFilter ()
 
 accessFilter ()
 
 access ($a_load_data=true)
 
 showAccessGraph ()
 
 applyTypesFilter ()
 
 resetTypesFilter ()
 
 typesFilter ()
 
 types ($a_load_data=true)
 
 showTypesGraph ()
 
 applyDailyFilter ()
 
 resetDailyFilter ()
 
 dailyFilter ()
 
 daily ($a_load_data=true)
 
 showDailyGraph ()
 
 admin ()
 
 adminSync ()
 
 confirmDeleteData ()
 
 deleteData ()
 
 applyLearningProgressFilter ()
 
 resetLearningProgressFilter ()
 
 learningProgressFilter ()
 
 learningProgress ($a_load_data=true)
 
 showLearningProgressGraph ()
 
 showLearningProgressDetails ()
 
- Public Member Functions inherited from ilLearningProgressBaseGUI
 __construct ($a_mode, $a_ref_id=0, $a_usr_id=0)
 
 isAnonymized ()
 
 getMode ()
 
 getRefId ()
 
 getObjId ()
 
 getUserId ()
 
 __getDefaultCommand ()
 
 __setSubTabs ($a_active)
 
 __buildFooter ()
 
 __buildHeader ()
 
 __insertPath (&$a_tpl, $a_ref_id)
 insert path More...
 
 __showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
 
__initTableGUI ()
 
 __showObjectDetails (&$info, $item_id=0, $add_section=true)
 show details about current object. More...
 
 __appendUserInfo (&$info, $a_user)
 
 __appendLPDetails (&$info, $item_id, $user_id)
 
 __sort ($a_ids, $a_table, $a_field, $a_id_name)
 Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname. More...
 
 __getPercent ($max, $reached)
 
 __readItemStatusInfo ($a_items)
 
 __getLegendHTML ()
 
 __showEditUser ($a_user_id, $a_ref_id, $a_cancel, $a_sub_id=false)
 
 __updateUser ($user_id, $obj_id)
 

Protected Member Functions

 setTabs ()
 
 showAggregationInfo ($a_show_link=true)
 
 showCronJobInfo ()
 
- Protected Member Functions inherited from ilLearningProgressBaseGUI
 initEditUserForm ($a_user_id, $a_obj_id, $a_cancel=null)
 

Protected Attributes

 $dic
 
- Protected Attributes inherited from ilLearningProgressBaseGUI
 $anonymized
 
 $logger
 
 $tabs_gui
 

Additional Inherited Members

- Static Public Member Functions inherited from ilLearningProgressBaseGUI
static _showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
 
static _getImagePathForStatus ($a_status)
 Get image path for status. More...
 
static _getStatusText ($a_status, $a_lng=null)
 Get status alt text. More...
 
static __readStatus ($a_obj_id, $user_id)
 
static isObjectOffline ($a_obj_id, $a_type=null)
 
- Data Fields inherited from ilLearningProgressBaseGUI
 $tpl = null
 
 $ctrl = null
 
 $lng = null
 
 $ref_id = 0
 
 $mode = 0
 
const LP_CONTEXT_PERSONAL_DESKTOP = 1
 
const LP_CONTEXT_ADMINISTRATION = 2
 
const LP_CONTEXT_REPOSITORY = 3
 
const LP_CONTEXT_USER_FOLDER = 4
 
const LP_CONTEXT_ORG_UNIT = 5
 
const LP_ACTIVE_SETTINGS = 1
 
const LP_ACTIVE_OBJECTS = 2
 
const LP_ACTIVE_PROGRESS = 3
 
const LP_ACTIVE_USERS = 5
 
const LP_ACTIVE_SUMMARY = 6
 
const LP_ACTIVE_OBJSTATACCESS = 7
 
const LP_ACTIVE_OBJSTATTYPES = 8
 
const LP_ACTIVE_OBJSTATDAILY = 9
 
const LP_ACTIVE_OBJSTATADMIN = 10
 
const LP_ACTIVE_MATRIX = 11
 

Detailed Description

Definition at line 21 of file class.ilLPObjectStatisticsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLPObjectStatisticsGUI::__construct (   $a_mode,
  $a_ref_id = 0 
)

Definition at line 29 of file class.ilLPObjectStatisticsGUI.php.

30 {
31 global $DIC;
32
33 $this->dic = $DIC;
34 parent::__construct($a_mode, $a_ref_id);
35
36 if (!$this->ref_id) {
37 $this->ref_id = (int) $_REQUEST["ref_id"];
38 }
39 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ilLPObjectStatisticsGUI::access (   $a_load_data = true)

Definition at line 118 of file class.ilLPObjectStatisticsGUI.php.

119 {
120 global $DIC;
121
122 $tpl = $DIC['tpl'];
123
124 $this->tabs_gui->activateSubTab('trac_object_stat_access');
125
126 $this->showAggregationInfo();
127
128 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
129 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, $a_load_data);
130
131 if (!$a_load_data) {
132 $lp_table->disable("content");
133 $lp_table->disable("header");
134 }
135
136 $tpl->setContent($lp_table->getHTML());
137 }
TableGUI class for learning progress.

References $DIC, ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

Referenced by accessFilter(), applyAccessFilter(), resetAccessFilter(), and showAccessGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ accessFilter()

ilLPObjectStatisticsGUI::accessFilter ( )

Definition at line 113 of file class.ilLPObjectStatisticsGUI.php.

114 {
115 $this->access(false);
116 }

References access().

+ Here is the call graph for this function:

◆ admin()

ilLPObjectStatisticsGUI::admin ( )

Definition at line 287 of file class.ilLPObjectStatisticsGUI.php.

288 {
289 global $DIC;
290
291 $tpl = $DIC['tpl'];
292 $ilToolbar = $DIC['ilToolbar'];
293 $lng = $DIC['lng'];
294 $ilCtrl = $DIC['ilCtrl'];
295 $ilAccess = $DIC['ilAccess'];
296
297 $this->tabs_gui->activateSubTab('trac_object_stat_admin');
298
299 $this->showAggregationInfo(false);
300
301 if ($this->dic->rbac()->system()->checkAccess('write', $this->ref_id)) {
302 $ilToolbar->addButton(
303 $lng->txt("trac_sync_obj_stats"),
304 $ilCtrl->getLinkTarget($this, "adminSync")
305 );
306 }
307
308 if ($ilAccess->checkAccess("delete", "", $this->ref_id)) {
309 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
310 $lp_table = new ilLPObjectStatisticsAdminTableGUI($this, "admin");
311
312 $tpl->setContent($lp_table->getHTML());
313 }
314 }
global $ilCtrl
Definition: ilias.php:18

References $DIC, $ilCtrl, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

Referenced by confirmDeleteData(), and deleteData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adminSync()

ilLPObjectStatisticsGUI::adminSync ( )

Definition at line 316 of file class.ilLPObjectStatisticsGUI.php.

317 {
318 global $DIC;
319
320 $ilCtrl = $DIC['ilCtrl'];
321 $lng = $DIC['lng'];
322
323 include_once "Services/Tracking/classes/class.ilChangeEvent.php";
325
326 ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
327 $ilCtrl->redirect($this, "admin");
328 }
static _syncObjectStats($a_now=null, $a_minimum=20000)
Process object statistics log data.

References $DIC, $ilCtrl, ilLearningProgressBaseGUI\$lng, and ilChangeEvent\_syncObjectStats().

+ Here is the call graph for this function:

◆ applyAccessFilter()

ilLPObjectStatisticsGUI::applyAccessFilter ( )

Definition at line 95 of file class.ilLPObjectStatisticsGUI.php.

96 {
97 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
98 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
99 $lp_table->resetOffset();
100 $lp_table->writeFilterToSession();
101 $this->access();
102 }

References access().

+ Here is the call graph for this function:

◆ applyDailyFilter()

ilLPObjectStatisticsGUI::applyDailyFilter ( )

Definition at line 223 of file class.ilLPObjectStatisticsGUI.php.

224 {
225 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
226 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
227 $lp_table->resetOffset();
228 $lp_table->writeFilterToSession();
229 $this->daily();
230 }

References daily().

+ Here is the call graph for this function:

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

Definition at line 386 of file class.ilLPObjectStatisticsGUI.php.

387 {
388 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
389 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
390 $lp_table->resetOffset();
391 $lp_table->writeFilterToSession();
392 $this->learningProgress();
393 }
TableGUI class for learning progress.

References learningProgress().

+ Here is the call graph for this function:

◆ applyTypesFilter()

ilLPObjectStatisticsGUI::applyTypesFilter ( )

Definition at line 159 of file class.ilLPObjectStatisticsGUI.php.

160 {
161 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
162 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
163 $lp_table->resetOffset();
164 $lp_table->writeFilterToSession();
165 $this->types();
166 }

References types().

+ Here is the call graph for this function:

◆ confirmDeleteData()

ilLPObjectStatisticsGUI::confirmDeleteData ( )

Definition at line 330 of file class.ilLPObjectStatisticsGUI.php.

331 {
332 global $DIC;
333
334 $lng = $DIC['lng'];
335 $tpl = $DIC['tpl'];
336 $ilTabs = $DIC['ilTabs'];
337 $ilCtrl = $DIC['ilCtrl'];
338
339 if (!$_POST["item_id"]) {
340 ilUtil::sendFailure($lng->txt("no_checkbox"));
341 return $this->admin();
342 }
343
344 $ilTabs->clearTargets();
345 $ilTabs->setBackTarget(
346 $lng->txt("back"),
347 $ilCtrl->getLinkTarget($this, "admin")
348 );
349
350 // display confirmation message
351 include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
352 $cgui = new ilConfirmationGUI();
353 $cgui->setFormAction($ilCtrl->getFormAction($this));
354 $cgui->setHeaderText($lng->txt("trac_sure_delete_data"));
355 $cgui->setCancel($lng->txt("cancel"), "admin");
356 $cgui->setConfirm($lng->txt("delete"), "deleteData");
357
358 // list objects that should be deleted
359 foreach ($_POST["item_id"] as $i) {
360 $caption = $lng->txt("month_" . str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT) . "_long") .
361 " " . substr($i, 0, 4);
362
363 $cgui->addItem("item_id[]", $i, $caption);
364 }
365
366 $tpl->setContent($cgui->getHTML());
367 }
$_POST["username"]
Confirmation screen class.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$i
Definition: metadata.php:24

References $_POST, $DIC, $i, $ilCtrl, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, admin(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ daily()

ilLPObjectStatisticsGUI::daily (   $a_load_data = true)

Definition at line 246 of file class.ilLPObjectStatisticsGUI.php.

247 {
248 global $DIC;
249
250 $tpl = $DIC['tpl'];
251
252 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
253
254 $this->showAggregationInfo();
255
256 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
257 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, $a_load_data);
258
259 if (!$a_load_data) {
260 $lp_table->disable("content");
261 $lp_table->disable("header");
262 }
263
264 $tpl->setContent($lp_table->getHTML());
265 }

References $DIC, ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

Referenced by applyDailyFilter(), dailyFilter(), resetDailyFilter(), and showDailyGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dailyFilter()

ilLPObjectStatisticsGUI::dailyFilter ( )

Definition at line 241 of file class.ilLPObjectStatisticsGUI.php.

242 {
243 $this->daily(false);
244 }

References daily().

+ Here is the call graph for this function:

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

Definition at line 369 of file class.ilLPObjectStatisticsGUI.php.

370 {
371 global $DIC;
372
373 $lng = $DIC['lng'];
374
375 if (!$_POST["item_id"]) {
376 ilUtil::sendFailure($lng->txt("no_checkbox"));
377 return $this->admin();
378 }
379
380 include_once "Services/Tracking/classes/class.ilTrQuery.php";
382 ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
383 $this->admin();
384 }
static deleteObjectStatistics(array $a_months)

References $_POST, $DIC, ilLearningProgressBaseGUI\$lng, admin(), ilTrQuery\deleteObjectStatistics(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ executeCommand()

ilLPObjectStatisticsGUI::executeCommand ( )

execute command

Definition at line 80 of file class.ilLPObjectStatisticsGUI.php.

81 {
82 $this->ctrl->setReturn($this, "");
83
84 $this->setTabs();
85
86 switch ($this->ctrl->getNextClass()) {
87 default:
88 $cmd = $this->__getDefaultCommand();
89 $this->$cmd();
90 }
91
92 return true;
93 }

References ilLearningProgressBaseGUI\__getDefaultCommand(), and setTabs().

+ Here is the call graph for this function:

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress (   $a_load_data = true)

Definition at line 409 of file class.ilLPObjectStatisticsGUI.php.

410 {
411 global $DIC;
412
413 $tpl = $DIC['tpl'];
414
415 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
416
417 $this->showCronJobInfo();
418
419 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
420 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, $a_load_data);
421
422 if (!$a_load_data) {
423 $lp_table->disable("content");
424 $lp_table->disable("header");
425 }
426
427 $tpl->setContent($lp_table->getHTML());
428 }

References $DIC, ilLearningProgressBaseGUI\$tpl, and showCronJobInfo().

Referenced by applyLearningProgressFilter(), learningProgressFilter(), resetLearningProgressFilter(), and showLearningProgressGraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ learningProgressFilter()

ilLPObjectStatisticsGUI::learningProgressFilter ( )

Definition at line 404 of file class.ilLPObjectStatisticsGUI.php.

405 {
406 $this->learningProgress(false);
407 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetAccessFilter()

ilLPObjectStatisticsGUI::resetAccessFilter ( )

Definition at line 104 of file class.ilLPObjectStatisticsGUI.php.

105 {
106 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
107 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
108 $lp_table->resetOffset();
109 $lp_table->resetFilter();
110 $this->access();
111 }

References access().

+ Here is the call graph for this function:

◆ resetDailyFilter()

ilLPObjectStatisticsGUI::resetDailyFilter ( )

Definition at line 232 of file class.ilLPObjectStatisticsGUI.php.

233 {
234 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
235 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
236 $lp_table->resetOffset();
237 $lp_table->resetFilter();
238 $this->daily();
239 }

References daily().

+ Here is the call graph for this function:

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

Definition at line 395 of file class.ilLPObjectStatisticsGUI.php.

396 {
397 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
398 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
399 $lp_table->resetOffset();
400 $lp_table->resetFilter();
401 $this->learningProgress();
402 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetTypesFilter()

ilLPObjectStatisticsGUI::resetTypesFilter ( )

Definition at line 168 of file class.ilLPObjectStatisticsGUI.php.

169 {
170 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
171 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
172 $lp_table->resetOffset();
173 $lp_table->resetFilter();
174 $this->types();
175 }

References types().

+ Here is the call graph for this function:

◆ setTabs()

ilLPObjectStatisticsGUI::setTabs ( )
protected

Definition at line 41 of file class.ilLPObjectStatisticsGUI.php.

42 {
43 global $DIC;
44
45 $ilAccess = $DIC['ilAccess'];
46
47 $this->tabs_gui->addSubTab(
48 'trac_object_stat_access',
49 $this->lng->txt('trac_object_stat_access'),
50 $this->ctrl->getLinkTarget($this, 'accessFilter')
51 );
52 $this->tabs_gui->addSubTab(
53 'trac_object_stat_daily',
54 $this->lng->txt('trac_object_stat_daily'),
55 $this->ctrl->getLinkTarget($this, 'dailyFilter')
56 );
57 $this->tabs_gui->addSubTab(
58 'trac_object_stat_lp',
59 $this->lng->txt('trac_object_stat_lp'),
60 $this->ctrl->getLinkTarget($this, 'learningProgressFilter')
61 );
62 $this->tabs_gui->addSubTab(
63 'trac_object_stat_types',
64 $this->lng->txt('trac_object_stat_types'),
65 $this->ctrl->getLinkTarget($this, 'typesFilter')
66 );
67
68 if ($this->dic->rbac()->system()->checkAccess("visible,read", $this->ref_id)) {
69 $this->tabs_gui->addSubTab(
70 'trac_object_stat_admin',
71 $this->lng->txt('trac_object_stat_admin'),
72 $this->ctrl->getLinkTarget($this, 'admin')
73 );
74 }
75 }

References $DIC.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ showAccessGraph()

ilLPObjectStatisticsGUI::showAccessGraph ( )

Definition at line 139 of file class.ilLPObjectStatisticsGUI.php.

140 {
141 global $DIC;
142
143 $lng = $DIC['lng'];
144 $tpl = $DIC['tpl'];
145
146 if (!$_POST["item_id"]) {
147 ilUtil::sendFailure($lng->txt("no_checkbox"));
148 return $this->access();
149 }
150
151 $this->tabs_gui->activateSubTab('trac_object_stat_access');
152
153 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
154 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", $_POST["item_id"]);
155
156 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
157 }

References $_POST, $DIC, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, access(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ showAggregationInfo()

ilLPObjectStatisticsGUI::showAggregationInfo (   $a_show_link = true)
protected

Definition at line 462 of file class.ilLPObjectStatisticsGUI.php.

463 {
464 global $DIC;
465
466 $ilAccess = $DIC['ilAccess'];
467 $lng = $DIC['lng'];
468 $ilCtrl = $DIC['ilCtrl'];
469
470 include_once "Services/Tracking/classes/class.ilTrQuery.php";
472 $info_date = ilDatePresentation::formatDate(new ilDateTime($info["tstamp"], IL_CAL_UNIX));
473
474 $link = "";
475 if ($a_show_link && $ilAccess->checkAccess("write", "", $this->ref_id)) {
476 $link = " <a href=\"" . $ilCtrl->getLinkTarget($this, "admin") . "\">&raquo;" .
477 $lng->txt("trac_log_info_link") . "</a>";
478 }
479
480 ilUtil::sendInfo(sprintf($lng->txt("trac_log_info"), $info_date, $info["counter"]) . $link);
481 }
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
static getObjectStatisticsLogInfo()
Get last update info for object statistics.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References $DIC, $ilCtrl, ilLearningProgressBaseGUI\$lng, ilDatePresentation\formatDate(), ilTrQuery\getObjectStatisticsLogInfo(), IL_CAL_UNIX, and ilUtil\sendInfo().

Referenced by access(), admin(), and daily().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showCronJobInfo()

ilLPObjectStatisticsGUI::showCronJobInfo ( )
protected

Definition at line 483 of file class.ilLPObjectStatisticsGUI.php.

484 {
485 global $DIC;
486
487 $lng = $DIC['lng'];
488
489 include_once "Services/Cron/classes/class.ilCronManager.php";
490 if (!ilCronManager::isJobActive("lp_object_statistics")) {
491 ilUtil::sendInfo($lng->txt("trac_cron_info"));
492 }
493 }
static isJobActive($a_job_id)
Check if given job is currently active.

References $DIC, ilLearningProgressBaseGUI\$lng, ilCronManager\isJobActive(), and ilUtil\sendInfo().

Referenced by learningProgress(), and types().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showDailyGraph()

ilLPObjectStatisticsGUI::showDailyGraph ( )

Definition at line 267 of file class.ilLPObjectStatisticsGUI.php.

268 {
269 global $DIC;
270
271 $lng = $DIC['lng'];
272 $tpl = $DIC['tpl'];
273
274 if (!$_POST["item_id"]) {
275 ilUtil::sendFailure($lng->txt("no_checkbox"));
276 return $this->daily();
277 }
278
279 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
280
281 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
282 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", $_POST["item_id"]);
283
284 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
285 }

References $_POST, $DIC, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, daily(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ showLearningProgressDetails()

ilLPObjectStatisticsGUI::showLearningProgressDetails ( )

Definition at line 450 of file class.ilLPObjectStatisticsGUI.php.

451 {
452 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
453 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "showLearningProgressDetails", array($_GET["item_id"]), true, false, true);
454
455 $a_tpl = new ilTemplate("tpl.lp_object_statistics_lp_details.html", true, true, "Services/Tracking");
456 $a_tpl->setVariable("CONTENT", $lp_table->getHTML());
457 $a_tpl->setVariable('CLOSE_IMG_TXT', $this->lng->txt('close'));
458 echo $a_tpl->get();
459 exit();
460 }
$_GET["client_id"]
special template class to simplify handling of ITX/PEAR
exit
Definition: login.php:29

References $_GET, and exit.

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

Definition at line 430 of file class.ilLPObjectStatisticsGUI.php.

431 {
432 global $DIC;
433
434 $lng = $DIC['lng'];
435 $tpl = $DIC['tpl'];
436
437 if (!$_POST["item_id"]) {
438 ilUtil::sendFailure($lng->txt("no_checkbox"));
439 return $this->learningProgress();
440 }
441
442 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
443
444 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
445 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", $_POST["item_id"], true, true);
446
447 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
448 }

References $_POST, $DIC, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, learningProgress(), and ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ showTypesGraph()

ilLPObjectStatisticsGUI::showTypesGraph ( )

Definition at line 203 of file class.ilLPObjectStatisticsGUI.php.

204 {
205 global $DIC;
206
207 $lng = $DIC['lng'];
208 $tpl = $DIC['tpl'];
209
210 if (!$_POST["item_id"]) {
211 ilUtil::sendFailure($lng->txt("no_checkbox"));
212 return $this->types();
213 }
214
215 $this->tabs_gui->activateSubTab('trac_object_stat_types');
216
217 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
218 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
219
220 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
221 }

References $_POST, $DIC, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, ilUtil\sendFailure(), and types().

+ Here is the call graph for this function:

◆ types()

ilLPObjectStatisticsGUI::types (   $a_load_data = true)

Definition at line 182 of file class.ilLPObjectStatisticsGUI.php.

183 {
184 global $DIC;
185
186 $tpl = $DIC['tpl'];
187
188 $this->tabs_gui->activateSubTab('trac_object_stat_types');
189
190 $this->showCronJobInfo();
191
192 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
193 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, $a_load_data);
194
195 if (!$a_load_data) {
196 $lp_table->disable("content");
197 $lp_table->disable("header");
198 }
199
200 $tpl->setContent($lp_table->getHTML());
201 }

References $DIC, ilLearningProgressBaseGUI\$tpl, and showCronJobInfo().

Referenced by applyTypesFilter(), resetTypesFilter(), showTypesGraph(), and typesFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typesFilter()

ilLPObjectStatisticsGUI::typesFilter ( )

Definition at line 177 of file class.ilLPObjectStatisticsGUI.php.

178 {
179 $this->types(false);
180 }

References types().

+ Here is the call graph for this function:

Field Documentation

◆ $dic

ilLPObjectStatisticsGUI::$dic
protected

Definition at line 27 of file class.ilLPObjectStatisticsGUI.php.


The documentation for this class was generated from the following file: