Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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.

◆ next()

question_attempt_reverse_step_iterator::next ( )

Reimplemented from question_attempt_step_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

◆ rewind()

question_attempt_reverse_step_iterator::rewind ( )

Reimplemented from question_attempt_step_iterator.

◆ 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: