]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14216 "Improvements to regrade report - improved reporting of actions and dry...
authorjamiesensei <jamiesensei>
Fri, 11 Jul 2008 07:48:25 +0000 (07:48 +0000)
committerjamiesensei <jamiesensei>
Fri, 11 Jul 2008 07:48:25 +0000 (07:48 +0000)
mod/quiz/report/overview/overview_table.php
mod/quiz/report/overview/report.php

index c58bc1af27e64992c6b43c2e15ffb14d97bd86f5..fbd3ac6d4677da770a3e6398d8f096d816d8c8ed 100644 (file)
@@ -9,7 +9,7 @@ class quiz_report_overview_table extends table_sql {
     var $displayoptions;
 
     function quiz_report_overview_table($quiz , $qmsubselect, $groupstudents,
-                $students, $detailedmarks, $questions, $candelete, $reporturl, $displayoptions){
+                $students, $detailedmarks, $questions, $candelete, $reporturl, $displayoptions, $context){
         parent::table_sql('mod-quiz-report-overview-report');
         $this->quiz = $quiz;
         $this->qmsubselect = $qmsubselect;
@@ -20,6 +20,7 @@ class quiz_report_overview_table extends table_sql {
         $this->candelete = $candelete;
         $this->reporturl = $reporturl;
         $this->displayoptions = $displayoptions;
+        $this->context = $context;
     }
     function build_table(){
         global $CFG, $DB;
index 83110926bd9d33114319384907fd4db01f89368a..329bf37d7f31990b6e0994967b441ded914d7b10 100644 (file)
@@ -152,7 +152,8 @@ class quiz_overview_report extends quiz_default_report {
             $questions = array();
         }
         $table = new quiz_report_overview_table($quiz , $qmsubselect, $groupstudents,
-                $students, $detailedmarks, $questions, $candelete, $reporturl, $displayoptions);
+                $students, $detailedmarks, $questions, $candelete, $reporturl,
+                $displayoptions, $this->context);
         $table->is_downloading($download, get_string('reportoverview','quiz'),
                     "$COURSE->shortname ".format_string($quiz->name,true));
         if (!$table->is_downloading()) {