3 declare(strict_types=0);
    34         $self = self::getInstanceByObjId($a_obj_id);
    35         return count($self->getNotAttempted());
    43         $self = self::getInstanceByObjId($a_obj_id);
    44         return $self->getNotAttempted();
    60         $self = self::getInstanceByObjId($a_obj_id);
    61         return count($self->getInProgress());
    69         $self = self::getInstanceByObjId($a_obj_id);
    70         return $self->getInProgress();
    86         $self = self::getInstanceByObjId($a_obj_id);
    87         return count($self->getCompleted());
    95         $self = self::getInstanceByObjId($a_obj_id);
    96         return $self->getCompleted();
   112         $self = self::getInstanceByObjId($a_obj_id);
   113         return $self->getStatusInfo();
   128         $database = $DIC->database();
   129         $query = 
'select status,usr_id from ut_lp_marks ' .
   130             'where obj_id = ' . $database->quote(
   131                 $this->target_obj_id,
   134         $res = $database->query($query);
   143             if (array_key_exists((
int) $row->status, $info)) {
   144                 $info[(
int) $row->status][] = (
int) $row->usr_id;
   147         $this->status_info = $info;
   159             $this->target_obj_id,
   166         return \ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM;
   170         int $a_reference_obj_id
   172         if (!isset(self::$instances[$a_reference_obj_id])) {
   173             self::$instances[$a_reference_obj_id] = 
new self(
   177         return self::$instances[$a_reference_obj_id];
 const LP_STATUS_COMPLETED_NUM
 
determineStatus(int $a_obj_id, int $a_usr_id, object $a_obj=null)
 
static _getStatusInfo(int $a_obj_id)
 
static _getCompleted(int $a_obj_id)
 
readStatusInfo(int $a_obj_id)
 
readTargetObjId(int $a_obj_id)
 
static _getNotAttempted(int $a_obj_id)
 
const LP_STATUS_IN_PROGRESS_NUM
 
static _getCountInProgress(int $a_obj_id)
 
static _lookupObjId(int $ref_id)
 
static _getCountNotAttempted(int $a_obj_id)
 
Class ilLPStatusCourseReference. 
 
__construct(int $a_obj_id)
 
static getInstanceByObjId(int $a_reference_obj_id)
 
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status. 
 
const LP_STATUS_NOT_ATTEMPTED_NUM
 
static _getInProgress(int $a_obj_id)
 
static _lookupTargetRefId(int $a_obj_id)
 
static _getCountCompleted(int $a_obj_id)
 
const LP_STATUS_FAILED_NUM