ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLPObjectStatisticsGUI Class Reference
+ Inheritance diagram for ilLPObjectStatisticsGUI:
+ Collaboration diagram for ilLPObjectStatisticsGUI:

Public Member Functions

 __construct (int $a_mode, int $a_ref_id=0)
 
 executeCommand ()
 
 applyAccessFilter ()
 
 resetAccessFilter ()
 
 accessFilter ()
 
 access (bool $a_load_data=true)
 
 showAccessGraph ()
 
 applyTypesFilter ()
 
 resetTypesFilter ()
 
 typesFilter ()
 
 types (bool $a_load_data=true)
 
 showTypesGraph ()
 
 applyDailyFilter ()
 
 resetDailyFilter ()
 
 dailyFilter ()
 
 daily (bool $a_load_data=true)
 
 showDailyGraph ()
 
 admin ()
 
 adminSync ()
 
 confirmDeleteData ()
 
 deleteData ()
 
 applyLearningProgressFilter ()
 
 resetLearningProgressFilter ()
 
 learningProgressFilter ()
 
 learningProgress (bool $a_load_data=true)
 
 showLearningProgressGraph ()
 
 showLearningProgressDetails ()
 
- Public Member Functions inherited from ilLearningProgressBaseGUI
 __construct (int $a_mode, int $a_ref_id=0, int $a_usr_id=0)
 
 isAnonymized ()
 
 getMode ()
 
 getRefId ()
 
 getObjId ()
 
 getUserId ()
 
 __getDefaultCommand ()
 
 __setSubTabs (int $a_active)
 
 __buildFooter ()
 
 __buildHeader ()
 
 __showObjectDetails (ilInfoScreenGUI $info, int $item_id=0, string $item_type='', bool $add_section=true)
 show details about current object. More...
 
 __appendLPDetails (ilInfoScreenGUI $info, int $item_id, int $user_id)
 
 __getLegendHTML (int $variant=ilLPStatusIcons::ICON_VARIANT_LONG)
 
 __showEditUser (int $a_user_id, int $a_ref_id, ?string $a_cancel=null, int $a_sub_id=0)
 
 __updateUser (int $user_id, int $obj_id)
 

Protected Member Functions

 initItemIdFromPost ()
 
 setTabs ()
 
 showAggregationInfo (bool $a_show_link=true)
 
 showCronJobInfo ()
 
- Protected Member Functions inherited from ilLearningProgressBaseGUI
 initUserIdFromQuery ()
 
 readTypicalLearningTimeInSeconds (int $obj_id, int $sub_id, string $type)
 
 initEditUserForm (int $a_user_id, int $a_obj_id, ?string $a_cancel=null)
 

Protected Attributes

JobManager $cronManager
 
- Protected Attributes inherited from ilLearningProgressBaseGUI
RefineryFactory $refinery
 
HttpServices $http
 
ilGlobalTemplateInterface $tpl
 
ilHelpGUI $help
 
ilCtrlInterface $ctrl
 
ilLanguage $lng
 
ilLogger $logger
 
ilTabsGUI $tabs_gui
 
ilToolbarGUI $toolbar
 
ilObjectDataCache $ilObjectDataCache
 
ilObjUser $user
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 
ilRbacReview $rbacreview
 
ilTree $tree
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
LOMServices $lom_services
 
bool $anonymized
 
int $usr_id = 0
 
int $ref_id = 0
 
int $obj_id = 0
 
string $obj_type = ''
 
int $mode = 0
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from ilLearningProgressBaseGUI
static _getStatusText (int $a_status, ?ilLanguage $a_lng=null)
 Get status alt text. More...
 
static __readStatus (int $a_obj_id, int $user_id)
 @noinspection PhpInconsistentReturnPointsInspection More...
 
static isObjectOffline (int $a_obj_id, string $a_type='')
 
- Data Fields inherited from ilLearningProgressBaseGUI
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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

36 {
37 global $DIC;
38
39 $this->cronManager = $DIC->cron()->manager();
40
41 parent::__construct($a_mode, $a_ref_id);
42
43 if (!$this->ref_id) {
44 if ($this->http->wrapper()->query()->has('ref_id')) {
45 $this->ref_id = $this->http->wrapper()->query()->retrieve(
46 'ref_id',
47 $this->refinery->kindlyTo()->int()
48 );
49 }
50 }
51 }
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ilLPObjectStatisticsGUI::access ( bool  $a_load_data = true)

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

171 : void
172 {
173 $this->tabs_gui->activateSubTab('trac_object_stat_access');
174 $this->showAggregationInfo();
175 $lp_table = new ilLPObjectStatisticsTableGUI(
176 $this,
177 "access",
178 null
179 );
180 $lp_table->init();
181 if ($a_load_data) {
182 $lp_table->getItems();
183 } else {
184 $lp_table->disable("content");
185 $lp_table->disable("header");
186 }
187 $this->tpl->setContent($lp_table->getHTML());
188 }
showAggregationInfo(bool $a_show_link=true)
TableGUI class for learning progress.

References showAggregationInfo().

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

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

◆ accessFilter()

ilLPObjectStatisticsGUI::accessFilter ( )

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

166 : void
167 {
168 $this->access(false);
169 }

References access().

+ Here is the call graph for this function:

◆ admin()

ilLPObjectStatisticsGUI::admin ( )

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

372 : void
373 {
374 $this->tabs_gui->activateSubTab('trac_object_stat_admin');
375
376 $this->showAggregationInfo(false);
377
378 if ($this->rbacsystem->checkAccess('write', $this->ref_id)) {
379 $this->toolbar->addButton(
380 $this->lng->txt("trac_sync_obj_stats"),
381 $this->ctrl->getLinkTarget($this, "adminSync")
382 );
383 }
384
385 if ($this->access->checkAccess("delete", "", $this->ref_id)) {
386 $lp_table = new ilLPObjectStatisticsAdminTableGUI($this, "admin");
387 $this->tpl->setContent($lp_table->getHTML());
388 }
389 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References access(), ILIAS\Repository\lng(), showAggregationInfo(), and ILIAS\Repository\toolbar().

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

391 : void
392 {
394
395 $this->tpl->setOnScreenMessage(
396 'success',
397 $this->lng->txt(
398 "trac_sync_obj_stats_success"
399 ),
400 true
401 );
402 $this->ctrl->redirect($this, "admin");
403 }
static _syncObjectStats(?int $a_now=null, int $a_minimum=20000)

References ilChangeEvent\_syncObjectStats(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ applyAccessFilter()

ilLPObjectStatisticsGUI::applyAccessFilter ( )

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

140 : void
141 {
142 $lp_table = new ilLPObjectStatisticsTableGUI(
143 $this,
144 "access",
145 null
146 );
147 $lp_table->init();
148 $lp_table->resetOffset();
149 $lp_table->writeFilterToSession();
150 $this->access();
151 }

References access().

+ Here is the call graph for this function:

◆ applyDailyFilter()

ilLPObjectStatisticsGUI::applyDailyFilter ( )

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

292 : void
293 {
294 $lp_table = new ilLPObjectStatisticsDailyTableGUI(
295 $this,
296 "daily",
297 null
298 );
299 $lp_table->init();
300 $lp_table->resetOffset();
301 $lp_table->writeFilterToSession();
302 $this->daily();
303 }

References daily().

+ Here is the call graph for this function:

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

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

466 : void
467 {
468 $lp_table = new ilLPObjectStatisticsLPTableGUI(
469 $this,
470 "learningProgress",
471 null
472 );
473 $lp_table->init();
474 $lp_table->resetOffset();
475 $lp_table->writeFilterToSession();
476 $this->learningProgress();
477 }
learningProgress(bool $a_load_data=true)
TableGUI class for learning progress.

References learningProgress().

+ Here is the call graph for this function:

◆ applyTypesFilter()

ilLPObjectStatisticsGUI::applyTypesFilter ( )

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

215 : void
216 {
217 $lp_table = new ilLPObjectStatisticsTypesTableGUI(
218 $this,
219 "types",
220 null,
221 false
222 );
223 $lp_table->resetOffset();
224 $lp_table->writeFilterToSession();
225 $this->types();
226 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References types().

+ Here is the call graph for this function:

◆ confirmDeleteData()

ilLPObjectStatisticsGUI::confirmDeleteData ( )

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

405 : void
406 {
407 if (!$this->initItemIdFromPost()) {
408 $this->tpl->setOnScreenMessage(
409 'failure',
410 $this->lng->txt("no_checkbox")
411 );
412 $this->admin();
413 return;
414 }
415
416 $this->tabs_gui->clearTargets();
417 $this->tabs_gui->setBackTarget(
418 $this->lng->txt("back"),
419 $this->ctrl->getLinkTarget($this, "admin")
420 );
421
422 // display confirmation message
423 $cgui = new ilConfirmationGUI();
424 $cgui->setFormAction($this->ctrl->getFormAction($this));
425 $cgui->setHeaderText($this->lng->txt("trac_sure_delete_data"));
426 $cgui->setCancel($this->lng->txt("cancel"), "admin");
427 $cgui->setConfirm($this->lng->txt("delete"), "deleteData");
428
429 // list objects that should be deleted
430 foreach ($this->initItemIdFromPost() as $i) {
431 $caption = $this->lng->txt(
432 "month_" . str_pad(
433 substr($i, 5),
434 2,
435 "0",
436 STR_PAD_LEFT
437 ) . "_long"
438 ) .
439 " " . substr($i, 0, 4);
440
441 $cgui->addItem("item_id[]", $i, $caption);
442 }
443
444 $this->tpl->setContent($cgui->getHTML());
445 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References admin(), ILIAS\Repository\ctrl(), initItemIdFromPost(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ daily()

ilLPObjectStatisticsGUI::daily ( bool  $a_load_data = true)

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

323 : void
324 {
325 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
326
327 $this->showAggregationInfo();
328
329 $lp_table = new ilLPObjectStatisticsDailyTableGUI(
330 $this,
331 "daily",
332 null
333 );
334 $lp_table->init();
335
336 if ($a_load_data) {
337 $lp_table->getItems();
338 } else {
339 $lp_table->disable("content");
340 $lp_table->disable("header");
341 }
342 $this->tpl->setContent($lp_table->getHTML());
343 }

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

318 : void
319 {
320 $this->daily(false);
321 }

References daily().

+ Here is the call graph for this function:

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

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

447 : void
448 {
449 if (!$this->initItemIdFromPost()) {
450 $this->tpl->setOnScreenMessage(
451 'failure',
452 $this->lng->txt("no_checkbox")
453 );
454 $this->admin();
455 return;
456 }
457
459 $this->tpl->setOnScreenMessage(
460 'success',
461 $this->lng->txt("trac_data_deleted")
462 );
463 $this->admin();
464 }
static deleteObjectStatistics(array $a_months)

References admin(), ilTrQuery\deleteObjectStatistics(), initItemIdFromPost(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ executeCommand()

ilLPObjectStatisticsGUI::executeCommand ( )

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

98 : void
99 {
100 $this->ctrl->setReturn($this, "");
101 $this->setTabs();
102
103 switch ($this->ctrl->getNextClass()) {
104 case "illpobjectstatisticstablegui":
105 $lp_table = new ilLPObjectStatisticsTableGUI(
106 $this,
107 "access",
108 null
109 );
110 $lp_table->init();
111 $this->ctrl->forwardCommand($lp_table);
112 break;
113
114 case "illpobjectstatisticsdailytablegui":
115 $lp_table = new ilLPObjectStatisticsDailyTableGUI(
116 $this,
117 "daily",
118 null
119 );
120 $lp_table->init();
121 $this->ctrl->forwardCommand($lp_table);
122 break;
123
124 case "illpobjectstatisticslptablegui":
125 $lp_table = new ilLPObjectStatisticsLPTableGUI(
126 $this,
127 "learningProgress",
128 null
129 );
130 $lp_table->init();
131 $this->ctrl->forwardCommand($lp_table);
132 break;
133
134 default:
135 $cmd = $this->__getDefaultCommand();
136 $this->$cmd();
137 }
138 }

References ilLearningProgressBaseGUI\__getDefaultCommand(), ILIAS\Repository\ctrl(), and setTabs().

+ Here is the call graph for this function:

◆ initItemIdFromPost()

ilLPObjectStatisticsGUI::initItemIdFromPost ( )
protected

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

53 : array
54 {
55 if ($this->http->wrapper()->post()->has('item_id')) {
56 return $this->http->wrapper()->post()->retrieve(
57 'item_id',
58 $this->refinery->kindlyTo()->dictOf(
59 $this->refinery->kindlyTo()->string()
60 )
61 );
62 }
63 return [];
64 }

References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().

Referenced by confirmDeleteData(), deleteData(), showAccessGraph(), showDailyGraph(), showLearningProgressGraph(), and showTypesGraph().

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

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress ( bool  $a_load_data = true)

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

497 : void
498 {
499 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
500
501 $this->showCronJobInfo();
502
503 $lp_table = new ilLPObjectStatisticsLPTableGUI(
504 $this,
505 "learningProgress",
506 null
507 );
508 $lp_table->init();
509 if ($a_load_data) {
510 $lp_table->loadItems();
511 } else {
512 $lp_table->disable("content");
513 $lp_table->disable("header");
514 }
515 $this->tpl->setContent($lp_table->getHTML());
516 }

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

492 : void
493 {
494 $this->learningProgress(false);
495 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetAccessFilter()

ilLPObjectStatisticsGUI::resetAccessFilter ( )

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

153 : void
154 {
155 $lp_table = new ilLPObjectStatisticsTableGUI(
156 $this,
157 "access",
158 null
159 );
160 $lp_table->init();
161 $lp_table->resetOffset();
162 $lp_table->resetFilter();
163 $this->access();
164 }

References access().

+ Here is the call graph for this function:

◆ resetDailyFilter()

ilLPObjectStatisticsGUI::resetDailyFilter ( )

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

305 : void
306 {
307 $lp_table = new ilLPObjectStatisticsDailyTableGUI(
308 $this,
309 "daily",
310 null
311 );
312 $lp_table->init();
313 $lp_table->resetOffset();
314 $lp_table->resetFilter();
315 $this->daily();
316 }

References daily().

+ Here is the call graph for this function:

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

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

479 : void
480 {
481 $lp_table = new ilLPObjectStatisticsLPTableGUI(
482 $this,
483 "learningProgress",
484 null
485 );
486 $lp_table->init();
487 $lp_table->resetOffset();
488 $lp_table->resetFilter();
489 $this->learningProgress();
490 }

References learningProgress().

+ Here is the call graph for this function:

◆ resetTypesFilter()

ilLPObjectStatisticsGUI::resetTypesFilter ( )

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

228 : void
229 {
230 $lp_table = new ilLPObjectStatisticsTypesTableGUI(
231 $this,
232 "types",
233 null,
234 false
235 );
236 $lp_table->resetOffset();
237 $lp_table->resetFilter();
238 $this->types();
239 }

References types().

+ Here is the call graph for this function:

◆ setTabs()

ilLPObjectStatisticsGUI::setTabs ( )
protected

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

66 : void
67 {
68 $this->tabs_gui->addSubTab(
69 'trac_object_stat_access',
70 $this->lng->txt('trac_object_stat_access'),
71 $this->ctrl->getLinkTarget($this, 'accessFilter')
72 );
73 $this->tabs_gui->addSubTab(
74 'trac_object_stat_daily',
75 $this->lng->txt('trac_object_stat_daily'),
76 $this->ctrl->getLinkTarget($this, 'dailyFilter')
77 );
78 $this->tabs_gui->addSubTab(
79 'trac_object_stat_lp',
80 $this->lng->txt('trac_object_stat_lp'),
81 $this->ctrl->getLinkTarget($this, 'learningProgressFilter')
82 );
83 $this->tabs_gui->addSubTab(
84 'trac_object_stat_types',
85 $this->lng->txt('trac_object_stat_types'),
86 $this->ctrl->getLinkTarget($this, 'typesFilter')
87 );
88
89 if ($this->rbacsystem->checkAccess("visible,read", $this->ref_id)) {
90 $this->tabs_gui->addSubTab(
91 'trac_object_stat_admin',
92 $this->lng->txt('trac_object_stat_admin'),
93 $this->ctrl->getLinkTarget($this, 'admin')
94 );
95 }
96 }

References ILIAS\Repository\lng().

Referenced by executeCommand().

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

◆ showAccessGraph()

ilLPObjectStatisticsGUI::showAccessGraph ( )

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

190 : void
191 {
192 if (!$this->initItemIdFromPost()) {
193 $this->tpl->setOnScreenMessage(
194 'failure',
195 $this->lng->txt("no_checkbox")
196 );
197 $this->access();
198 }
199
200 $this->tabs_gui->activateSubTab('trac_object_stat_access');
201 $lp_table = new ilLPObjectStatisticsTableGUI(
202 $this,
203 "access",
204 $this->initItemIdFromPost()
205 );
206 $lp_table->init();
207 $lp_table->getItems();
208 $this->tpl->setContent(
209 $lp_table->getGraph(
210 $this->initItemIdFromPost()
211 ) . $lp_table->getHTML()
212 );
213 }

References access(), initItemIdFromPost(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showAggregationInfo()

ilLPObjectStatisticsGUI::showAggregationInfo ( bool  $a_show_link = true)
protected

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

579 : void
580 {
583 new ilDateTime($info["tstamp"], IL_CAL_UNIX)
584 );
585
586 $link = "";
587 if ($a_show_link && $this->access->checkAccess(
588 "write",
589 "",
590 $this->ref_id
591 )) {
592 $link = " <a href=\"" . $this->ctrl->getLinkTarget(
593 $this,
594 "admin"
595 ) . "\">&raquo;" .
596 $this->lng->txt("trac_log_info_link") . "</a>";
597 }
598
599 $this->tpl->setOnScreenMessage(
600 'info',
601 sprintf(
602 $this->lng->txt(
603 "trac_log_info"
604 ),
605 $info_date,
606 $info["counter"]
607 ) . $link
608 );
609 }
const IL_CAL_UNIX
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
static getObjectStatisticsLogInfo()
Get last update info for object statistics.
$info
Definition: entry_point.php:21

References $info, access(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilTrQuery\getObjectStatisticsLogInfo(), IL_CAL_UNIX, and ILIAS\Repository\lng().

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

611 : void
612 {
613 if (!$this->cronManager->isJobActive("lp_object_statistics")) {
614 $this->tpl->setOnScreenMessage(
615 'info',
616 $this->lng->txt("trac_cron_info")
617 );
618 }
619 }

References ILIAS\Repository\lng().

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

345 : void
346 {
347 if (!$this->initItemIdFromPost()) {
348 $this->tpl->setOnScreenMessage(
349 'failure',
350 $this->lng->txt("no_checkbox")
351 );
352 $this->daily();
353 return;
354 }
355
356 $this->tabs_gui->activateSubTab('trac_object_stat_daily');
357
358 $lp_table = new ilLPObjectStatisticsDailyTableGUI(
359 $this,
360 "daily",
361 $this->initItemIdFromPost()
362 );
363 $lp_table->init();
364 $lp_table->getItems();
365 $this->tpl->setContent(
366 $lp_table->getGraph(
367 $this->initItemIdFromPost()
368 ) . $lp_table->getHTML()
369 );
370 }

References daily(), initItemIdFromPost(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showLearningProgressDetails()

ilLPObjectStatisticsGUI::showLearningProgressDetails ( )

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

545 : void
546 {
547 $item_id = 0;
548 if ($this->http->wrapper()->query()->has('item_id')) {
549 $item_id = $this->http->wrapper()->query()->retrieve(
550 'item_id',
551 $this->refinery->kindlyTo()->int()
552 );
553 }
554 $lp_table = new ilLPObjectStatisticsLPTableGUI(
555 $this,
556 "showLearningProgressDetails",
557 array($item_id),
558 false,
559 true
560 );
561 $lp_table->init();
562 $lp_table->loadItems();
563 $a_tpl = new ilTemplate(
564 "tpl.lp_object_statistics_lp_details.html",
565 true,
566 true,
567 "components/ILIAS/Tracking"
568 );
569 $a_tpl->setVariable("CONTENT", $lp_table->getHTML());
570
571 $modal = $this->ui_factory->modal()->roundtrip(
572 $this->lng->txt('details'),
573 $this->ui_factory->legacy()->content($a_tpl->get())
574 )->withCancelButtonLabel($this->lng->txt('close'));
575 echo $this->ui_renderer->renderAsync($modal);
576 exit();
577 }
special template class to simplify handling of ITX/PEAR
exit

References exit, ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

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

519 {
520 if (!$this->initItemIdFromPost()) {
521 $this->tpl->setOnScreenMessage(
522 'failure',
523 $this->lng->txt("no_checkbox")
524 );
525 $this->learningProgress();
526 return;
527 }
528
529 $this->tabs_gui->activateSubTab('trac_object_stat_lp');
530 $lp_table = new ilLPObjectStatisticsLPTableGUI(
531 $this,
532 "learningProgress",
533 $this->initItemIdFromPost(),
534 true
535 );
536 $lp_table->init();
537 $lp_table->loadItems();
538 $this->tpl->setContent(
539 $lp_table->getGraph(
540 $this->initItemIdFromPost()
541 ) . $lp_table->getHTML()
542 );
543 }

References initItemIdFromPost(), learningProgress(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showTypesGraph()

ilLPObjectStatisticsGUI::showTypesGraph ( )

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

266 : void
267 {
268 if (!$this->initItemIdFromPost()) {
269 $this->tpl->setOnScreenMessage(
270 'failure',
271 $this->lng->txt("no_checkbox")
272 );
273 $this->types();
274 return;
275 }
276
277 $this->tabs_gui->activateSubTab('trac_object_stat_types');
278
279 $lp_table = new ilLPObjectStatisticsTypesTableGUI(
280 $this,
281 "types",
282 $this->initItemIdFromPost()
283 );
284
285 $this->tpl->setContent(
286 $lp_table->getGraph(
287 $this->initItemIdFromPost()
288 ) . $lp_table->getHTML()
289 );
290 }

References initItemIdFromPost(), ILIAS\Repository\lng(), and types().

+ Here is the call graph for this function:

◆ types()

ilLPObjectStatisticsGUI::types ( bool  $a_load_data = true)

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

246 : void
247 {
248 $this->tabs_gui->activateSubTab('trac_object_stat_types');
249 $this->showCronJobInfo();
250
251 $lp_table = new ilLPObjectStatisticsTypesTableGUI(
252 $this,
253 "types",
254 null,
255 $a_load_data
256 );
257
258 if (!$a_load_data) {
259 $lp_table->disable("content");
260 $lp_table->disable("header");
261 }
262
263 $this->tpl->setContent($lp_table->getHTML());
264 }

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

241 : void
242 {
243 $this->types(false);
244 }

References types().

+ Here is the call graph for this function:

Field Documentation

◆ $cronManager

JobManager ilLPObjectStatisticsGUI::$cronManager
protected

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


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