A class abstracting access to the question_usage_by_activity::$questionattempts array.
More...
A class abstracting access to the question_usage_by_activity::$questionattempts array.
This class snapshots the list of question_attempts to iterate over when it is created. If a question is added to the usage mid-iteration, it will now show up.
To create an instance of this class, use question_usage_by_activity::get_attempt_iterator()
- Copyright
- 2009 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
◆ current()
question_attempt_iterator::current |
( |
| ) |
|
Standard part of the Iterator interface.
- Return values
-
◆ key()
question_attempt_iterator::key |
( |
| ) |
|
Standard part of the Iterator interface.
- Return values
-
◆ offsetExists()
question_attempt_iterator::offsetExists |
( |
| $slot | ) |
|
Standard part of the ArrayAccess interface.
- Parameters
-
- Return values
-
◆ offsetGet()
question_attempt_iterator::offsetGet |
( |
| $slot | ) |
|
Standard part of the ArrayAccess interface.
- Parameters
-
- Return values
-
◆ offsetSet()
question_attempt_iterator::offsetSet |
( |
| $slot, |
|
|
| $value ) |
Standard part of the ArrayAccess interface.
- Parameters
-
◆ offsetUnset()
question_attempt_iterator::offsetUnset |
( |
| $slot | ) |
|
Standard part of the ArrayAccess interface.
- Parameters
-
◆ valid()
question_attempt_iterator::valid |
( |
| ) |
|
Standard part of the Iterator interface.
- Return values
-
The documentation for this class was generated from the following file:
- question/engine/questionusage.php