Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
question_attempt_reverse_step_iterator Class Reference

A variant of question_attempt_step_iterator that iterates through the steps in reverse order. More...

Inheritance diagram for question_attempt_reverse_step_iterator:
question_attempt_step_iterator

Public Member Functions

 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.
 

Detailed Description

A variant of question_attempt_step_iterator that iterates through the steps in reverse order.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ current()

question_attempt_step_iterator::current ( )
inherited

◆ key()

question_attempt_step_iterator::key ( )
inherited
Return values
int

Reimplemented in question_attempt_steps_with_submitted_response_iterator.

◆ offsetExists()

question_attempt_step_iterator::offsetExists (   $i)
inherited
Return values
bool

Reimplemented in question_attempt_steps_with_submitted_response_iterator.

◆ offsetGet()

question_attempt_step_iterator::offsetGet (   $i)
inherited

◆ valid()

question_attempt_step_iterator::valid ( )
inherited
Return values
bool

Reimplemented in question_attempt_steps_with_submitted_response_iterator.


The documentation for this class was generated from the following file: