A variant of question_attempt_step_iterator that iterates through the steps with submitted tries.
More...
A variant of question_attempt_step_iterator that iterates through the steps with submitted tries.
- Copyright
- 2014 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
question_attempt_steps_with_submitted_response_iterator::__construct |
( |
question_attempt |
$qa | ) |
|
◆ count()
question_attempt_steps_with_submitted_response_iterator::count |
( |
| ) |
|
- Return values
-
int | the count of steps with tries. |
◆ current()
question_attempt_steps_with_submitted_response_iterator::current |
( |
| ) |
|
◆ find_steps_with_submitted_response()
question_attempt_steps_with_submitted_response_iterator::find_steps_with_submitted_response |
( |
| ) |
|
|
protected |
Find the step nos in which a student has submitted a response.
Including any step with a response that is saved before the question attempt finishes.
Called from constructor, should not be called from elsewhere.
◆ key()
question_attempt_steps_with_submitted_response_iterator::key |
( |
| ) |
|
◆ offsetExists()
question_attempt_steps_with_submitted_response_iterator::offsetExists |
( |
|
$submittedresponseno | ) |
|
◆ offsetGet()
question_attempt_steps_with_submitted_response_iterator::offsetGet |
( |
|
$submittedresponseno | ) |
|
◆ step_no_for_try()
question_attempt_steps_with_submitted_response_iterator::step_no_for_try |
( |
|
$submittedresponseno | ) |
|
- Parameters
-
- Exceptions
-
- Return values
-
int|null | the step number or null if there is no such submitted response. |
◆ valid()
question_attempt_steps_with_submitted_response_iterator::valid |
( |
| ) |
|
The documentation for this class was generated from the following file: