|
|
|
@ -161,6 +161,7 @@ class WSReport extends WS { |
|
|
|
|
$course_code = CourseManager::get_course_code_from_course_id($course_id); |
|
|
|
|
} |
|
|
|
|
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpath.class.php'; |
|
|
|
|
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathItem.class.php'; |
|
|
|
|
$lp = new learnpath($course_code, $learnpath_id, $user_id); |
|
|
|
|
$return = array( |
|
|
|
|
'min_score' => $lp->items[$learnpath_item_id]->min_score, |
|
|
|
@ -199,6 +200,7 @@ class WSReport extends WS { |
|
|
|
|
$course_code = CourseManager::get_course_code_from_course_id($course_id); |
|
|
|
|
} |
|
|
|
|
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpath.class.php'; |
|
|
|
|
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpathItem.class.php'; |
|
|
|
|
$lp = new learnpath($course_code, $learnpath_id, $user_id); |
|
|
|
|
return $lp->items[$learnpath_item_id]->status; |
|
|
|
|
} |
|
|
|
|