original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Download the table of overall quiz statistics.
  
  @param array $quizinfo as returned by {@link get_formatted_quiz_info_data()}.
docstring_tokens: Download the table of overall quiz statistics .