|
|
|
@ -26,6 +26,7 @@ $data = array(); |
|
|
|
|
//Question title # of students who tool it Lowest score Average Highest score Maximum score |
|
|
|
|
$headers = array( |
|
|
|
|
get_lang('Question'), |
|
|
|
|
get_lang('QuestionType'), |
|
|
|
|
get_lang('NumberOfStudentsWhoTryTheExercise'), |
|
|
|
|
get_lang('LowestScore'), |
|
|
|
|
get_lang('AverageScore'), |
|
|
|
@ -39,6 +40,7 @@ if (!empty($question_list)) { |
|
|
|
|
$exercise_stats = get_student_stats_by_question($question_id, $exercise_id, api_get_course_id(), api_get_session_id()); |
|
|
|
|
|
|
|
|
|
$data[$question_id]['name'] = cut($question_obj->question, 100); |
|
|
|
|
$data[$question_id]['type'] = $question_obj->get_question_type_name(); |
|
|
|
|
$data[$question_id]['students_who_try_exercise'] = $exercise_stats['users']; |
|
|
|
|
$data[$question_id]['lowest_score'] = round($exercise_stats['min'], 2); |
|
|
|
|
$data[$question_id]['average_score'] = round($exercise_stats['average'], 2); |
|
|
|
|