function qformat_blackboard_6::process_feedback in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/blackboard_6/format.php \qformat_blackboard_6::process_feedback()
1 call to qformat_blackboard_6::process_feedback()
- qformat_blackboard_6::create_raw_question in includes/
moodle/ question/ format/ blackboard_6/ format.php
File
- includes/
moodle/ question/ format/ blackboard_6/ format.php, line 542
Class
Code
function process_feedback($feedbackset, &$feedbacks) {
foreach ($feedbackset as $bb_feedback) {
// Added line $feedback=null so that $feedback does not get reused in the loop
// and added the the $feedbacks[] array multiple times
$feedback = null;
$feedback->ident = $bb_feedback['@']['ident'];
if (isset($bb_feedback['#']['flow_mat'][0])) {
$this
->process_block($bb_feedback['#']['flow_mat'][0], $feedback);
}
elseif (isset($bb_feedback['#']['solution'][0]['#']['solutionmaterial'][0]['#']['flow_mat'][0])) {
$this
->process_block($bb_feedback['#']['solution'][0]['#']['solutionmaterial'][0]['#']['flow_mat'][0], $feedback);
}
$feedbacks[] = $feedback;
}
}