Skip to content

Commit

Permalink
MDL-20636 Changed renderer function scopes so they can be overridden.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Lennard authored and timhunt committed May 11, 2011
1 parent 2c3e2b5 commit 8e8bd3f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions mod/quiz/renderer.php
Expand Up @@ -347,7 +347,7 @@ public function attempt_page($attemptobj, $page, $accessmanager, $messages, $slo
*
* @param array $messages
*/
private function quiz_notices($messages) {
public function quiz_notices($messages) {
if (!$messages) {
return '';
}
Expand All @@ -364,7 +364,7 @@ private function quiz_notices($messages) {
* @param int $id ID of the attempt
* @param int $nextpage Next page number
*/
private function attempt_form($attemptobj, $page, $slots, $id, $nextpage) {
public function attempt_form($attemptobj, $page, $slots, $id, $nextpage) {
$output = '';

//Start Form
Expand Down Expand Up @@ -451,7 +451,7 @@ public function summary_page($attemptobj, $displayoptions) {
* @param quiz_attempt $attemptobj
* @param mod_quiz_display_options $displayoptions
*/
private function summary_table($attemptobj, $displayoptions) {
public function summary_table($attemptobj, $displayoptions) {
// Prepare the summary table header
$table = new html_table();
$table->attributes['class'] = 'generaltable quizsummaryofattempt boxaligncenter';
Expand Down Expand Up @@ -498,7 +498,7 @@ private function summary_table($attemptobj, $displayoptions) {
*
* @param quiz_attempt $attemptobj
*/
private function summary_page_controls($attemptobj) {
public function summary_page_controls($attemptobj) {
$output = '';
// countdown timer
$output .= $this->countdown_timer();
Expand Down Expand Up @@ -599,7 +599,7 @@ public function view_page_notenrolled($course, $quiz, $cm, $context, $messages)
* @param int $context The page contect ID
* @param array $messages Array containing any messages
*/
private function view_information($course, $quiz, $cm, $context, $messages) {
public function view_information($course, $quiz, $cm, $context, $messages) {
global $CFG;
$output = '';
// Print quiz name and description
Expand Down Expand Up @@ -631,7 +631,7 @@ private function view_information($course, $quiz, $cm, $context, $messages) {
* @param int $context The page context ID
* @param mod_quiz_view_object $viewobj
*/
private function view_table($quiz, $context, $viewobj) {
public function view_table($quiz, $context, $viewobj) {
$output = '';
if (!$viewobj->attempts) {
return $output;
Expand Down Expand Up @@ -773,7 +773,7 @@ private function view_table($quiz, $context, $viewobj) {
*
* @param mod_quiz_view_object $viewobj
*/
private function view_best_score($viewobj) {
public function view_best_score($viewobj) {
$output = '';
// Print information about the student's best score for this quiz if possible.
if (!$viewobj->moreattempts) {
Expand All @@ -790,7 +790,7 @@ private function view_best_score($viewobj) {
* @param int $cm The Course Module Id
* @param mod_quiz_view_object $viewobj
*/
private function view_result_info($quiz, $context, $cm, $viewobj) {
public function view_result_info($quiz, $context, $cm, $viewobj) {
$output = '';
if (!$viewobj->numattempts && !$viewobj->gradecolumn && is_null($viewobj->mygrade)) {
return $output;
Expand Down Expand Up @@ -847,7 +847,7 @@ private function view_result_info($quiz, $context, $cm, $viewobj) {
* @param mod_quiz_view_object $viewobj
* @param string $buttontext
*/
private function view_attempt_button($course, $quiz, $cm, $context, $viewobj, $buttontext) {
public function view_attempt_button($course, $quiz, $cm, $context, $viewobj, $buttontext) {
$output = '';
// Determine if we should be showing a start/continue attempt button,
// or a button to go back to the course page.
Expand Down Expand Up @@ -882,7 +882,7 @@ private function view_attempt_button($course, $quiz, $cm, $context, $viewobj, $b
* (e.g. a report) pass it in here. Default 0 which means no current group.
* @return string HTML fragment for the link.
*/
private function quiz_attempt_summary_link_to_reports($quiz, $cm, $context,
public function quiz_attempt_summary_link_to_reports($quiz, $cm, $context,
$returnzero = false, $currentgroup = 0) {
global $CFG;
$summary = quiz_num_attempt_summary($quiz, $cm, $returnzero, $currentgroup);
Expand Down

0 comments on commit 8e8bd3f

Please sign in to comment.