Added new grading functions to work with course/grades.php
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user