protected function download_quiz_info_table($quizinfo) {
        global $OUTPUT;

        // HTML download is a special case.
        if ($this->table->is_downloading() == 'html') {
            echo $OUTPUT->heading(get_string('quizinformation', 'quiz_statistics'), 3);
            echo $this->output_quiz_info_table($quizinfo);
            return;
        }

        // Reformat the data ready for output.
        $headers = array();
        $row = array();
        foreach ($quizinfo as $heading => $value) {
            $headers[] = $heading;
            $row[] = $value;
        }

        // Do the output.
        $exportclass = $this->table->export_class_instance();
        $exportclass->start_table(get_string('quizinformation', 'quiz_statistics'));
        $exportclass->output_headers($headers);
        $exportclass->add_data($row);
        $exportclass->finish_table();
    }
protected function download_quiz_info_table($quizinfo) {
        global $OUTPUT;

        // HTML download is a special case.
        if ($this->table->is_downloading() == 'html') {
            echo $OUTPUT->heading(get_string('quizinformation', 'quiz_statistics'), 3);
            echo $this->output_quiz_info_table($quizinfo);
            return;
        }

        // Reformat the data ready for output.
        $headers = array();
        $row = array();
        foreach ($quizinfo as $heading => $value) {
            $headers[] = $heading;
            $row[] = $value;
        }

        // Do the output.
        $exportclass = $this->table->export_class_instance();
        $exportclass->start_table(get_string('quizinformation', 'quiz_statistics'));
        $exportclass->output_headers($headers);
        $exportclass->add_data($row);
        $exportclass->finish_table();
    }
protected function download_quiz_info_table ( $ quizinfo ) { global $ OUTPUT ; // HTML download is a special case. if ( $ this -> table -> is_downloading ( ) == 'html' ) { echo $ OUTPUT -> heading ( get_string ( 'quizinformation' , 'quiz_statistics' ) , 3 ) ; echo $ this -> output_quiz_info_table ( $ quizinfo ) ; return ; } // Reformat the data ready for output. $ headers = array ( ) ; $ row = array ( ) ; foreach ( $ quizinfo as $ heading => $ value ) { $ headers [ ] = $ heading ; $ row [ ] = $ value ; } // Do the output. $ exportclass = $ this -> table -> export_class_instance ( ) ; $ exportclass -> start_table ( get_string ( 'quizinformation' , 'quiz_statistics' ) ) ; $ exportclass -> output_headers ( $ headers ) ; $ exportclass -> add_data ( $ row ) ; $ exportclass -> finish_table ( ) ; }
Download the table of overall quiz statistics.

@param array $quizinfo as returned by {@link get_formatted_quiz_info_data()}.
Download the table of overall quiz statistics .