MDL-31306 question preview: disable 'Fill correct' for qtypes that can't

This commit is contained in:
M Kassaei
2012-01-24 13:27:45 +08:00
committed by Sam Hemelryk
parent 58eb3519ea
commit 6bc136feff
4 changed files with 13 additions and 5 deletions
+3 -2
View File
@@ -262,9 +262,10 @@ abstract class question_definition {
/**
* What data would need to be submitted to get this question correct.
* If there is more than one correct answer, this method should just
* return one possibility.
* return one possibility. If it is not possible to compute a correct
* response, this method should return null.
*
* @return array parameter name => value.
* @return array|null parameter name => value.
*/
public abstract function get_correct_response();