ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)
 

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
 
- Protected Attributes inherited from ilLearningProgressBaseGUI
 $anonymized
 
 $logger
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

22 {
23 parent::__construct($a_mode, $a_ref_id);
24
25 if (!$this->ref_id) {
26 $this->ref_id = (int) $_REQUEST["ref_id"];
27 }
28 }

Member Function Documentation

◆ access()

ilLPObjectStatisticsGUI::access (   $a_load_data = true)

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

106 {
107 global $tpl;
108
109 $this->tabs_gui->activateSubTab('trac_object_stat_access');
110
111 $this->showAggregationInfo();
112
113 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
114 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, $a_load_data);
115
116 if (!$a_load_data) {
117 $lp_table->disable("content");
118 $lp_table->disable("header");
119 }
120
121 $tpl->setContent($lp_table->getHTML());
122 }
TableGUI class for learning progress.

References 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 100 of file class.ilLPObjectStatisticsGUI.php.

101 {
102 $this->access(false);
103 }

References access().

+ Here is the call graph for this function:

◆ admin()

ilLPObjectStatisticsGUI::admin ( )

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

260 {
261 global $tpl, $ilToolbar, $lng, $ilCtrl, $ilAccess;
262
263 $this->tabs_gui->activateSubTab('trac_object_stat_admin');
264
265 $this->showAggregationInfo(false);
266
267 $ilToolbar->addButton(
268 $lng->txt("trac_sync_obj_stats"),
269 $ilCtrl->getLinkTarget($this, "adminSync")
270 );
271
272 if ($ilAccess->checkAccess("delete", "", $this->ref_id)) {
273 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
274 $lp_table = new ilLPObjectStatisticsAdminTableGUI($this, "admin");
275
276 $tpl->setContent($lp_table->getHTML());
277 }
278 }
global $ilCtrl
Definition: ilias.php:18

References $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 280 of file class.ilLPObjectStatisticsGUI.php.

281 {
282 global $ilCtrl, $lng;
283
284 include_once "Services/Tracking/classes/class.ilChangeEvent.php";
286
287 ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
288 $ilCtrl->redirect($this, "admin");
289 }
static _syncObjectStats($a_now=null, $a_minimum=20000)
Process object statistics log data.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

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

+ Here is the call graph for this function:

◆ applyAccessFilter()

ilLPObjectStatisticsGUI::applyAccessFilter ( )

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

83 {
84 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
85 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
86 $lp_table->resetOffset();
87 $lp_table->writeFilterToSession();
88 $this->access();
89 }

References access().

+ Here is the call graph for this function:

◆ applyDailyFilter()

ilLPObjectStatisticsGUI::applyDailyFilter ( )

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

201 {
202 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
203 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
204 $lp_table->resetOffset();
205 $lp_table->writeFilterToSession();
206 $this->daily();
207 }

References daily().

+ Here is the call graph for this function:

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

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

341 {
342 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
343 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
344 $lp_table->resetOffset();
345 $lp_table->writeFilterToSession();
346 $this->learningProgress();
347 }
TableGUI class for learning progress.

References learningProgress().

+ Here is the call graph for this function:

◆ applyTypesFilter()

ilLPObjectStatisticsGUI::applyTypesFilter ( )

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

142 {
143 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
144 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
145 $lp_table->resetOffset();
146 $lp_table->writeFilterToSession();
147 $this->types();
148 }

References types().

+ Here is the call graph for this function:

◆ confirmDeleteData()

ilLPObjectStatisticsGUI::confirmDeleteData ( )

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

292 {
293 global $lng, $tpl, $ilTabs, $ilCtrl;
294
295 if (!$_POST["item_id"]) {
296 ilUtil::sendFailure($lng->txt("no_checkbox"));
297 return $this->admin();
298 }
299
300 $ilTabs->clearTargets();
301 $ilTabs->setBackTarget(
302 $lng->txt("back"),
303 $ilCtrl->getLinkTarget($this, "admin")
304 );
305
306 // display confirmation message
307 include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
308 $cgui = new ilConfirmationGUI();
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");
313
314 // list objects that should be deleted
315 foreach ($_POST["item_id"] as $i) {
316 $caption = $lng->txt("month_" . str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT) . "_long") .
317 " " . substr($i, 0, 4);
318
319 $cgui->addItem("item_id[]", $i, $caption);
320 }
321
322 $tpl->setContent($cgui->getHTML());
323 }
$_POST["username"]
Confirmation screen class.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$i
Definition: disco.tpl.php:19

References $_POST, $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 223 of file class.ilLPObjectStatisticsGUI.php.

224 {
225 global $tpl;
226
227 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
228
229 $this->showAggregationInfo();
230
231 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
232 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, $a_load_data);
233
234 if (!$a_load_data) {
235 $lp_table->disable("content");
236 $lp_table->disable("header");
237 }
238
239 $tpl->setContent($lp_table->getHTML());
240 }

References 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 218 of file class.ilLPObjectStatisticsGUI.php.

219 {
220 $this->daily(false);
221 }

References daily().

+ Here is the call graph for this function:

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

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

326 {
327 global $lng;
328
329 if (!$_POST["item_id"]) {
330 ilUtil::sendFailure($lng->txt("no_checkbox"));
331 return $this->admin();
332 }
333
334 include_once "Services/Tracking/classes/class.ilTrQuery.php";
336 ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
337 $this->admin();
338 }
static deleteObjectStatistics(array $a_months)

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

+ Here is the call graph for this function:

◆ executeCommand()

ilLPObjectStatisticsGUI::executeCommand ( )

execute command

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

68 {
69 $this->ctrl->setReturn($this, "");
70
71 $this->setTabs();
72
73 switch ($this->ctrl->getNextClass()) {
74 default:
75 $cmd = $this->__getDefaultCommand();
76 $this->$cmd();
77 }
78
79 return true;
80 }

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

+ Here is the call graph for this function:

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress (   $a_load_data = true)

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

364 {
365 global $tpl;
366
367 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
368
369 $this->showCronJobInfo();
370
371 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
372 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, $a_load_data);
373
374 if (!$a_load_data) {
375 $lp_table->disable("content");
376 $lp_table->disable("header");
377 }
378
379 $tpl->setContent($lp_table->getHTML());
380 }

References 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 358 of file class.ilLPObjectStatisticsGUI.php.

359 {
360 $this->learningProgress(false);
361 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetAccessFilter()

ilLPObjectStatisticsGUI::resetAccessFilter ( )

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

92 {
93 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
94 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
95 $lp_table->resetOffset();
96 $lp_table->resetFilter();
97 $this->access();
98 }

References access().

+ Here is the call graph for this function:

◆ resetDailyFilter()

ilLPObjectStatisticsGUI::resetDailyFilter ( )

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

210 {
211 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
212 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
213 $lp_table->resetOffset();
214 $lp_table->resetFilter();
215 $this->daily();
216 }

References daily().

+ Here is the call graph for this function:

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

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

350 {
351 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
352 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
353 $lp_table->resetOffset();
354 $lp_table->resetFilter();
355 $this->learningProgress();
356 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetTypesFilter()

ilLPObjectStatisticsGUI::resetTypesFilter ( )

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

151 {
152 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
153 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
154 $lp_table->resetOffset();
155 $lp_table->resetFilter();
156 $this->types();
157 }

References types().

+ Here is the call graph for this function:

◆ setTabs()

ilLPObjectStatisticsGUI::setTabs ( )
protected

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

31 {
32 global $ilAccess;
33
34 $this->tabs_gui->addSubTab(
35 'trac_object_stat_access',
36 $this->lng->txt('trac_object_stat_access'),
37 $this->ctrl->getLinkTarget($this, 'accessFilter')
38 );
39 $this->tabs_gui->addSubTab(
40 'trac_object_stat_daily',
41 $this->lng->txt('trac_object_stat_daily'),
42 $this->ctrl->getLinkTarget($this, 'dailyFilter')
43 );
44 $this->tabs_gui->addSubTab(
45 'trac_object_stat_lp',
46 $this->lng->txt('trac_object_stat_lp'),
47 $this->ctrl->getLinkTarget($this, 'learningProgressFilter')
48 );
49 $this->tabs_gui->addSubTab(
50 'trac_object_stat_types',
51 $this->lng->txt('trac_object_stat_types'),
52 $this->ctrl->getLinkTarget($this, 'typesFilter')
53 );
54
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')
60 );
61 }
62 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ showAccessGraph()

ilLPObjectStatisticsGUI::showAccessGraph ( )

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

125 {
126 global $lng, $tpl;
127
128 if (!$_POST["item_id"]) {
129 ilUtil::sendFailure($lng->txt("no_checkbox"));
130 return $this->access();
131 }
132
133 $this->tabs_gui->activateSubTab('trac_object_stat_access');
134
135 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
136 $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", $_POST["item_id"]);
137
138 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
139 }

References $_POST, 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 411 of file class.ilLPObjectStatisticsGUI.php.

412 {
413 global $ilAccess, $lng, $ilCtrl;
414
415 include_once "Services/Tracking/classes/class.ilTrQuery.php";
417 $info_date = ilDatePresentation::formatDate(new ilDateTime($info["tstamp"], IL_CAL_UNIX));
418
419 $link = "";
420 if ($a_show_link && $ilAccess->checkAccess("write", "", $this->ref_id)) {
421 $link = " <a href=\"" . $ilCtrl->getLinkTarget($this, "admin") . "\">&raquo;" .
422 $lng->txt("trac_log_info_link") . "</a>";
423 }
424
425 ilUtil::sendInfo(sprintf($lng->txt("trac_log_info"), $info_date, $info["counter"]) . $link);
426 }
sprintf('%.4f', $callTime)
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=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.
$info
Definition: index.php:5

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

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 428 of file class.ilLPObjectStatisticsGUI.php.

429 {
430 global $lng;
431
432 include_once "Services/Cron/classes/class.ilCronManager.php";
433 if (!ilCronManager::isJobActive("lp_object_statistics")) {
434 ilUtil::sendInfo($lng->txt("trac_cron_info"));
435 }
436 }
static isJobActive($a_job_id)
Check if given job is currently active.

References 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 242 of file class.ilLPObjectStatisticsGUI.php.

243 {
244 global $lng, $tpl;
245
246 if (!$_POST["item_id"]) {
247 ilUtil::sendFailure($lng->txt("no_checkbox"));
248 return $this->daily();
249 }
250
251 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
252
253 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
254 $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", $_POST["item_id"]);
255
256 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
257 }

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

+ Here is the call graph for this function:

◆ showLearningProgressDetails()

ilLPObjectStatisticsGUI::showLearningProgressDetails ( )

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

400 {
401 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
402 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "showLearningProgressDetails", array($_GET["item_id"]), true, false, true);
403
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'));
407 echo $a_tpl->get();
408 exit();
409 }
$_GET["client_id"]
special template class to simplify handling of ITX/PEAR

References $_GET, and exit.

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

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

383 {
384 global $lng, $tpl;
385
386 if (!$_POST["item_id"]) {
387 ilUtil::sendFailure($lng->txt("no_checkbox"));
388 return $this->learningProgress();
389 }
390
391 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
392
393 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
394 $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", $_POST["item_id"], true, true);
395
396 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
397 }

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

+ Here is the call graph for this function:

◆ showTypesGraph()

ilLPObjectStatisticsGUI::showTypesGraph ( )

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

184 {
185 global $lng, $tpl;
186
187 if (!$_POST["item_id"]) {
188 ilUtil::sendFailure($lng->txt("no_checkbox"));
189 return $this->types();
190 }
191
192 $this->tabs_gui->activateSubTab('trac_object_stat_types');
193
194 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
195 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
196
197 $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
198 }

References $_POST, 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 164 of file class.ilLPObjectStatisticsGUI.php.

165 {
166 global $tpl;
167
168 $this->tabs_gui->activateSubTab('trac_object_stat_types');
169
170 $this->showCronJobInfo();
171
172 include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
173 $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, $a_load_data);
174
175 if (!$a_load_data) {
176 $lp_table->disable("content");
177 $lp_table->disable("header");
178 }
179
180 $tpl->setContent($lp_table->getHTML());
181 }

References 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 159 of file class.ilLPObjectStatisticsGUI.php.

160 {
161 $this->types(false);
162 }

References types().

+ Here is the call graph for this function:

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