You are here

function qformat_aiken::readquestion in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/question/format/aiken/format.php \qformat_aiken::readquestion()

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.

If your format does not use blank lines to delimit questions (e.g. an XML format) you must override 'readquestions' too

Parameters

$lines mixed data that represents question:

Return value

object question object

Overrides qformat_default::readquestion

File

includes/moodle/question/format/aiken/format.php, line 102

Class

qformat_aiken
Aiken format - a simple format for creating multiple choice questions (with only one correct choice, and no feedback).

Code

function readquestion($lines) {

  //this is no longer needed but might still be called by default.php
  return;
}