Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

*** empty log message ***

  • Loading branch information...
commit 6228beb135ad5bc58321dfa5c7bbfc7bfa950c67 1 parent 8e1314c
ecastrolt authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 mod/quiz/report/analysis/report.php
7 mod/quiz/report/analysis/report.php
@@ -121,12 +121,13 @@ function display($quiz, $cm, $course) { /// This function just displays the
121 121 if (!quiz_get_question_options($quizquestions)) {
122 122 error('Could not load question options');
123 123 }
124   -
  124 + echo "estoy aqui";
125 125 // Restore the question sessions to their most recent states
126 126 // creating new sessions where required
127 127 if (!$states = quiz_restore_question_sessions($quizquestions, $quiz, $attempt)) {
128 128 error('Could not restore question sessions');
129 129 }
  130 + print_object($states);
130 131 $numbers = explode(',', $questionlist);
131 132 $statsrow = array();
132 133 foreach ($numbers as $i) {
@@ -425,7 +426,7 @@ function report_question_stats(&$q, &$attemptscores, &$questionscores, $top, $bo
425 426 $sumg2 = $sumx2->x;
426 427 $sumq2 = $sumx2->y;
427 428 $sumxy = array_reduce($qstats, "stats_sumxy");
428   - $sumgq = $sumxy;
  429 + $sumgq = $sumxy->x;
429 430
430 431 $q['count'] = $n;
431 432 $q['facility'] = $sumq/$n;
@@ -670,7 +671,7 @@ function stats_sumx2($sum, $data){
670 671 }
671 672
672 673 function stats_sumxy($sum, $data){
673   - $sum += $data[0]*$data[1];
  674 + $sum->x += $data[0]*$data[1];
674 675 return $sum;
675 676 }
676 677

0 comments on commit 6228beb

Please sign in to comment.
Something went wrong with that request. Please try again.