function qformat_examview::parse_sa in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/examview/format.php \qformat_examview::parse_sa()
1 call to qformat_examview::parse_sa()
- qformat_examview::readquestion in includes/
moodle/ question/ format/ examview/ format.php - Given the data known to define a question in this format, this function converts it into a question object suitable for processing and insertion into Moodle.
File
- includes/
moodle/ question/ format/ examview/ format.php, line 256
Class
Code
function parse_sa($qrec, $question) {
$feedback = trim($this
->unxmlise($qrec['answer'][0]['#']));
$question->feedback = $feedback;
$question->fraction = 0;
return $question;
}