function qformat_xml::import_category in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/xml/format.php \qformat_xml::import_category()
this is not a real question type. It's a dummy type used to specify the import category format is: <question type="category"> <category>tom/dick/harry</category> </question>
1 call to qformat_xml::import_category()
- qformat_xml::readquestions in includes/
moodle/ question/ format/ xml/ format.php - parse the array of lines into an array of questions this *could* burn memory - but it won't happen that much so fingers crossed!
File
- includes/
moodle/ question/ format/ xml/ format.php, line 506
Class
Code
function import_category($question) {
$qo = new stdClass();
$qo->qtype = 'category';
$qo->category = $this
->import_text($question['#']['category'][0]['#']['text']);
return $qo;
}