32 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
42 parent::__construct($a_obj_id);
49 $users = $status_info[
'in_progress'];
50 return array_unique(
$users);
56 $users = $status_info[
'completed'];
57 return array_unique(
$users);
63 $users = $status_info[
'failed'];
64 return array_unique(
$users);
70 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php';
71 $status_info[
'subtype'] =
"scorm2004";
74 $status_info[
'completed'] =
$info[
'completed'];
75 $status_info[
'failed'] =
$info[
'failed'];
76 $status_info[
'in_progress'] =
$info[
'in_progress'];
93 $ilObjDataCache = $DIC[
'ilObjDataCache'];
97 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
99 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
100 switch ($scorm_status) {
102 $status = self::LP_STATUS_IN_PROGRESS_NUM;
105 $status = self::LP_STATUS_COMPLETED_NUM;
108 $status = self::LP_STATUS_FAILED_NUM;
117 parent::refreshStatus($a_obj_id, $a_users);
119 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
123 $all_active_users = array_unique(array_merge($in_progress, $completed,
$failed));
126 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
129 $not_attempted_users = array_diff($all_tracked_users, $all_active_users);
130 unset($all_tracked_users);
131 unset($all_active_users);
134 if ($not_attempted_users) {
135 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)