ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
 
 $tabs_gui
 

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

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

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

108  {
109  global $DIC;
110 
111  $tpl = $DIC['tpl'];
112 
113  $this->tabs_gui->activateSubTab('trac_object_stat_access');
114 
115  $this->showAggregationInfo();
116 
117  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
118  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, $a_load_data);
119 
120  if (!$a_load_data) {
121  $lp_table->disable("content");
122  $lp_table->disable("header");
123  }
124 
125  $tpl->setContent($lp_table->getHTML());
126  }
global $DIC
Definition: saml.php:7
TableGUI class for learning progress.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ accessFilter()

ilLPObjectStatisticsGUI::accessFilter ( )

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

References access().

103  {
104  $this->access(false);
105  }
+ Here is the call graph for this function:

◆ admin()

ilLPObjectStatisticsGUI::admin ( )

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

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

Referenced by confirmDeleteData(), and deleteData().

277  {
278  global $DIC;
279 
280  $tpl = $DIC['tpl'];
281  $ilToolbar = $DIC['ilToolbar'];
282  $lng = $DIC['lng'];
283  $ilCtrl = $DIC['ilCtrl'];
284  $ilAccess = $DIC['ilAccess'];
285 
286  $this->tabs_gui->activateSubTab('trac_object_stat_admin');
287 
288  $this->showAggregationInfo(false);
289 
290  $ilToolbar->addButton(
291  $lng->txt("trac_sync_obj_stats"),
292  $ilCtrl->getLinkTarget($this, "adminSync")
293  );
294 
295  if ($ilAccess->checkAccess("delete", "", $this->ref_id)) {
296  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsAdminTableGUI.php");
297  $lp_table = new ilLPObjectStatisticsAdminTableGUI($this, "admin");
298 
299  $tpl->setContent($lp_table->getHTML());
300  }
301  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ adminSync()

ilLPObjectStatisticsGUI::adminSync ( )

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

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

304  {
305  global $DIC;
306 
307  $ilCtrl = $DIC['ilCtrl'];
308  $lng = $DIC['lng'];
309 
310  include_once "Services/Tracking/classes/class.ilChangeEvent.php";
312 
313  ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
314  $ilCtrl->redirect($this, "admin");
315  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
static _syncObjectStats($a_now=null, $a_minimum=20000)
Process object statistics log data.
+ Here is the call graph for this function:

◆ applyAccessFilter()

ilLPObjectStatisticsGUI::applyAccessFilter ( )

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

References access().

85  {
86  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
87  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
88  $lp_table->resetOffset();
89  $lp_table->writeFilterToSession();
90  $this->access();
91  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ applyDailyFilter()

ilLPObjectStatisticsGUI::applyDailyFilter ( )

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

References daily().

213  {
214  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
215  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
216  $lp_table->resetOffset();
217  $lp_table->writeFilterToSession();
218  $this->daily();
219  }
+ Here is the call graph for this function:

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

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

References learningProgress().

374  {
375  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
376  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
377  $lp_table->resetOffset();
378  $lp_table->writeFilterToSession();
379  $this->learningProgress();
380  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ applyTypesFilter()

ilLPObjectStatisticsGUI::applyTypesFilter ( )

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

References types().

149  {
150  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
151  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
152  $lp_table->resetOffset();
153  $lp_table->writeFilterToSession();
154  $this->types();
155  }
+ Here is the call graph for this function:

◆ confirmDeleteData()

ilLPObjectStatisticsGUI::confirmDeleteData ( )

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

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

318  {
319  global $DIC;
320 
321  $lng = $DIC['lng'];
322  $tpl = $DIC['tpl'];
323  $ilTabs = $DIC['ilTabs'];
324  $ilCtrl = $DIC['ilCtrl'];
325 
326  if (!$_POST["item_id"]) {
327  ilUtil::sendFailure($lng->txt("no_checkbox"));
328  return $this->admin();
329  }
330 
331  $ilTabs->clearTargets();
332  $ilTabs->setBackTarget(
333  $lng->txt("back"),
334  $ilCtrl->getLinkTarget($this, "admin")
335  );
336 
337  // display confirmation message
338  include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
339  $cgui = new ilConfirmationGUI();
340  $cgui->setFormAction($ilCtrl->getFormAction($this));
341  $cgui->setHeaderText($lng->txt("trac_sure_delete_data"));
342  $cgui->setCancel($lng->txt("cancel"), "admin");
343  $cgui->setConfirm($lng->txt("delete"), "deleteData");
344 
345  // list objects that should be deleted
346  foreach ($_POST["item_id"] as $i) {
347  $caption = $lng->txt("month_" . str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT) . "_long") .
348  " " . substr($i, 0, 4);
349 
350  $cgui->addItem("item_id[]", $i, $caption);
351  }
352 
353  $tpl->setContent($cgui->getHTML());
354  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$i
Definition: disco.tpl.php:19
$_POST["username"]
Confirmation screen class.
+ Here is the call graph for this function:

◆ daily()

ilLPObjectStatisticsGUI::daily (   $a_load_data = true)

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

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

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

236  {
237  global $DIC;
238 
239  $tpl = $DIC['tpl'];
240 
241  $this->tabs_gui->activateSubTab('trac_object_stat_daily');
242 
243  $this->showAggregationInfo();
244 
245  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
246  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, $a_load_data);
247 
248  if (!$a_load_data) {
249  $lp_table->disable("content");
250  $lp_table->disable("header");
251  }
252 
253  $tpl->setContent($lp_table->getHTML());
254  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dailyFilter()

ilLPObjectStatisticsGUI::dailyFilter ( )

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

References daily().

231  {
232  $this->daily(false);
233  }
+ Here is the call graph for this function:

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

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

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

357  {
358  global $DIC;
359 
360  $lng = $DIC['lng'];
361 
362  if (!$_POST["item_id"]) {
363  ilUtil::sendFailure($lng->txt("no_checkbox"));
364  return $this->admin();
365  }
366 
367  include_once "Services/Tracking/classes/class.ilTrQuery.php";
369  ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
370  $this->admin();
371  }
global $DIC
Definition: saml.php:7
static deleteObjectStatistics(array $a_months)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
+ Here is the call graph for this function:

◆ executeCommand()

ilLPObjectStatisticsGUI::executeCommand ( )

execute command

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

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

70  {
71  $this->ctrl->setReturn($this, "");
72 
73  $this->setTabs();
74 
75  switch ($this->ctrl->getNextClass()) {
76  default:
77  $cmd = $this->__getDefaultCommand();
78  $this->$cmd();
79  }
80 
81  return true;
82  }
+ Here is the call graph for this function:

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress (   $a_load_data = true)

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

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

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

397  {
398  global $DIC;
399 
400  $tpl = $DIC['tpl'];
401 
402  $this->tabs_gui->activateSubTab('trac_object_stat_lp');
403 
404  $this->showCronJobInfo();
405 
406  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
407  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, $a_load_data);
408 
409  if (!$a_load_data) {
410  $lp_table->disable("content");
411  $lp_table->disable("header");
412  }
413 
414  $tpl->setContent($lp_table->getHTML());
415  }
global $DIC
Definition: saml.php:7
TableGUI class for learning progress.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ learningProgressFilter()

ilLPObjectStatisticsGUI::learningProgressFilter ( )

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

References learningProgress().

392  {
393  $this->learningProgress(false);
394  }
+ Here is the call graph for this function:

◆ resetAccessFilter()

ilLPObjectStatisticsGUI::resetAccessFilter ( )

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

References access().

94  {
95  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
96  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
97  $lp_table->resetOffset();
98  $lp_table->resetFilter();
99  $this->access();
100  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ resetDailyFilter()

ilLPObjectStatisticsGUI::resetDailyFilter ( )

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

References daily().

222  {
223  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
224  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
225  $lp_table->resetOffset();
226  $lp_table->resetFilter();
227  $this->daily();
228  }
+ Here is the call graph for this function:

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

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

References learningProgress().

383  {
384  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
385  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
386  $lp_table->resetOffset();
387  $lp_table->resetFilter();
388  $this->learningProgress();
389  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ resetTypesFilter()

ilLPObjectStatisticsGUI::resetTypesFilter ( )

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

References types().

158  {
159  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
160  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
161  $lp_table->resetOffset();
162  $lp_table->resetFilter();
163  $this->types();
164  }
+ Here is the call graph for this function:

◆ setTabs()

ilLPObjectStatisticsGUI::setTabs ( )
protected

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

References $DIC.

Referenced by executeCommand().

31  {
32  global $DIC;
33 
34  $ilAccess = $DIC['ilAccess'];
35 
36  $this->tabs_gui->addSubTab(
37  'trac_object_stat_access',
38  $this->lng->txt('trac_object_stat_access'),
39  $this->ctrl->getLinkTarget($this, 'accessFilter')
40  );
41  $this->tabs_gui->addSubTab(
42  'trac_object_stat_daily',
43  $this->lng->txt('trac_object_stat_daily'),
44  $this->ctrl->getLinkTarget($this, 'dailyFilter')
45  );
46  $this->tabs_gui->addSubTab(
47  'trac_object_stat_lp',
48  $this->lng->txt('trac_object_stat_lp'),
49  $this->ctrl->getLinkTarget($this, 'learningProgressFilter')
50  );
51  $this->tabs_gui->addSubTab(
52  'trac_object_stat_types',
53  $this->lng->txt('trac_object_stat_types'),
54  $this->ctrl->getLinkTarget($this, 'typesFilter')
55  );
56 
57  if ($ilAccess->checkAccess("write", "", $this->ref_id)) {
58  $this->tabs_gui->addSubTab(
59  'trac_object_stat_admin',
60  $this->lng->txt('trac_object_stat_admin'),
61  $this->ctrl->getLinkTarget($this, 'admin')
62  );
63  }
64  }
global $DIC
Definition: saml.php:7
+ Here is the caller graph for this function:

◆ showAccessGraph()

ilLPObjectStatisticsGUI::showAccessGraph ( )

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

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

129  {
130  global $DIC;
131 
132  $lng = $DIC['lng'];
133  $tpl = $DIC['tpl'];
134 
135  if (!$_POST["item_id"]) {
136  ilUtil::sendFailure($lng->txt("no_checkbox"));
137  return $this->access();
138  }
139 
140  $this->tabs_gui->activateSubTab('trac_object_stat_access');
141 
142  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
143  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", $_POST["item_id"]);
144 
145  $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
146  }
global $DIC
Definition: saml.php:7
TableGUI class for learning progress.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
+ Here is the call graph for this function:

◆ showAggregationInfo()

ilLPObjectStatisticsGUI::showAggregationInfo (   $a_show_link = true)
protected

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

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

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

450  {
451  global $DIC;
452 
453  $ilAccess = $DIC['ilAccess'];
454  $lng = $DIC['lng'];
455  $ilCtrl = $DIC['ilCtrl'];
456 
457  include_once "Services/Tracking/classes/class.ilTrQuery.php";
459  $info_date = ilDatePresentation::formatDate(new ilDateTime($info["tstamp"], IL_CAL_UNIX));
460 
461  $link = "";
462  if ($a_show_link && $ilAccess->checkAccess("write", "", $this->ref_id)) {
463  $link = " <a href=\"" . $ilCtrl->getLinkTarget($this, "admin") . "\">&raquo;" .
464  $lng->txt("trac_log_info_link") . "</a>";
465  }
466 
467  ilUtil::sendInfo(sprintf($lng->txt("trac_log_info"), $info_date, $info["counter"]) . $link);
468  }
global $DIC
Definition: saml.php:7
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Date and time handling
$info
Definition: index.php:5
static getObjectStatisticsLogInfo()
Get last update info for object statistics.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showCronJobInfo()

ilLPObjectStatisticsGUI::showCronJobInfo ( )
protected

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

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

Referenced by learningProgress(), and types().

471  {
472  global $DIC;
473 
474  $lng = $DIC['lng'];
475 
476  include_once "Services/Cron/classes/class.ilCronManager.php";
477  if (!ilCronManager::isJobActive("lp_object_statistics")) {
478  ilUtil::sendInfo($lng->txt("trac_cron_info"));
479  }
480  }
global $DIC
Definition: saml.php:7
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static isJobActive($a_job_id)
Check if given job is currently active.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showDailyGraph()

ilLPObjectStatisticsGUI::showDailyGraph ( )

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

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

257  {
258  global $DIC;
259 
260  $lng = $DIC['lng'];
261  $tpl = $DIC['tpl'];
262 
263  if (!$_POST["item_id"]) {
264  ilUtil::sendFailure($lng->txt("no_checkbox"));
265  return $this->daily();
266  }
267 
268  $this->tabs_gui->activateSubTab('trac_object_stat_daily');
269 
270  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
271  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", $_POST["item_id"]);
272 
273  $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
274  }
global $DIC
Definition: saml.php:7
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
+ Here is the call graph for this function:

◆ showLearningProgressDetails()

ilLPObjectStatisticsGUI::showLearningProgressDetails ( )

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

References $_GET, and exit.

438  {
439  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
440  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "showLearningProgressDetails", array($_GET["item_id"]), true, false, true);
441 
442  $a_tpl = new ilTemplate("tpl.lp_object_statistics_lp_details.html", true, true, "Services/Tracking");
443  $a_tpl->setVariable("CONTENT", $lp_table->getHTML());
444  $a_tpl->setVariable('CLOSE_IMG_TXT', $this->lng->txt('close'));
445  echo $a_tpl->get();
446  exit();
447  }
$_GET["client_id"]
special template class to simplify handling of ITX/PEAR
exit
Definition: backend.php:16
TableGUI class for learning progress.

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

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

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

418  {
419  global $DIC;
420 
421  $lng = $DIC['lng'];
422  $tpl = $DIC['tpl'];
423 
424  if (!$_POST["item_id"]) {
425  ilUtil::sendFailure($lng->txt("no_checkbox"));
426  return $this->learningProgress();
427  }
428 
429  $this->tabs_gui->activateSubTab('trac_object_stat_lp');
430 
431  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
432  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", $_POST["item_id"], true, true);
433 
434  $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
435  }
global $DIC
Definition: saml.php:7
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
TableGUI class for learning progress.
$_POST["username"]
+ Here is the call graph for this function:

◆ showTypesGraph()

ilLPObjectStatisticsGUI::showTypesGraph ( )

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

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

193  {
194  global $DIC;
195 
196  $lng = $DIC['lng'];
197  $tpl = $DIC['tpl'];
198 
199  if (!$_POST["item_id"]) {
200  ilUtil::sendFailure($lng->txt("no_checkbox"));
201  return $this->types();
202  }
203 
204  $this->tabs_gui->activateSubTab('trac_object_stat_types');
205 
206  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
207  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
208 
209  $tpl->setContent($lp_table->getGraph($_POST["item_id"]) . $lp_table->getHTML());
210  }
global $DIC
Definition: saml.php:7
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
+ Here is the call graph for this function:

◆ types()

ilLPObjectStatisticsGUI::types (   $a_load_data = true)

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

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

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

172  {
173  global $DIC;
174 
175  $tpl = $DIC['tpl'];
176 
177  $this->tabs_gui->activateSubTab('trac_object_stat_types');
178 
179  $this->showCronJobInfo();
180 
181  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
182  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, $a_load_data);
183 
184  if (!$a_load_data) {
185  $lp_table->disable("content");
186  $lp_table->disable("header");
187  }
188 
189  $tpl->setContent($lp_table->getHTML());
190  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typesFilter()

ilLPObjectStatisticsGUI::typesFilter ( )

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

References types().

167  {
168  $this->types(false);
169  }
+ Here is the call graph for this function:

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