Moodle  2.2.1
http://www.collinsharper.com
question_attempt_iterator Class Reference

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

Detailed Description

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.


Constructor & Destructor Documentation

To create an instance of this class, use question_usage_by_activity::get_attempt_iterator().

Parameters:
$qubathe usage to iterate over.

Definition at line 751 of file questionusage.php.

Here is the call graph for this function:


Member Function Documentation

current ( )
Returns:
question_attempt_step

Definition at line 758 of file questionusage.php.

Here is the call graph for this function:

Here is the caller graph for this function:

key ( )
Returns:
int

Definition at line 762 of file questionusage.php.

Here is the call graph for this function:

next ( )

Definition at line 765 of file questionusage.php.

offsetExists ( slot)
Returns:
bool

Definition at line 777 of file questionusage.php.

offsetGet ( slot)
Returns:
question_attempt_step

Definition at line 781 of file questionusage.php.

Here is the caller graph for this function:

offsetSet ( slot,
value 
)

Definition at line 784 of file questionusage.php.

offsetUnset ( slot)

Definition at line 788 of file questionusage.php.

rewind ( )

Definition at line 768 of file questionusage.php.

Here is the caller graph for this function:

valid ( )
Returns:
bool

Definition at line 772 of file questionusage.php.

Here is the call graph for this function:


Field Documentation

$quba [protected]

Definition at line 742 of file questionusage.php.

$slots [protected]

Definition at line 744 of file questionusage.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations