13 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
19 return count(self::_getInProgress($a_obj_id));
24 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
26 return $prg->getIdsOfUsersWithNotCompletedAndRelevantProgress();
31 return count(self::_getCompleted($a_obj_id));
36 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
38 return $prg->getIdsOfUsersWithCompletedProgress();
43 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
45 return $prg->getIdsOfUsersWithFailedProgress();
50 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
52 $progresses = $prg->getProgressesOf($a_user_id);
57 foreach ($progresses as $progress) {
58 if ($progress->isSuccessful()) {
62 if ($progress->isRelevant()) {
65 $progress->recalculateFailedToDeadline();
66 if ($progress->isFailed()) {
const LP_STATUS_COMPLETED_NUM
static _getFailed($a_obj_id)
const LP_STATUS_IN_PROGRESS_NUM
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Class ilObjStudyProgramme.
const LP_STATUS_NOT_ATTEMPTED_NUM
static _getCountInProgress($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
static _getCountCompleted($a_obj_id)
static _getCompleted($a_obj_id)
const LP_STATUS_FAILED_NUM