ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
27  $this->ref_id = (int)$_REQUEST["ref_id"];
28  }
29  }

Member Function Documentation

◆ access()

ilLPObjectStatisticsGUI::access (   $a_load_data = true)

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

References ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

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

99  {
100  global $tpl;
101 
102  $this->tabs_gui->activateSubTab('trac_object_stat_access');
103 
104  $this->showAggregationInfo();
105 
106  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
107  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, $a_load_data);
108 
109  if(!$a_load_data)
110  {
111  $lp_table->disable("content");
112  $lp_table->disable("header");
113  }
114 
115  $tpl->setContent($lp_table->getHTML());
116  }
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 93 of file class.ilLPObjectStatisticsGUI.php.

References access().

94  {
95  $this->access(false);
96  }
+ Here is the call graph for this function:

◆ admin()

ilLPObjectStatisticsGUI::admin ( )

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

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

Referenced by confirmDeleteData(), and deleteData().

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

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

279  {
280  global $ilCtrl, $lng;
281 
282  include_once "Services/Tracking/classes/class.ilChangeEvent.php";
284 
285  ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
286  $ilCtrl->redirect($this, "admin");
287  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
global $ilCtrl
Definition: ilias.php:18
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static _syncObjectStats($a_now=null, $a_minimum=20000)
Process object statistics log data.
+ Here is the call graph for this function:

◆ applyAccessFilter()

ilLPObjectStatisticsGUI::applyAccessFilter ( )

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

References access().

76  {
77  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
78  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
79  $lp_table->resetOffset();
80  $lp_table->writeFilterToSession();
81  $this->access();
82  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ applyDailyFilter()

ilLPObjectStatisticsGUI::applyDailyFilter ( )

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

References daily().

198  {
199  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
200  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
201  $lp_table->resetOffset();
202  $lp_table->writeFilterToSession();
203  $this->daily();
204  }
+ Here is the call graph for this function:

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

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

References learningProgress().

340  {
341  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
342  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
343  $lp_table->resetOffset();
344  $lp_table->writeFilterToSession();
345  $this->learningProgress();
346  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ applyTypesFilter()

ilLPObjectStatisticsGUI::applyTypesFilter ( )

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

References types().

137  {
138  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
139  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
140  $lp_table->resetOffset();
141  $lp_table->writeFilterToSession();
142  $this->types();
143  }
+ Here is the call graph for this function:

◆ confirmDeleteData()

ilLPObjectStatisticsGUI::confirmDeleteData ( )

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

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

290  {
291  global $lng, $tpl, $ilTabs, $ilCtrl;
292 
293  if(!$_POST["item_id"])
294  {
295  ilUtil::sendFailure($lng->txt("no_checkbox"));
296  return $this->admin();
297  }
298 
299  $ilTabs->clearTargets();
300  $ilTabs->setBackTarget($lng->txt("back"),
301  $ilCtrl->getLinkTarget($this, "admin"));
302 
303  // display confirmation message
304  include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
305  $cgui = new ilConfirmationGUI();
306  $cgui->setFormAction($ilCtrl->getFormAction($this));
307  $cgui->setHeaderText($lng->txt("trac_sure_delete_data"));
308  $cgui->setCancel($lng->txt("cancel"), "admin");
309  $cgui->setConfirm($lng->txt("delete"), "deleteData");
310 
311  // list objects that should be deleted
312  foreach ($_POST["item_id"] as $i)
313  {
314  $caption = $lng->txt("month_".str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT)."_long").
315  " ".substr($i, 0, 4);
316 
317  $cgui->addItem("item_id[]", $i, $caption);
318  }
319 
320  $tpl->setContent($cgui->getHTML());
321  }
global $ilCtrl
Definition: ilias.php:18
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$_POST["username"]
Confirmation screen class.
+ Here is the call graph for this function:

◆ daily()

ilLPObjectStatisticsGUI::daily (   $a_load_data = true)

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

References ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

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

221  {
222  global $tpl;
223 
224  $this->tabs_gui->activateSubTab('trac_object_stat_daily');
225 
226  $this->showAggregationInfo();
227 
228  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
229  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, $a_load_data);
230 
231  if(!$a_load_data)
232  {
233  $lp_table->disable("content");
234  $lp_table->disable("header");
235  }
236 
237  $tpl->setContent($lp_table->getHTML());
238  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dailyFilter()

ilLPObjectStatisticsGUI::dailyFilter ( )

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

References daily().

216  {
217  $this->daily(false);
218  }
+ Here is the call graph for this function:

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

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

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

324  {
325  global $lng;
326 
327  if(!$_POST["item_id"])
328  {
329  ilUtil::sendFailure($lng->txt("no_checkbox"));
330  return $this->admin();
331  }
332 
333  include_once "Services/Tracking/classes/class.ilTrQuery.php";
335  ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
336  $this->admin();
337  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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 59 of file class.ilLPObjectStatisticsGUI.php.

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

60  {
61  $this->ctrl->setReturn($this, "");
62 
63  $this->setTabs();
64 
65  switch($this->ctrl->getNextClass())
66  {
67  default:
68  $cmd = $this->__getDefaultCommand();
69  $this->$cmd();
70  }
71 
72  return true;
73  }
$cmd
Definition: sahs_server.php:35
+ Here is the call graph for this function:

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress (   $a_load_data = true)

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

References ilLearningProgressBaseGUI\$tpl, and showCronJobInfo().

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

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

References learningProgress().

358  {
359  $this->learningProgress(false);
360  }
+ Here is the call graph for this function:

◆ resetAccessFilter()

ilLPObjectStatisticsGUI::resetAccessFilter ( )

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->resetFilter();
90  $this->access();
91  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ resetDailyFilter()

ilLPObjectStatisticsGUI::resetDailyFilter ( )

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

References daily().

207  {
208  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
209  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
210  $lp_table->resetOffset();
211  $lp_table->resetFilter();
212  $this->daily();
213  }
+ Here is the call graph for this function:

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

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

References learningProgress().

349  {
350  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
351  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
352  $lp_table->resetOffset();
353  $lp_table->resetFilter();
354  $this->learningProgress();
355  }
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ resetTypesFilter()

ilLPObjectStatisticsGUI::resetTypesFilter ( )

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

References types().

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

◆ setTabs()

ilLPObjectStatisticsGUI::setTabs ( )
protected

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

Referenced by executeCommand().

32  {
33  global $ilAccess;
34 
35  $this->tabs_gui->addSubTab('trac_object_stat_access',
36  $this->lng->txt('trac_object_stat_access'),
37  $this->ctrl->getLinkTarget($this, 'accessFilter'));
38  $this->tabs_gui->addSubTab('trac_object_stat_daily',
39  $this->lng->txt('trac_object_stat_daily'),
40  $this->ctrl->getLinkTarget($this, 'dailyFilter'));
41  $this->tabs_gui->addSubTab('trac_object_stat_lp',
42  $this->lng->txt('trac_object_stat_lp'),
43  $this->ctrl->getLinkTarget($this, 'learningProgressFilter'));
44  $this->tabs_gui->addSubTab('trac_object_stat_types',
45  $this->lng->txt('trac_object_stat_types'),
46  $this->ctrl->getLinkTarget($this, 'typesFilter'));
47 
48  if($ilAccess->checkAccess("write", "", $this->ref_id))
49  {
50  $this->tabs_gui->addSubTab('trac_object_stat_admin',
51  $this->lng->txt('trac_object_stat_admin'),
52  $this->ctrl->getLinkTarget($this, 'admin'));
53  }
54  }
+ Here is the caller graph for this function:

◆ showAccessGraph()

ilLPObjectStatisticsGUI::showAccessGraph ( )

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

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

119  {
120  global $lng, $tpl;
121 
122  if(!$_POST["item_id"])
123  {
124  ilUtil::sendFailure($lng->txt("no_checkbox"));
125  return $this->access();
126  }
127 
128  $this->tabs_gui->activateSubTab('trac_object_stat_access');
129 
130  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTableGUI.php");
131  $lp_table = new ilLPObjectStatisticsTableGUI($this, "access", $_POST["item_id"]);
132 
133  $tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
134  }
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 412 of file class.ilLPObjectStatisticsGUI.php.

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

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

413  {
414  global $ilAccess, $lng, $ilCtrl;
415 
416  include_once "Services/Tracking/classes/class.ilTrQuery.php";
418  $info_date = ilDatePresentation::formatDate(new ilDateTime($info["tstamp"], IL_CAL_UNIX));
419 
420  $link = "";
421  if($a_show_link && $ilAccess->checkAccess("write", "", $this->ref_id))
422  {
423  $link = " <a href=\"".$ilCtrl->getLinkTarget($this, "admin")."\">&raquo;".
424  $lng->txt("trac_log_info_link")."</a>";
425  }
426 
427  ilUtil::sendInfo(sprintf($lng->txt("trac_log_info"), $info_date, $info["counter"]).$link);
428  }
const IL_CAL_UNIX
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$info
Definition: example_052.php:80
static formatDate(ilDateTime $date)
Format a date public.
Date and time handling
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 430 of file class.ilLPObjectStatisticsGUI.php.

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

Referenced by learningProgress(), and types().

431  {
432  global $lng;
433 
434  include_once "Services/Cron/classes/class.ilCronManager.php";
435  if(!ilCronManager::isJobActive("lp_object_statistics"))
436  {
437  ilUtil::sendInfo($lng->txt("trac_cron_info"));
438  }
439  }
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 240 of file class.ilLPObjectStatisticsGUI.php.

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

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

References $_GET, array, and exit.

401  {
402  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
403  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "showLearningProgressDetails", array($_GET["item_id"]), true, false, true);
404 
405  $a_tpl = new ilTemplate("tpl.lp_object_statistics_lp_details.html", true, true, "Services/Tracking");
406  $a_tpl->setVariable("CONTENT", $lp_table->getHTML());
407  $a_tpl->setVariable('CLOSE_IMG_TXT', $this->lng->txt('close'));
408  echo $a_tpl->get();
409  exit();
410  }
$_GET["client_id"]
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
TableGUI class for learning progress.

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

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

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

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

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

180  {
181  global $lng, $tpl;
182 
183  if(!$_POST["item_id"])
184  {
185  ilUtil::sendFailure($lng->txt("no_checkbox"));
186  return $this->types();
187  }
188 
189  $this->tabs_gui->activateSubTab('trac_object_stat_types');
190 
191  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
192  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
193 
194  $tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
195  }
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 159 of file class.ilLPObjectStatisticsGUI.php.

References ilLearningProgressBaseGUI\$tpl, and showCronJobInfo().

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

160  {
161  global $tpl;
162 
163  $this->tabs_gui->activateSubTab('trac_object_stat_types');
164 
165  $this->showCronJobInfo();
166 
167  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
168  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, $a_load_data);
169 
170  if(!$a_load_data)
171  {
172  $lp_table->disable("content");
173  $lp_table->disable("header");
174  }
175 
176  $tpl->setContent($lp_table->getHTML());
177  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typesFilter()

ilLPObjectStatisticsGUI::typesFilter ( )

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

References types().

155  {
156  $this->types(false);
157  }
+ Here is the call graph for this function:

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