/** * Renders the review question pop-up. * * @param quiz_attempt $attemptobj an instance of quiz_attempt. * @param int $slot which question to display. * @param int $seq which step of the question attempt to show. null = latest. * @param mod_quiz_display_options $displayoptions instance of mod_quiz_display_options. * @param array $summarydata contains all table data * @return $output containing html data. */ public function review_question_page(quiz_attempt $attemptobj, $slot, $seq, mod_quiz_display_options $displayoptions, $summarydata) { $output = ''; $output .= $this->header(); $output .= $this->review_summary_table($summarydata, 0); if (!is_null($seq)) { $output .= $attemptobj->render_question_at_step($slot, $seq, true, $this); } else { $output .= $attemptobj->render_question($slot, true, $this); } $output .= $this->close_window_button(); $output .= $this->footer(); return $output; }