]> git.mjollnir.org Git - moodle.git/commitdiff
adding current groupid to grade_export class - soon to be used in plugins
authorskodak <skodak>
Fri, 31 Aug 2007 12:22:58 +0000 (12:22 +0000)
committerskodak <skodak>
Fri, 31 Aug 2007 12:22:58 +0000 (12:22 +0000)
grade/export/lib.php

index 82f25397f8464dadde77bbaa91cd98a8ffbf3625..90725f532b84041f9749cdd059c621eb5da63a06 100755 (executable)
@@ -34,6 +34,7 @@ class grade_export {
 
     var $id; // course id
     var $grade_items; // array of grade_items
+    var $groupid;
     var $grades = array();    // Collect all grades in this array
     var $comments = array(); // Collect all comments for each grade
     var $columns = array();     // Accumulate column names in this array.
@@ -120,6 +121,8 @@ class grade_export {
             $currentgroup = false;
         }
 
+        $this->groupid = $currentgroup;
+
         if ($currentgroup) {
             $this->students = get_group_students($currentgroup, "u.lastname ASC");
         } else {