} else {
$question =& $this->questions[$stats->questionid];
}
- $this->_process_actual_responses($question, $state);
}
$this->questions[$qid]->_stats->effectiveweight = null;
}
}
+ }
+
+ function process_responses(){
+ foreach ($this->states as $state){
+ if ($this->questions[$state->question]->qtype == 'random'){
+ if ($realstate = question_get_real_state($state)){
+ $this->_process_actual_responses($this->subquestions[$realstate->question], $realstate);
+ }
+ } else {
+ $this->_process_actual_responses($this->questions[$state->question], $state);
+ }
+ }
$this->responses = quiz_report_unindex($this->responses);
}
/**
$qstats = new qstats($questions, $s, $sumgradesavg);
$qstats->get_records($quizid, $currentgroup, $groupstudents, $useallattempts);
$qstats->process_states();
+ $qstats->process_responses();
} else {
$qstats = false;
}