]> git.mjollnir.org Git - moodle.git/commitdiff
Fix dangerous comment. (MDL-13536)
authortjhunt <tjhunt>
Tue, 19 Feb 2008 17:14:12 +0000 (17:14 +0000)
committertjhunt <tjhunt>
Tue, 19 Feb 2008 17:14:12 +0000 (17:14 +0000)
question/type/questiontype.php

index 8f5ad1c75e05b8fb1d2f9a3470aa7287ae9d8e1d..e6654ffb5d3932f2a156bf7acd5977caa54a2953 100644 (file)
@@ -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.