public function review_page(quiz_attempt $attemptobj, $slots, $page, $showall,$lastpage, mod_quiz_display_options $displayoptions, $summarydata)
|
{
|
output = '';
|
$output .= $this->header();$output .= $this->review_summary_table($summarydata, $page);
|
//Here look the order of parameters!!!!!!!
|
//first is $page, after $showall .... $showall again?
|
$output .= $this->review_form($page, $showall, $displayoptions,$this->questions($attemptobj, true, $slots, $page, $showall, $displayoptions),$attemptobj, $showall);
|
$output .= $this->review_next_navigation($attemptobj, $page, $lastpage);
|
$output .= $this->footer();
|
return $output;
|
}
|
|
//Look here
|
//$page is not first parameter?
|
//$summarydata?
|
public function review_form($summarydata, $page, $displayoptions, $content, $attemptobj, $showall)
|
{
|
if ($displayoptions->flags != question_display_options::EDITABLE) {
|
return $content;
|
}
|
|
$this->page->requires->js_init_call('M.mod_quiz.init_review_form', null, false,
|
quiz_get_js_module());
|
|
$output = '';
|
$output .= html_writer::start_tag('form', array('action' => $attemptobj->review_url(0,
|
$page, $showall), 'method' => 'post', 'class' => 'questionflagsaveform'));
|
$output .= html_writer::start_tag('div');
|
$output .= $content;
|
$output .= html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey',
|
'value' => sesskey()));
|
$output .= html_writer::start_tag('div', array('class' => 'submitbtns'));
|
$output .= html_writer::empty_tag('input', array('type' => 'submit',
|
'class' => 'questionflagsavebutton', 'name' => 'savingflags',
|
'value' => get_string('saveflags', 'question')));
|
$output .= html_writer::end_tag('div');
|
$output .= html_writer::end_tag('div');
|
$output .= html_writer::end_tag('form');
|
|
return $output;
|
}
|