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)) {
    59                     $status = self::LP_STATUS_IN_PROGRESS_NUM;
    62                     $set = $this->db->query(
    63                         $q = 
"SELECT usr_id FROM ut_lp_marks " .
    64                             "WHERE obj_id = " . $this->db->quote(
    68                             "AND usr_id = " . $this->db->quote(
    72                             "AND completed = '1' "    74                     if ($rec = $this->db->fetchAssoc($set)) {
    75                         $status = self::LP_STATUS_COMPLETED_NUM;
    91         ?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)