MDL-3054 record the current page of a quiz attempt

This commit is contained in:
Charles Fulton 2012-01-08 14:14:09 -08:00
parent 60e99097e4
commit 5db8294940
6 changed files with 35 additions and 4 deletions

View file

@ -601,6 +601,11 @@ class quiz_attempt {
public function get_userid() {
return $this->attempt->userid;
}
/** @return int the current page of the attempt. */
public function get_currentpage() {
return $this->attempt->currentpage;
}
/**
* @return bool whether this attempt has been finished (true) or is still