You are here

function qformat_xml::import_description in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/question/format/xml/format.php \qformat_xml::import_description()

import description type question

Parameters

array question question array from xml tree:

Return value

object question object

1 call to qformat_xml::import_description()
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 306

Class

qformat_xml

Code

function import_description($question) {

  // get common parts
  $qo = $this
    ->import_headers($question);

  // header parts particular to shortanswer
  $qo->qtype = DESCRIPTION;
  $qo->defaultgrade = 0;
  $qo->length = 0;
  return $qo;
}