Permalink
Browse files

MDL-20636 moved header creation into seperate funciton

  • Loading branch information...
1 parent 8e8bd3f commit 0de4393945b117aeb9eb72b88cb0549d9f954ce7 Dean Lennard committed with timhunt May 11, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 mod/quiz/renderer.php
View
@@ -625,6 +625,13 @@ public function view_information($course, $quiz, $cm, $context, $messages) {
}
/**
+ * Generates the table heading.
+ */
+ public function view_table_heading() {
+ return $this->heading(get_string('summaryofattempts', 'quiz'));
+ }
+
+ /**
* Generates the table of data
*
* @param array $quiz Array contining quiz data
@@ -636,7 +643,7 @@ public function view_table($quiz, $context, $viewobj) {
if (!$viewobj->attempts) {
return $output;
}
- $output .= $this->heading(get_string('summaryofattempts', 'quiz'));
+ $output .= $this->view_table_heading();
// Prepare table header
$table = new html_table();

0 comments on commit 0de4393

Please sign in to comment.