MDL-40990 qbehaviours: method to say if attempts can finish naturally
This commit is contained in:
@@ -84,6 +84,16 @@ abstract class question_behaviour {
|
||||
return substr(get_class($this), 11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the current attempt at this question could be completed just by the
|
||||
* student interacting with the question, before $qa->finish() is called.
|
||||
*
|
||||
* @return boolean whether the attempt can finish naturally.
|
||||
*/
|
||||
public function can_finish_during_attempt() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Cause the question to be renderered. This gets the appropriate behaviour
|
||||
* renderer using {@link get_renderer()}, and adjusts the display
|
||||
|
||||
Reference in New Issue
Block a user