|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct (question_usage_by_activity $quba) | |
| current () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
| offsetExists ($slot) | |
| offsetGet ($slot) | |
| offsetSet ($slot, $value) | |
| offsetUnset ($slot) | |
Protected Attributes | |
| $quba | |
| $slots | |
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()
Definition at line 740 of file questionusage.php.
| __construct | ( | question_usage_by_activity $ | quba | ) |
To create an instance of this class, use question_usage_by_activity::get_attempt_iterator().
| $quba | the usage to iterate over. |
Definition at line 751 of file questionusage.php.

| current | ( | ) |
Definition at line 758 of file questionusage.php.


| key | ( | ) |
Definition at line 762 of file questionusage.php.

| next | ( | ) |
Definition at line 765 of file questionusage.php.
| offsetExists | ( | $ | slot | ) |
Definition at line 777 of file questionusage.php.
| offsetGet | ( | $ | slot | ) |
Definition at line 781 of file questionusage.php.

| offsetSet | ( | $ | slot, |
| $ | value | ||
| ) |
Definition at line 784 of file questionusage.php.
| offsetUnset | ( | $ | slot | ) |
Definition at line 788 of file questionusage.php.
| rewind | ( | ) |
| valid | ( | ) |
Definition at line 772 of file questionusage.php.

$quba [protected] |
Definition at line 742 of file questionusage.php.
$slots [protected] |
Definition at line 744 of file questionusage.php.