MDL-32322 quiz reports: fix more strict syntax issues.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user