public function recode_legacy_state_answer($state) {
        $answer = $state->answer;
        $result = '';
        if ($answer) {
            $result = $this->get_mappingid('question_answer', $answer);
        }
        return $result;
    }
public function recode_legacy_state_answer($state) {
        $answer = $state->answer;
        $result = '';
        if ($answer) {
            $result = $this->get_mappingid('question_answer', $answer);
        }
        return $result;
    }
public function recode_legacy_state_answer ( $ state ) { $ answer = $ state -> answer ; $ result = '' ; if ( $ answer ) { $ result = $ this -> get_mappingid ( 'question_answer' , $ answer ) ; } return $ result ; }
Given one question_states record, return the answer
recoded pointing to all the restored stuff for truefalse questions

if not empty, answer is one question_answers->id
Given one question_states record return the answer recoded pointing to all the restored stuff for truefalse questions