32 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
41 parent::__construct($a_obj_id);
48 $users = $status_info[
'in_progress'];
49 return array_unique($users);
55 $users = $status_info[
'completed'];
56 return array_unique($users);
62 $users = $status_info[
'failed'];
63 return array_unique($users);
69 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php';
70 $status_info[
'subtype'] =
"scorm2004";
73 $status_info[
'completed'] =
$info[
'completed'];
74 $status_info[
'failed'] =
$info[
'failed'];
75 $status_info[
'in_progress'] =
$info[
'in_progress'];
92 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
94 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
95 switch ($scorm_status)
98 $status = self::LP_STATUS_IN_PROGRESS_NUM;
101 $status = self::LP_STATUS_COMPLETED_NUM;
104 $status = self::LP_STATUS_FAILED_NUM;
113 parent::refreshStatus($a_obj_id, $a_users);
115 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
119 $all_active_users = array_unique(array_merge($in_progress, $completed,
$failed));
122 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
125 $not_attempted_users = array_diff($all_tracked_users, $all_active_users);
126 unset($all_tracked_users);
127 unset($all_active_users);
130 if($not_attempted_users)
132 foreach($not_attempted_users as $usr_id)
static _getInProgress($a_obj_id)
Static function to read users who have the status 'in_progress'.
refreshStatus($a_obj_id, $a_users=null)
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
static _getProgressInfo($a_obj_id)
Get overall scorm status.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _getProgressInfoOfUser($a_obj_id, $a_user_id)
Get overall scorm status.
static _getFailed($a_obj_id)
static _getFailed($a_obj_id)
Static function to read the users who have the status 'completed'.
static _getTrackedUsers($a_obj_id)
Get all tracked users.
static _getStatusInfo($a_obj_id)
static _getStatusInfo($a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
static writeStatus($a_obj_id, $a_user_id, $a_status, $a_percentage=false, $a_force_per=false)
Write status for user and object.
static _getCompleted($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.
static _getInProgress($a_obj_id)