public function replace_loaded_question_attempt_info($slot, $qa) {
        $this->check_slot($slot);
        $this->questionattempts[$slot] = $qa;
    }
public function replace_loaded_question_attempt_info($slot, $qa) {
        $this->check_slot($slot);
        $this->questionattempts[$slot] = $qa;
    }
public function replace_loaded_question_attempt_info ( $ slot , $ qa ) { $ this -> check_slot ( $ slot ) ; $ this -> questionattempts [ $ slot ] = $ qa ; }
Replace a particular question_attempt with a different one.

For internal use only. Used when reloading the state of a question from the
database.

@param array $records Raw records loaded from the database.
@param int $questionattemptid The id of the question_attempt to extract.
@return question_attempt The newly constructed question_attempt_step.
Replace a particular question_attempt with a different one .