Example #1
0
 /**
  * Output the table that lists all the questions in the quiz with their statistics.
  *
  * @param \core_question\statistics\questions\all_calculated_for_qubaid_condition $questionstats the stats for all questions in
  *                                                                                               the quiz including subqs and
  *                                                                                               variants.
  */
 protected function output_quiz_structure_analysis_table($questionstats)
 {
     $tooutput = array();
     $limitvariants = !$this->table->is_downloading();
     foreach ($questionstats->get_all_slots() as $slot) {
         // Output the data for these question statistics.
         $tooutput = array_merge($tooutput, $questionstats->structure_analysis_for_one_slot($slot, $limitvariants));
     }
     $this->table->format_and_add_array_of_rows($tooutput);
 }