original_string: protected function output_individual_question_data($quiz, $questionstat) {
          global $OUTPUT;
  
          // On-screen display. Show a summary of the question's place in the quiz,
          // and the question statistics.
          $datumfromtable = $this->table->format_row($questionstat);
  
          // Set up the question info table.
          $questioninfotable = new html_table();
          $questioninfotable->align = array('center', 'center');
          $questioninfotable->width = '60%';
          $questioninfotable->attributes['class'] = 'generaltable titlesleft';
  
          $questioninfotable->data = array();
          $questioninfotable->data[] = array(get_string('modulename', 'quiz'), $quiz->name);
          $questioninfotable->data[] = array(get_string('questionname', 'quiz_statistics'),
                  $questionstat->question->name.'&nbsp;'.$datumfromtable['actions']);
  
          if ($questionstat->variant !== null) {
              $questioninfotable->data[] = array(get_string('variant', 'quiz_statistics'), $questionstat->variant);
  
          }
          $questioninfotable->data[] = array(get_string('questiontype', 'quiz_statistics'),
                  $datumfromtable['icon'] . '&nbsp;' .
                  question_bank::get_qtype($questionstat->question->qtype, false)->menu_name() . '&nbsp;' .
                  $datumfromtable['icon']);
          $questioninfotable->data[] = array(get_string('positions', 'quiz_statistics'),
                  $questionstat->positions);
  
          // Set up the question statistics table.
          $questionstatstable = new html_table();
          $questionstatstable->align = array('center', 'center');
          $questionstatstable->width = '60%';
          $questionstatstable->attributes['class'] = 'generaltable titlesleft';
  
          unset($datumfromtable['number']);
          unset($datumfromtable['icon']);
          $actions = $datumfromtable['actions'];
          unset($datumfromtable['actions']);
          unset($datumfromtable['name']);
          $labels = array(
              's' => get_string('attempts', 'quiz_statistics'),
              'facility' => get_string('facility', 'quiz_statistics'),
              'sd' => get_string('standarddeviationq', 'quiz_statistics'),
              'random_guess_score' => get_string('random_guess_score', 'quiz_statistics'),
              'intended_weight' => get_string('intended_weight', 'quiz_statistics'),
              'effective_weight' => get_string('effective_weight', 'quiz_statistics'),
              'discrimination_index' => get_string('discrimination_index', 'quiz_statistics'),
              'discriminative_efficiency' =>
                                  get_string('discriminative_efficiency', 'quiz_statistics')
          );
          foreach ($datumfromtable as $item => $value) {
              $questionstatstable->data[] = array($labels[$item], $value);
          }
  
          // Display the various bits.
          echo $OUTPUT->heading(get_string('questioninformation', 'quiz_statistics'), 3);
          echo html_writer::table($questioninfotable);
          echo $this->render_question_text($questionstat->question);
          echo $OUTPUT->heading(get_string('questionstatistics', 'quiz_statistics'), 3);
          echo html_writer::table($questionstatstable);
      }
code: protected function output_individual_question_data($quiz, $questionstat) {
          global $OUTPUT;
  
          // On-screen display. Show a summary of the question's place in the quiz,
          // and the question statistics.
          $datumfromtable = $this->table->format_row($questionstat);
  
          // Set up the question info table.
          $questioninfotable = new html_table();
          $questioninfotable->align = array('center', 'center');
          $questioninfotable->width = '60%';
          $questioninfotable->attributes['class'] = 'generaltable titlesleft';
  
          $questioninfotable->data = array();
          $questioninfotable->data[] = array(get_string('modulename', 'quiz'), $quiz->name);
          $questioninfotable->data[] = array(get_string('questionname', 'quiz_statistics'),
                  $questionstat->question->name.'&nbsp;'.$datumfromtable['actions']);
  
          if ($questionstat->variant !== null) {
              $questioninfotable->data[] = array(get_string('variant', 'quiz_statistics'), $questionstat->variant);
  
          }
          $questioninfotable->data[] = array(get_string('questiontype', 'quiz_statistics'),
                  $datumfromtable['icon'] . '&nbsp;' .
                  question_bank::get_qtype($questionstat->question->qtype, false)->menu_name() . '&nbsp;' .
                  $datumfromtable['icon']);
          $questioninfotable->data[] = array(get_string('positions', 'quiz_statistics'),
                  $questionstat->positions);
  
          // Set up the question statistics table.
          $questionstatstable = new html_table();
          $questionstatstable->align = array('center', 'center');
          $questionstatstable->width = '60%';
          $questionstatstable->attributes['class'] = 'generaltable titlesleft';
  
          unset($datumfromtable['number']);
          unset($datumfromtable['icon']);
          $actions = $datumfromtable['actions'];
          unset($datumfromtable['actions']);
          unset($datumfromtable['name']);
          $labels = array(
              's' => get_string('attempts', 'quiz_statistics'),
              'facility' => get_string('facility', 'quiz_statistics'),
              'sd' => get_string('standarddeviationq', 'quiz_statistics'),
              'random_guess_score' => get_string('random_guess_score', 'quiz_statistics'),
              'intended_weight' => get_string('intended_weight', 'quiz_statistics'),
              'effective_weight' => get_string('effective_weight', 'quiz_statistics'),
              'discrimination_index' => get_string('discrimination_index', 'quiz_statistics'),
              'discriminative_efficiency' =>
                                  get_string('discriminative_efficiency', 'quiz_statistics')
          );
          foreach ($datumfromtable as $item => $value) {
              $questionstatstable->data[] = array($labels[$item], $value);
          }
  
          // Display the various bits.
          echo $OUTPUT->heading(get_string('questioninformation', 'quiz_statistics'), 3);
          echo html_writer::table($questioninfotable);
          echo $this->render_question_text($questionstat->question);
          echo $OUTPUT->heading(get_string('questionstatistics', 'quiz_statistics'), 3);
          echo html_writer::table($questionstatstable);
      }
code_tokens: protected function output_individual_question_data ( $ quiz , $ questionstat ) { global $ OUTPUT ; // On-screen display. Show a summary of the question's place in the quiz, // and the question statistics. $ datumfromtable = $ this -> table -> format_row ( $ questionstat ) ; // Set up the question info table. $ questioninfotable = new html_table ( ) ; $ questioninfotable -> align = array ( 'center' , 'center' ) ; $ questioninfotable -> width = '60%' ; $ questioninfotable -> attributes [ 'class' ] = 'generaltable titlesleft' ; $ questioninfotable -> data = array ( ) ; $ questioninfotable -> data [ ] = array ( get_string ( 'modulename' , 'quiz' ) , $ quiz -> name ) ; $ questioninfotable -> data [ ] = array ( get_string ( 'questionname' , 'quiz_statistics' ) , $ questionstat -> question -> name . '&nbsp;' . $ datumfromtable [ 'actions' ] ) ; if ( $ questionstat -> variant !== null ) { $ questioninfotable -> data [ ] = array ( get_string ( 'variant' , 'quiz_statistics' ) , $ questionstat -> variant ) ; } $ questioninfotable -> data [ ] = array ( get_string ( 'questiontype' , 'quiz_statistics' ) , $ datumfromtable [ 'icon' ] . '&nbsp;' . question_bank :: get_qtype ( $ questionstat -> question -> qtype , false ) -> menu_name ( ) . '&nbsp;' . $ datumfromtable [ 'icon' ] ) ; $ questioninfotable -> data [ ] = array ( get_string ( 'positions' , 'quiz_statistics' ) , $ questionstat -> positions ) ; // Set up the question statistics table. $ questionstatstable = new html_table ( ) ; $ questionstatstable -> align = array ( 'center' , 'center' ) ; $ questionstatstable -> width = '60%' ; $ questionstatstable -> attributes [ 'class' ] = 'generaltable titlesleft' ; unset ( $ datumfromtable [ 'number' ] ) ; unset ( $ datumfromtable [ 'icon' ] ) ; $ actions = $ datumfromtable [ 'actions' ] ; unset ( $ datumfromtable [ 'actions' ] ) ; unset ( $ datumfromtable [ 'name' ] ) ; $ labels = array ( 's' => get_string ( 'attempts' , 'quiz_statistics' ) , 'facility' => get_string ( 'facility' , 'quiz_statistics' ) , 'sd' => get_string ( 'standarddeviationq' , 'quiz_statistics' ) , 'random_guess_score' => get_string ( 'random_guess_score' , 'quiz_statistics' ) , 'intended_weight' => get_string ( 'intended_weight' , 'quiz_statistics' ) , 'effective_weight' => get_string ( 'effective_weight' , 'quiz_statistics' ) , 'discrimination_index' => get_string ( 'discrimination_index' , 'quiz_statistics' ) , 'discriminative_efficiency' => get_string ( 'discriminative_efficiency' , 'quiz_statistics' ) ) ; foreach ( $ datumfromtable as $ item => $ value ) { $ questionstatstable -> data [ ] = array ( $ labels [ $ item ] , $ value ) ; } // Display the various bits. echo $ OUTPUT -> heading ( get_string ( 'questioninformation' , 'quiz_statistics' ) , 3 ) ; echo html_writer :: table ( $ questioninfotable ) ; echo $ this -> render_question_text ( $ questionstat -> question ) ; echo $ OUTPUT -> heading ( get_string ( 'questionstatistics' , 'quiz_statistics' ) , 3 ) ; echo html_writer :: table ( $ questionstatstable ) ; }
docstring: Display the statistical and introductory information about a question.
  Only called when not downloading.
  
  @param object                                         $quiz         the quiz settings.
  @param \core_question\statistics\questions\calculated $questionstat the question to report on.
docstring_tokens: Display the statistical and introductory information about a question . Only called when not downloading .