17 return count(self::_getInProgress($a_obj_id));
23 return $prg->getIdsOfUsersWithNotCompletedAndRelevantProgress();
28 return count(self::_getCompleted($a_obj_id));
34 return $prg->getIdsOfUsersWithCompletedProgress();
40 return $prg->getIdsOfUsersWithFailedProgress();
46 $progresses = $prg->getProgressesOf($a_user_id);
51 foreach ($progresses as $progress) {
52 if ($progress->isSuccessful()) {
53 if (!$progress->isSuccessfulExpired()) {
59 if ($progress->isRelevant()) {
62 if ($progress->isFailed()) {
An exception for terminatinating execution or to throw for unit testing.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _getFailed($a_obj_id)
static _getCountCompleted($a_obj_id)
static _getInProgress($a_obj_id)
static _getCompleted($a_obj_id)
static _getCountInProgress($a_obj_id)
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
const LP_STATUS_FAILED_NUM