52 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
59 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';
62 foreach($events as $row)
66 $progress[
'spent_seconds'] += $row[
'spent_seconds'];
67 $progress[
'access_time'] = max($progress[
'access_time'], $row[
'last_access']);
71 $progress[
'obj_id'] = $row[
'obj_id'];
72 $progress[
'user_id'] = $row[
'usr_id'];
73 $progress[
'spent_seconds'] = $row[
'spent_seconds'];
74 $progress[
'access_time'] = $row[
'last_access'];
75 $progress[
'visits'] = $row[
'read_count'];
78 return $progress ? $progress : array();
90 include_once(
'./Services/Tracking/classes/class.ilChangeEvent.php');
93 if(isset($progress[$row[
'usr_id']]))
95 $progress[$row[
'usr_id']][
'spent_seconds'] += $row[
'spent_seconds'];
96 $progress[$row[
'usr_id']][
'read_count'] += $row[
'read_count'];
97 $progress[$row[
'usr_id']][
'ts'] = max($row[
'last_access'],$progress[$row[
'usr_id']][
'ts']);
101 $progress[$row[
'usr_id']][
'spent_seconds'] = $row[
'spent_seconds'];
102 $progress[$row[
'usr_id']][
'read_count'] = $row[
'read_count'];
103 $progress[$row[
'usr_id']][
'ts'] = $row[
'last_access'];
106 $progress[$row[
'usr_id']][
'usr_id'] = $row[
'usr_id'];
107 $progress[$row[
'usr_id']][
'obj_id'] = $row[
'obj_id'];
109 return $progress ? $progress : array();
114 require_once
'Services/Tracking/classes/class.ilChangeEvent.php';