|
Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
|
A class abstracting access to the question_attempt::$states array. More...
Public Member Functions | |
| __construct (question_attempt $qa) | |
| Do not call this constructor directly. | |
| current () | |
| key () | |
| next () | |
| offsetExists ($i) | |
| offsetGet ($i) | |
| offsetSet ($offset, $value) | |
| offsetUnset ($offset) | |
| rewind () | |
| valid () | |
Protected Attributes | |
| integer | $i |
| records the current position in the iteration. | |
| question_attempt | $qa |
| the question_attempt being iterated over. | |
A class abstracting access to the question_attempt::$states array.
This is actively linked to question_attempt. If you add an new step mid-iteration, then it will be included.
| question_attempt_step_iterator::__construct | ( | question_attempt | $qa | ) |
Do not call this constructor directly.
Use question_attempt::get_step_iterator().
| question_attempt | $qa | the attempt to iterate over. |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.
| question_attempt_step_iterator::current | ( | ) |
| question_attempt_step |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.
| question_attempt_step_iterator::key | ( | ) |
| int |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.
| question_attempt_step_iterator::offsetExists | ( | $i | ) |
| bool |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.
| question_attempt_step_iterator::offsetGet | ( | $i | ) |
| question_attempt_step |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.
| question_attempt_step_iterator::valid | ( | ) |
| bool |
Reimplemented in question_attempt_steps_with_submitted_response_iterator.