diff --git a/mod/quiz/report/statistics/report.php b/mod/quiz/report/statistics/report.php index 815aef0d7ba..d87c7d103cc 100644 --- a/mod/quiz/report/statistics/report.php +++ b/mod/quiz/report/statistics/report.php @@ -146,7 +146,7 @@ class quiz_statistics_report extends quiz_default_report { // Set up the table, if there is data. if ($s) { - $this->table->setup($quiz, $cm->id, $reporturl, $s); + $this->table->statistics_setup($quiz, $cm->id, $reporturl, $s); } // Print the page header stuff (if not downloading. @@ -391,7 +391,7 @@ class quiz_statistics_report extends quiz_default_report { $responesstats = new quiz_statistics_response_analyser($question); $responesstats->load_cached($quizstats->id); - $qtable->setup($reporturl, $question, $responesstats); + $qtable->question_setup($reporturl, $question, $responesstats); if ($this->table->is_downloading()) { $exportclass->output_headers($qtable->headers); } diff --git a/mod/quiz/report/statistics/statistics_question_table.php b/mod/quiz/report/statistics/statistics_question_table.php index 133ee274bcb..25ee3c87bd1 100644 --- a/mod/quiz/report/statistics/statistics_question_table.php +++ b/mod/quiz/report/statistics/statistics_question_table.php @@ -53,14 +53,14 @@ class quiz_statistics_question_table extends flexible_table { } /** - * Setup the columns and headers and other properties of the table and then + * Set up the columns and headers and other properties of the table and then * call flexible_table::setup() method. * * @param moodle_url $reporturl the URL to redisplay this report. * @param object $question a question with a _stats field * @param bool $hassubqs */ - public function setup($reporturl, $questiondata, + public function question_setup($reporturl, $questiondata, quiz_statistics_response_analyser $responesstats) { $this->questiondata = $questiondata; diff --git a/mod/quiz/report/statistics/statistics_table.php b/mod/quiz/report/statistics/statistics_table.php index d680ab7f298..4e801addb1b 100644 --- a/mod/quiz/report/statistics/statistics_table.php +++ b/mod/quiz/report/statistics/statistics_table.php @@ -50,7 +50,7 @@ class quiz_statistics_table extends flexible_table { } /** - * Setup the columns and headers and other properties of the table and then + * Set up the columns and headers and other properties of the table and then * call flexible_table::setup() method. * * @param object $quiz the quiz settings @@ -58,7 +58,7 @@ class quiz_statistics_table extends flexible_table { * @param moodle_url $reporturl the URL to redisplay this report. * @param int $s number of attempts included in the statistics. */ - public function setup($quiz, $cmid, $reporturl, $s) { + public function statistics_setup($quiz, $cmid, $reporturl, $s) { $this->quiz = $quiz; $this->cmid = $cmid;