Skip to content
Snippets Groups Projects

Vips modification feedback, re #203

Merged Elmar Ludwig requested to merge vips-modification-feedback into master
4 files
+ 39
17
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 11
0
@@ -186,6 +186,17 @@ class VipsAssignment extends SimpleORMap
$data['options']['max_tries'] = (int) $test->limit['tries'];
}
// feedback options for assignment
if ($test->option->feedbackitems) {
$feedback_array = [];
foreach ($test->option->feedbackitems->feedback as $feedbackitem) {
$feedback_array[] = [
'threshold' => (int) $feedbackitem['threshold'],
'feedback' => Studip\Markup::purifyHtml(trim($feedbackitem))
];
}
}
if ($test->option['scoring-mode'] == 'negative_points') {
$data['options']['evaluation_mode'] = 1;
} else if ($test->option['scoring-mode'] == 'all_or_nothing') {
Loading