mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-3054 record the current page of a quiz attempt
This commit is contained in:
parent
60e99097e4
commit
5db8294940
6 changed files with 35 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue