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;
$this->candelete = $candelete;
$this->reporturl = $reporturl;
$this->displayoptions = $displayoptions;
+ $this->context = $context;
}
function build_table(){
global $CFG, $DB;
$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()) {