36 $this->logger =
$DIC->logger()->trac();
49 return count($self->getNotAttempted());
58 return $self->getNotAttempted();
75 return count($self->getInProgress());
84 return $self->getInProgress();
101 return count($self->getCompleted());
110 return $self->getCompleted();
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];
An exception for terminatinating execution or to throw for unit testing.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
Class ilLPStatusCourseReference.
static getInstanceByObjId($a_reference_obj_id)
static _getStatusInfo($a_obj_id)
readTargetObjId($a_obj_id)
__construct($a_obj_id)
ilLPStatusCourseReference constructor.
readStatusInfo($a_obj_id)
static _getInProgress($a_obj_id)
static _getCountNotAttempted($a_obj_id)
static _getCountCompleted($a_obj_id)
determineStatus($a_obj_id, $a_usr_id, $a_obj=null)
Determine status.return
static _getCountInProgress($a_obj_id)
static _getNotAttempted($a_obj_id)
static _getCompleted($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
const LP_STATUS_FAILED_NUM
static _lookupObjId($a_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
foreach($_POST as $key=> $value) $res