3 declare(strict_types=0);
28 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks " .
29 "WHERE obj_id = " .
$ilDB->quote($a_obj_id,
'integer') .
" " .
30 "AND completed = '1' ";
34 $usr_ids[] = (
int) $row->user_id;
52 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
53 switch ($this->ilObjDataCache->lookupType($a_obj_id)) {
58 $status = self::LP_STATUS_IN_PROGRESS_NUM;
61 $set = $this->db->query(
62 $q =
"SELECT usr_id FROM ut_lp_marks " .
63 "WHERE obj_id = " . $this->db->quote(
67 "AND usr_id = " . $this->db->quote(
71 "AND completed = '1' " 73 if ($rec = $this->db->fetchAssoc($set)) {
74 $status = self::LP_STATUS_COMPLETED_NUM;
90 ?array $a_user_ids = null
static _getInProgress(int $a_obj_id)
static _lookupFailedForObject(int $a_obj_id, ?array $a_user_ids=null)
Get failed users for object.
static _getCompleted(int $a_obj_id)
Static function to read the users who have the status 'completed'.
static hasAccessed(int $a_obj_id, int $a_usr_id)
Has accessed.
determineStatus(int $a_obj_id, int $a_usr_id, object $a_obj=null)
Determine status.
static lookupUsersInProgress(int $a_obj_id)
ilObjectDataCache $ilObjDataCache
static _getCompleted(int $a_obj_id)