3declare(strict_types=0);
20 $tlt = $status_info[
'tlt'];
25 foreach ($all as $event) {
26 if ($event[
'spent_seconds'] < $tlt) {
27 $user_ids[] = (
int) $event[
'usr_id'];
40 $tlt = $status_info[
'tlt'];
45 foreach ($all as $event) {
46 if ($event[
'spent_seconds'] >= $tlt) {
47 $user_ids[] = (
int) $event[
'usr_id'];
67 switch ($this->ilObjDataCache->lookupType($a_obj_id)) {
74 $tlt = $status_info[
'tlt'];
80 if ($re[0][
'spent_seconds'] >= $tlt) {
96 $spent = (
int) ($re[0][
"spent_seconds"] ?? 0);
99 $per = min(100, 100 / $tlt * $spent);
static _lookupReadEvents($obj_id, $usr_id=null)
Reads all read events which occured on the object.
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)
static _getStatusInfo(int $a_obj_id)
static _getInProgress(int $a_obj_id)
determinePercentage(int $a_obj_id, int $a_usr_id, ?object $a_obj=null)
static _getCompleted(int $a_obj_id)
static _getStatusInfo(int $a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
static _getTypicalLearningTimeSeconds(int $a_rbac_id, int $a_obj_id=0)