33include_once
'Services/Tracking/classes/class.ilLPStatus.php';
48 parent::ilLPStatus($a_obj_id);
84 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
93 $users = array_intersect(self::getMembers($a_obj_id), (array)$users);
105 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks ".
106 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
107 "AND completed = '1' ";
112 $usr_ids[] =
$row->user_id;
118 $usr_ids = array_intersect(self::getMembers($a_obj_id), (array)$usr_ids);
134 global $ilObjDataCache,
$ilDB;
137 switch ($ilObjDataCache->lookupType($a_obj_id))
142 $set =
$ilDB->query($q =
"SELECT usr_id FROM ut_lp_marks ".
143 "WHERE obj_id = ".
$ilDB->quote($a_obj_id ,
'integer').
" ".
144 "AND usr_id = ".$ilDB->quote($a_user_id ,
'integer').
" ".
145 "AND completed = '1' ");
146 if ($rec =
$ilDB->fetchAssoc($set))
152 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
170 global $ilObjDataCache;
172 switch($ilObjDataCache->lookupType($a_obj_id))
175 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
177 return $member_obj->getMembers();
180 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
const DB_FETCHMODE_OBJECT
static lookupUsersInProgress($a_obj_id)
Lookup users in progress.
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static _lookupFailedForObject($a_obj_id, $a_user_ids=null)
Get failed users for object.
static _lookupCompletedForObject($a_obj_id, $a_user_ids=null)
Get completed users for object.
static _lookupInProgressForObject($a_obj_id, $a_user_ids=null)
Get in progress users for object.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static getMembers($a_obj_id)
Get members for object.
__construct($a_obj_id)
Constructor.
_getNotAttempted($a_obj_id)
get not attempted
_getInProgress($a_obj_id)
get in progress
_getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.
_getInProgress($a_obj_id)
Static function to read users who have the status 'in_progress'.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
static _lookupStatusForObject($a_obj_id, $a_status, $a_user_ids=null)
Get users with given status for object.
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM