24 if (!isset(self::$userResultCache[
$objId])) {
25 self::$userResultCache[
$objId] = array();
28 if (!isset(self::$userResultCache[
$objId][$usrId])) {
30 self::$userResultCache[
$objId][$usrId] = $ltiUserResult;
33 return self::$userResultCache[
$objId][$usrId];
51 $ltiMasteryScore = $object->getMasteryScore();
53 if ($ltiResult->getResult() >= $ltiMasteryScore) {
68 return $ltiResult->getResult() * 100;
An exception for terminatinating execution or to throw for unit testing.
Class ilLPStatusLtiOutcome.
getLtiUserResult($objId, $usrId)
determinePercentage($a_obj_id, $a_usr_id, $a_obj=null)
Determine percentage.
ensureObject($objId, $object)
determineStatus($a_obj_id, $a_usr_id, $a_obj=null)
Determine status.
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 getByKeys($a_obj_id, $a_usr_id, $a_create=false)
Get a result by object and user key.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id