24 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveResult.php');
49 public static function isSuggested($a_usr_id, $a_crs_id, $a_objective_id)
51 if (!is_array(self::$suggested[$a_usr_id][$a_crs_id])) {
52 self::$suggested[$a_usr_id][$a_crs_id] = self::readSuggested($a_usr_id, $a_crs_id);
54 return in_array($a_objective_id, self::$suggested[$a_usr_id][$a_crs_id]) ? true :
false;
66 public static function getStatus($a_usr_id, $a_crs_id)
68 if (isset(self::$status[$a_usr_id][$a_crs_id])) {
69 return self::$status[$a_usr_id][$a_crs_id];
72 return self::$status[$a_usr_id][$a_crs_id] = $tmp_res->getStatus($a_crs_id);
Caches results for a specific user and course.
static _getSuggested($a_user_id, $a_crs_id, $a_status=IL_OBJECTIVE_STATUS_FINAL)
static isSuggested($a_usr_id, $a_crs_id, $a_objective_id)
check if objective is suggested
static getStatus($a_usr_id, $a_crs_id)
get status of user
readSuggested($a_usr_id, $a_crs_id)
read suggested objectives