36 $this->logger = $DIC->logger()->trac();
48 $self = self::getInstanceByObjId($a_obj_id);
49 return count($self->getNotAttempted());
57 $self = self::getInstanceByObjId($a_obj_id);
58 return $self->getNotAttempted();
74 $self = self::getInstanceByObjId($a_obj_id);
75 return count($self->getInProgress());
83 $self = self::getInstanceByObjId($a_obj_id);
84 return $self->getInProgress();
100 $self = self::getInstanceByObjId($a_obj_id);
101 return count($self->getCompleted());
109 $self = self::getInstanceByObjId($a_obj_id);
110 return $self->getCompleted();
127 $self = self::getInstanceByObjId($a_obj_id);
128 return $self->getStatusInfo();
143 $database = $DIC->database();
144 $query =
'select status,usr_id from ut_lp_marks ' .
155 if (array_key_exists((
int) $row->status, $info)) {
156 $info[(int) $row->status][] = (
int) $row->usr_id;
159 $this->status_info = $info;
172 return \ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM;
182 if (!isset(self::$instances[$a_reference_obj_id])) {
183 self::$instances[$a_reference_obj_id] =
new self($a_reference_obj_id);
185 return self::$instances[$a_reference_obj_id];
const LP_STATUS_COMPLETED_NUM
readTargetObjId($a_obj_id)
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_usr_id, $a_obj=null)
const LP_STATUS_IN_PROGRESS_NUM
static _getCountInProgress($a_obj_id)
__construct($a_obj_id)
ilLPStatusCourseReference constructor.
static _getCompleted($a_obj_id)
static _getCountNotAttempted($a_obj_id)
readStatusInfo($a_obj_id)
Class ilLPStatusCourseReference.
foreach($_POST as $key=> $value) $res
static _getNotAttempted($a_obj_id)
static _getCountCompleted($a_obj_id)
static _lookupObjId($a_id)
static getInstanceByObjId($a_reference_obj_id)
const LP_STATUS_NOT_ATTEMPTED_NUM
__construct(Container $dic, ilPlugin $plugin)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
static _getStatusInfo($a_obj_id)
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
const LP_STATUS_FAILED_NUM