5include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';
 
    6include_once 
'./Services/MetaData/classes/class.ilMDEducational.php'; 
 
   35        $tlt = $status_info[
'tlt'];
 
   37        include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
   40        foreach ($all as $event) {
 
   41            if ($event[
'spent_seconds'] < $tlt) {
 
   42                $user_ids[] = $event[
'usr_id'];
 
   45        return $user_ids ? $user_ids : array();
 
   55        $tlt = $status_info[
'tlt'];
 
   58        include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
   61        foreach ($all as $event) {
 
   62            if ($event[
'spent_seconds'] >= $tlt) {
 
   63                $user_ids[] = $event[
'usr_id'];
 
   66        return $user_ids ? $user_ids : array();
 
   88        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
   92        switch ($ilObjDataCache->lookupType($a_obj_id)) {
 
   99                    $tlt = $status_info[
'tlt'];
 
  101                    include_once 
'./Services/Tracking/classes/class.ilChangeEvent.php';
 
  103                    if ($re[0][
'spent_seconds'] >= $tlt) {
 
  124        $spent = (int) $re[0][
"spent_seconds"];
 
  127            $per = min(100, 100 / $tlt * $spent);
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupReadEvents($obj_id, $usr_id=null)
Reads all read events which occured on the object which happened after the last time the user caught ...
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getCompleted($a_obj_id)
static _getStatusInfo($a_obj_id)
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _getStatusInfo($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($a_rbac_id, $a_obj_id=0)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc