}
return $category;
}
+
/**
* Return complete file within an array, one item per line
* @param string filename name of file
$question->incorrectfeedback = '';
$question->answernumbering = 'abc';
$question->penalty = 0.1;
+ $question->length = 1;
// this option in case the questiontypes class wants
// to know where the data came from
return $newfile;
}
+
/*******************
* EXPORT FUNCTIONS
*******************/
fclose($fh);
return true;
}
+
/**
* get the category as a path (e.g., tom/dick/harry)
* @param int id the id of the most nested catgory