* @param int $category category number
* @param bool $noparent if true only questions with NO parent will be selected
* @param bool $recurse include subdirectories
+* @param bool $export set true if this is called by questionbank export
* @author added by Howard Miller June 2004
*/
-function get_questions_category( $category, $noparent=false, $recurse=true ) {
+function get_questions_category( $category, $noparent=false, $recurse=true, $export=true ) {
global $QTYPES;
// iterate through questions, getting stuff we need
foreach($questions as $question) {
$questiontype = $QTYPES[$question->qtype];
+ $question->export_process = $export;
$questiontype->get_question_options( $question );
$qresults[] = $question;
}
echo "</form>\n";
}
-?>
\ No newline at end of file
+?>
$question->partiallycorrectfeedback = '';
$question->incorrectfeedback = '';
+ // this option in case the questiontypes class wants
+ // to know where the data came from
+ $question->export_process = true;
+
return $question;
}