Added new grading functions to work with course/grades.php

This commit is contained in:
moodler
2002-10-17 07:23:51 +00:00
parent 3486b7bee5
commit d0ac6bc236
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -217,6 +217,12 @@ function assignment_print_recent_activity(&$logs, $isteacher=false) {
return $content;
}
function assignment_grades($assignmentid) {
/// Must return an array of grades, indexed by user. The grade is called "grade".
return get_records("assignment_submissions", "assignment", $assignmentid, "user ASC", "user,grade");
}
//////////////////////////////////////////////////////////////////////////////////////
function assignment_file_area_name($assignment, $user) {
+5
View File
@@ -185,6 +185,11 @@ function quiz_cron () {
return true;
}
function quiz_grades($quizid) {
/// Must return an array of grades, indexed by user. The grade is called "grade".
return get_records("quiz_grades", "quiz", $quizid, "user ASC", "user,grade");
}
//////////////////////////////////////////////////////////////////////////////////////
/// Any other quiz functions go here. Each of them must have a name that