]> git.mjollnir.org Git - moodle.git/commitdiff
Clarified comment.
authortjhunt <tjhunt>
Wed, 23 Aug 2006 21:04:04 +0000 (21:04 +0000)
committertjhunt <tjhunt>
Wed, 23 Aug 2006 21:04:04 +0000 (21:04 +0000)
question/type/questiontype.php

index e02f0c1de121729bfb24424e4cb2f4bc8c563874..858d5901e26813de6860877005404749f2ebdaef 100644 (file)
@@ -829,10 +829,12 @@ class default_questiontype {
     *                          compared. Question type specific information is
     *                          included.
     * @param object $state     The state of the question. The responses are in
-    *                          ->responses.
+    *                          ->responses. This is the only field of $state
+    *                          that it is safe to use.
     * @param object $teststate The state whose responses are to be
     *                          compared. The state will be of the same age or
-    *                          older than $state.
+    *                          older than $state. Again, the method should only
+    *                          use the field $teststate->responses.
     */
     function compare_responses(&$question, $state, $teststate) {
         // The default implementation performs a comparison of the response