5 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
21 parent::__construct($a_obj_id);
29 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
32 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 34 LEFT JOIN tst_sequence 35 ON tst_sequence.active_fi = tst_active.active_id 36 WHERE tries = {$ilDB->quote(0, "integer
")} 37 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id), "integer
")} 38 GROUP BY active_id, user_fi 39 HAVING COUNT(tst_sequence.active_fi) > {$ilDB->quote(0, "integer
")} 47 $user_ids[
$row->user_fi] =
$row->user_fi;
50 return array_values($user_ids);
58 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
61 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 63 LEFT JOIN tst_sequence 64 ON tst_sequence.active_fi = tst_active.active_id 65 WHERE tries > {$ilDB->quote(0, "integer
")} 66 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 67 GROUP BY active_id, user_fi 68 HAVING COUNT(tst_sequence.active_fi) > {$ilDB->quote(0, "integer
")} 76 $user_ids[
$row->user_fi] =
$row->user_fi;
79 return array_values($user_ids);
86 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
89 SELECT active_id, user_fi, COUNT(tst_sequence.active_fi) sequences 91 LEFT JOIN tst_sequence 92 ON tst_sequence.active_fi = tst_active.active_id 93 WHERE test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 94 GROUP BY active_id, user_fi 95 HAVING COUNT(tst_sequence.active_fi) = {$ilDB->quote(0, "integer
")} 103 $user_ids[
$row->user_fi] =
$row->user_fi;
106 return array_values($user_ids);
119 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
121 $res = $ilDB->query(
"SELECT DISTINCT user_fi FROM tst_active" .
125 while ($rec = $ilDB->fetchAssoc(
$res)) {
126 $user_ids[] = $rec[
"user_fi"];
144 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
146 $res = $ilDB->query(
" 147 SELECT active_id, user_fi, tries, COUNT(tst_sequence.active_fi) sequences 149 LEFT JOIN tst_sequence 150 ON tst_sequence.active_fi = tst_active.active_id 151 WHERE user_fi = {$ilDB->quote($a_user_id, "integer
")} 152 AND test_fi = {$ilDB->quote(ilObjTestAccess::_getTestIDFromObjectID($a_obj_id))} 153 GROUP BY active_id, user_fi, tries 156 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
158 if ($rec = $ilDB->fetchAssoc(
$res)) {
159 if ($rec[
'sequences'] > 0) {
160 $status = self::LP_STATUS_IN_PROGRESS_NUM;
162 if ($rec[
'tries'] > 0) {
163 $status = self::LP_STATUS_COMPLETED_NUM;
static _getNotAttempted($a_obj_id)
static _getInProgress($a_obj_id)
foreach($_POST as $key=> $value) $res
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 ...