4 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
21 parent::__construct($a_obj_id);
27 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
42 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks ".
43 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
44 "AND completed = '1' ";
49 $usr_ids[] =
$row->user_id;
65 global $ilObjDataCache,
$ilDB;
67 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
68 switch ($ilObjDataCache->lookupType($a_obj_id))
72 include_once(
"./Services/Tracking/classes/class.ilChangeEvent.php");
75 $status = self::LP_STATUS_IN_PROGRESS_NUM;
78 $set = $ilDB->query($q =
"SELECT usr_id FROM ut_lp_marks ".
79 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
80 "AND usr_id = ".$ilDB->quote($a_user_id ,
'integer').
" ".
81 "AND completed = '1' ");
82 if ($rec = $ilDB->fetchAssoc($set))
84 $status = self::LP_STATUS_COMPLETED_NUM;
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static _getCompleted($a_obj_id)
Create styles array
The data for the language used.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static lookupUsersInProgress($a_obj_id)
Lookup users in progress.