From 694061adf4a0af7b5cd6c2413f90d718707fc0ff Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 19 Feb 2008 17:14:12 +0000 Subject: [PATCH] Fix dangerous comment. (MDL-13536) --- question/type/questiontype.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 8f5ad1c75e..e6654ffb5d 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -594,8 +594,11 @@ class default_questiontype { * Question types with only a single form field for the student's response * which is contained in ->responses[''] will not have to save this response, * it will already have been saved to the answer field of the question_states table. - * Question types with more response fields should override this method and save - * the responses in their own database tables. + * Question types with more response fields should override this method to convert + * the data the ->responses array into a single string field, and save it in the + * database. The implementation in the multichoice question type is a good model to follow. + * http://cvs.moodle.org/contrib/plugins/question/type/opaque/questiontype.php?view=markup + * has a solution that is probably quite generally applicable. * @return bool Indicates success or failure. * @param object $question The question object for the question including * the question type specific information. -- 2.39.5