52 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
59 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
62 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
64 foreach($events as
$row)
71 $progress[
'spent_seconds'] += $row[
'spent_seconds'];
72 $progress[
'access_time'] = max($progress[
'access_time'], $row[
'last_access']);
76 $progress[
'obj_id'] = $row[
'obj_id'];
77 $progress[
'user_id'] = $row[
'usr_id'];
78 $progress[
'spent_seconds'] = $row[
'spent_seconds'];
79 $progress[
'access_time'] = $row[
'last_access'];
80 $progress[
'visits'] = $row[
'read_count'];
83 return $progress ? $progress : array();
95 include_once(
'./Services/Tracking/classes/class.ilChangeEvent.php');
98 if(isset($progress[$row[
'usr_id']]))
100 $progress[$row[
'usr_id']][
'spent_seconds'] += $row[
'spent_seconds'];
101 $progress[$row[
'usr_id']][
'read_count'] += $row[
'read_count'];
102 $progress[$row[
'usr_id']][
'ts'] = max($row[
'last_access'],$progress[$row[
'usr_id']][
'ts']);
106 $progress[$row[
'usr_id']][
'spent_seconds'] = $row[
'spent_seconds'];
107 $progress[$row[
'usr_id']][
'read_count'] = $row[
'read_count'];
108 $progress[$row[
'usr_id']][
'ts'] = $row[
'last_access'];
111 $progress[$row[
'usr_id']][
'usr_id'] = $row[
'usr_id'];
112 $progress[$row[
'usr_id']][
'obj_id'] = $row[
'obj_id'];
114 return $progress ? $progress : array();
119 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';