32 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
40 parent::__construct($a_obj_id);
47 $users = $status_info[
'in_progress'];
48 return array_unique(
$users);
54 $users = $status_info[
'completed'];
55 return array_unique(
$users);
61 $users = $status_info[
'failed'];
62 return array_unique(
$users);
68 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php';
69 $status_info[
'subtype'] =
"scorm2004";
72 $status_info[
'completed'] =
$info[
'completed'];
73 $status_info[
'failed'] =
$info[
'failed'];
74 $status_info[
'in_progress'] =
$info[
'in_progress'];
91 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
93 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
94 switch ($scorm_status) {
96 $status = self::LP_STATUS_IN_PROGRESS_NUM;
99 $status = self::LP_STATUS_COMPLETED_NUM;
102 $status = self::LP_STATUS_FAILED_NUM;
111 parent::refreshStatus($a_obj_id, $a_users);
113 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
117 $all_active_users = array_unique(array_merge($in_progress, $completed,
$failed));
120 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
123 $not_attempted_users = array_diff($all_tracked_users, $all_active_users);
124 unset($all_tracked_users);
125 unset($all_active_users);
128 if ($not_attempted_users) {
129 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)