public function restore_recode_legacy_answer($state, $qtype) {
        $restorer = $this->get_qtype_restorer($qtype);
        if ($restorer) {
            return $restorer->recode_legacy_state_answer($state);
        } else {
            return $state->answer;
        }
    }
public function restore_recode_legacy_answer($state, $qtype) {
        $restorer = $this->get_qtype_restorer($qtype);
        if ($restorer) {
            return $restorer->recode_legacy_state_answer($state);
        } else {
            return $state->answer;
        }
    }
public function restore_recode_legacy_answer ( $ state , $ qtype ) { $ restorer = $ this -> get_qtype_restorer ( $ qtype ) ; if ( $ restorer ) { return $ restorer -> recode_legacy_state_answer ( $ state ) ; } else { return $ state -> answer ; } }
Recode the legacy answer field.
@param object $state the state to recode the answer of.
@param string $qtype the question type.
Recode the legacy answer field .