A variant of question_attempt_step_iterator that iterates through the steps with submitted tries.  
 More...
|  | 
| integer | $i | 
|  | records the current position in the iteration. 
 | 
|  | 
| question_attempt | $qa | 
|  | the question_attempt being iterated over. 
 | 
|  | 
| int[] | $stepswithsubmittedresponses | 
|  | Index is the submitted response number and value is the step no. 
 | 
|  | 
| integer | $submittedresponseno | 
|  | records the current position in the iteration. 
 | 
|  | 
A variant of question_attempt_step_iterator that iterates through the steps with submitted tries. 
- Copyright
- 2014 The Open University 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ __construct()
      
        
          | question_attempt_steps_with_submitted_response_iterator::__construct | ( | question_attempt | $qa | ) |  | 
      
 
 
◆ count()
      
        
          | question_attempt_steps_with_submitted_response_iterator::count | ( |  | ) |  | 
      
 
- Return values
- 
  
    | int | the count of steps with tries. |  
 
 
 
◆ current()
      
        
          | question_attempt_steps_with_submitted_response_iterator::current | ( |  | ) |  | 
      
 
 
◆ find_steps_with_submitted_response()
  
  | 
        
          | question_attempt_steps_with_submitted_response_iterator::find_steps_with_submitted_response | ( |  | ) |  |  | protected | 
 
Find the step nos in which a student has submitted a response. 
Including any step with a response that is saved before the question attempt finishes.
Called from constructor, should not be called from elsewhere. 
 
 
◆ key()
      
        
          | question_attempt_steps_with_submitted_response_iterator::key | ( |  | ) |  | 
      
 
 
◆ next()
      
        
          | question_attempt_steps_with_submitted_response_iterator::next | ( |  | ) |  | 
      
 
 
◆ offsetExists()
      
        
          | question_attempt_steps_with_submitted_response_iterator::offsetExists | ( |  | $submittedresponseno | ) |  | 
      
 
 
◆ offsetGet()
      
        
          | question_attempt_steps_with_submitted_response_iterator::offsetGet | ( |  | $submittedresponseno | ) |  | 
      
 
 
◆ offsetSet()
      
        
          | question_attempt_steps_with_submitted_response_iterator::offsetSet | ( |  | $offset, | 
        
          |  |  |  | $value ) | 
      
 
 
◆ offsetUnset()
      
        
          | question_attempt_steps_with_submitted_response_iterator::offsetUnset | ( |  | $offset | ) |  | 
      
 
 
◆ rewind()
      
        
          | question_attempt_steps_with_submitted_response_iterator::rewind | ( |  | ) |  | 
      
 
 
◆ step_no_for_try()
      
        
          | question_attempt_steps_with_submitted_response_iterator::step_no_for_try | ( |  | $submittedresponseno | ) |  | 
      
 
- Parameters
- 
  
  
- Exceptions
- 
  
  
- Return values
- 
  
    | int|null | the step number or null if there is no such submitted response. |  
 
 
 
◆ valid()
      
        
          | question_attempt_steps_with_submitted_response_iterator::valid | ( |  | ) |  | 
      
 
 
The documentation for this class was generated from the following file: