MDL-20636 Quiz index and reviewquestion pages work.

This commit is contained in:
Tim Hunt
2011-02-09 20:18:28 +00:00
parent b2607ccc19
commit 729c372b1b
4 changed files with 290 additions and 273 deletions
+5 -5
View File
@@ -34,7 +34,7 @@
* @copyright 2009 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class core_question_renderer extends renderer_base {
class core_question_renderer extends plugin_renderer_base {
/**
* Generate the display of a question in a particular state, and with certain
@@ -331,10 +331,10 @@ class core_question_renderer extends renderer_base {
if ($stepno == $qa->get_num_steps()) {
$rowclass = 'current';
} else if (!empty($options->questionreviewlink)) {
$stepno = link_to_popup_window($options->questionreviewlink .
'&slot=' . $qa->get_slot() .
'&step=' . $i, 'reviewquestion', $stepno, 450, 650,
get_string('reviewresponse', 'quiz'), 'none', true);
$url = new moodle_url($options->questionreviewlink, array('slot' => $qa->get_slot(), 'step' => $i));
$stepno = $this->output->action_link($url, $stepno,
new popup_action('click', $url, 'reviewquestion', array('width' => 450, 'height' => 650)),
array('title' => get_string('reviewresponse', 'quiz')));
}
$user = new stdClass;
$user->id = $step->get_user_id();