ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLPObjectStatisticsGUI Class Reference
+ Inheritance diagram for ilLPObjectStatisticsGUI:
+ Collaboration diagram for ilLPObjectStatisticsGUI:

Public Member Functions

 ilLPObjectStatisticsGUI ($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
 ilLearningProgressBaseGUI ($a_mode, $a_ref_id=0, $a_usr_id=0)
 
 isAnonymized ()
 
 getMode ()
 
 getRefId ()
 
 getObjId ()
 
 getUserId ()
 
 activateStatistics ($a_act=true)
 
 __getDefaultCommand ()
 
 __setSubTabs ($a_active)
 
 __buildFooter ()
 
 __buildHeader ()
 
 __insertPath (&$a_tpl, $a_ref_id)
 insert path More...
 
 __showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
 
 _getImagePathForStatus ($a_status)
 Get image path for status. More...
 
 _getStatusText ($a_status)
 Get status alt text. More...
 
__initTableGUI ()
 
 __showObjectDetails (&$info, $item_id=0)
 show details about current object. More...
 
 __appendUserInfo (&$info, $a_user)
 
 __appendLPDetails (&$info, $item_id, $user_id)
 
 __readStatus ($a_obj_id, $user_id)
 
 __showButton ($a_link, $a_text, $a_target='')
 
 __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)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilLearningProgressBaseGUI
static _showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
 
static isObjectOffline ($a_obj_id, $a_type=null)
 
- Data Fields inherited from ilLearningProgressBaseGUI
 $tpl = null
 
 $ctrl = null
 
 $lng = null
 
 $ref_id = 0
 
 $mode = 0
 
 $statistics_activated = false
 
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_LM_STATISTICS = 4
 
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
 

Detailed Description

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

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

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

Referenced by confirmDeleteData(), and deleteData().

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

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

277  {
278  global $ilCtrl, $lng;
279 
280  include_once "Services/Tracking/classes/class.ilChangeEvent.php";
282 
283  ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
284  $ilCtrl->redirect($this, "admin");
285  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
global $ilCtrl
Definition: ilias.php:18
_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 195 of file class.ilLPObjectStatisticsGUI.php.

References daily().

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

◆ applyLearningProgressFilter()

ilLPObjectStatisticsGUI::applyLearningProgressFilter ( )

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

References learningProgress().

338  {
339  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
340  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
341  $lp_table->resetOffset();
342  $lp_table->writeFilterToSession();
343  $this->learningProgress();
344  }
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 287 of file class.ilLPObjectStatisticsGUI.php.

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

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

◆ daily()

ilLPObjectStatisticsGUI::daily (   $a_load_data = true)

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

References ilLearningProgressBaseGUI\$tpl, and showAggregationInfo().

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

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

◆ dailyFilter()

ilLPObjectStatisticsGUI::dailyFilter ( )

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

References daily().

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

◆ deleteData()

ilLPObjectStatisticsGUI::deleteData ( )

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

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

322  {
323  global $lng;
324 
325  if(!$_POST["item_id"])
326  {
327  ilUtil::sendFailure($lng->txt("no_checkbox"));
328  return $this->admin();
329  }
330 
331  include_once "Services/Tracking/classes/class.ilTrQuery.php";
333  ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
334  $this->admin();
335  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
static deleteObjectStatistics(array $a_months)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ 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:

◆ ilLPObjectStatisticsGUI()

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

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

References $_REQUEST.

22  {
23  parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id);
24 
25  if(!$this->ref_id)
26  {
27  $this->ref_id = (int)$_REQUEST["ref_id"];
28  }
29  }
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7

◆ learningProgress()

ilLPObjectStatisticsGUI::learningProgress (   $a_load_data = true)

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

References ilLearningProgressBaseGUI\$tpl.

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

361  {
362  global $tpl;
363 
364  $this->tabs_gui->activateSubTab('trac_object_stat_lp');
365 
366  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
367  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, $a_load_data);
368 
369  if(!$a_load_data)
370  {
371  $lp_table->disable("content");
372  $lp_table->disable("header");
373  }
374 
375  $tpl->setContent($lp_table->getHTML());
376  }
TableGUI class for learning progress.
+ Here is the caller graph for this function:

◆ learningProgressFilter()

ilLPObjectStatisticsGUI::learningProgressFilter ( )

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

References learningProgress().

356  {
357  $this->learningProgress(false);
358  }
+ 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 204 of file class.ilLPObjectStatisticsGUI.php.

References daily().

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

◆ resetLearningProgressFilter()

ilLPObjectStatisticsGUI::resetLearningProgressFilter ( )

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

References learningProgress().

347  {
348  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
349  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", null, false);
350  $lp_table->resetOffset();
351  $lp_table->resetFilter();
352  $this->learningProgress();
353  }
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  }
$_POST['username']
Definition: cron.php:12
TableGUI class for learning progress.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

◆ showAggregationInfo()

ilLPObjectStatisticsGUI::showAggregationInfo (   $a_show_link = true)
protected

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

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

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

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

◆ showDailyGraph()

ilLPObjectStatisticsGUI::showDailyGraph ( )

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

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

239  {
240  global $lng, $tpl;
241 
242  if(!$_POST["item_id"])
243  {
244  ilUtil::sendFailure($lng->txt("no_checkbox"));
245  return $this->daily();
246  }
247 
248  $this->tabs_gui->activateSubTab('trac_object_stat_daily');
249 
250  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsDailyTableGUI.php");
251  $lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", $_POST["item_id"]);
252 
253  $tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
254  }
$_POST['username']
Definition: cron.php:12
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ Here is the call graph for this function:

◆ showLearningProgressDetails()

ilLPObjectStatisticsGUI::showLearningProgressDetails ( )

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

References $_GET, exit, and ilUtil\getImagePath().

397  {
398  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
399  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "showLearningProgressDetails", array($_GET["item_id"]), true, false, true);
400 
401  $a_tpl = new ilTemplate("tpl.lp_object_statistics_lp_details.html", true, true, "Services/Tracking");
402  $a_tpl->setVariable("CONTENT", $lp_table->getHTML());
403  $a_tpl->setVariable('CLOSE_IMG_SRC', ilUtil::getImagePath('icon_close2_s.png'));
404  $a_tpl->setVariable('CLOSE_IMG_TXT', $this->lng->txt('close'));
405  echo $a_tpl->get();
406  exit();
407  }
exit
Definition: login.php:54
$_GET["client_id"]
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ showLearningProgressGraph()

ilLPObjectStatisticsGUI::showLearningProgressGraph ( )

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

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

379  {
380  global $lng, $tpl;
381 
382  if(!$_POST["item_id"])
383  {
384  ilUtil::sendFailure($lng->txt("no_checkbox"));
385  return $this->learningProgress();
386  }
387 
388  $this->tabs_gui->activateSubTab('trac_object_stat_lp');
389 
390  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsLPTableGUI.php");
391  $lp_table = new ilLPObjectStatisticsLPTableGUI($this, "learningProgress", $_POST["item_id"], true, true);
392 
393  $tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
394  }
$_POST['username']
Definition: cron.php:12
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
TableGUI class for learning progress.
+ Here is the call graph for this function:

◆ showTypesGraph()

ilLPObjectStatisticsGUI::showTypesGraph ( )

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

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

178  {
179  global $lng, $tpl;
180 
181  if(!$_POST["item_id"])
182  {
183  ilUtil::sendFailure($lng->txt("no_checkbox"));
184  return $this->types();
185  }
186 
187  $this->tabs_gui->activateSubTab('trac_object_stat_types');
188 
189  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
190  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
191 
192  $tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
193  }
$_POST['username']
Definition: cron.php:12
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ 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.

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

160  {
161  global $tpl;
162 
163  $this->tabs_gui->activateSubTab('trac_object_stat_types');
164 
165  include_once("./Services/Tracking/classes/object_statistics/class.ilLPObjectStatisticsTypesTableGUI.php");
166  $lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, $a_load_data);
167 
168  if(!$a_load_data)
169  {
170  $lp_table->disable("content");
171  $lp_table->disable("header");
172  }
173 
174  $tpl->setContent($lp_table->getHTML());
175  }
+ 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: