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

This commit is contained in:
M Kassaei 2012-01-20 11:59:14 +00:00 committed by Sam Hemelryk
parent 1bc47427f0
commit da22c0127b
4 changed files with 13 additions and 5 deletions

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();