5 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
22 parent::__construct($a_obj_id);
30 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
33 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 35 LEFT JOIN tst_sequence 36 ON tst_sequence.active_fi = tst_active.active_id 37 WHERE tries = {$ilDB->quote(0, "integer
")} 38 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id), "integer
")} 39 GROUP BY active_id, user_fi 40 HAVING COUNT(tst_sequence.active_fi) > {$ilDB->quote(0, "integer
")} 49 $user_ids[
$row->user_fi] =
$row->user_fi;
52 return array_values($user_ids);
60 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
63 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 65 LEFT JOIN tst_sequence 66 ON tst_sequence.active_fi = tst_active.active_id 67 WHERE tries > {$ilDB->quote(0, "integer
")} 68 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 69 GROUP BY active_id, user_fi 70 HAVING COUNT(tst_sequence.active_fi) > {$ilDB->quote(0, "integer
")} 79 $user_ids[
$row->user_fi] =
$row->user_fi;
82 return array_values($user_ids);
89 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
92 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 94 LEFT JOIN tst_sequence 95 ON tst_sequence.active_fi = tst_active.active_id 96 WHERE test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 97 GROUP BY active_id, user_fi 98 HAVING COUNT(tst_sequence.active_fi) = {$ilDB->quote(0, "integer
")} 107 $user_ids[
$row->user_fi] =
$row->user_fi;
110 return array_values($user_ids);
123 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
125 $res = $ilDB->query(
"SELECT DISTINCT user_fi FROM tst_active".
129 while($rec = $ilDB->fetchAssoc(
$res))
131 $user_ids[] = $rec[
"user_fi"];
149 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
151 $res = $ilDB->query(
" 152 SELECT active_id, user_fi, tries, COUNT(tst_sequence.active_fi) sequences 154 LEFT JOIN tst_sequence 155 ON tst_sequence.active_fi = tst_active.active_id 156 WHERE user_fi = {$ilDB->quote($a_user_id, "integer
")} 157 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 158 GROUP BY active_id, user_fi, tries 161 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
163 if ($rec = $ilDB->fetchAssoc(
$res))
165 if ($rec[
'sequences'] > 0)
167 $status = self::LP_STATUS_IN_PROGRESS_NUM;
169 if ($rec[
'tries'] > 0)
171 $status = self::LP_STATUS_COMPLETED_NUM;
static _getNotAttempted($a_obj_id)
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _getTestIDFromObjectID($object_id)
Returns the ILIAS test id for a given object id.
static getParticipants($a_obj_id)
Get participants.
Create styles array
The data for the language used.
static _getCompleted($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...