function get_correct_responses(&$question, &$state) { wrsqz_swap('match', 'wmatprom', $question, $state); $response = parent::get_correct_responses($question, $state); return wrsqz_get_correct_responses('match', 'wmatprom', $response, $question, $state); }
function grade_responses(&$question, &$state, $cmoptions) { wrsqz_swap('multianswer', 'wmansprom', $question, $state); wrsqz_hideCASSession('multianswer', 'wmansprom', $question, $state); $toreturn = wrsqz_grade_responses('multianswer', 'wmansprom', $question, $state, $cmoptions); wrsqz_restoreCASSession('multianswer', 'wmansprom', $question, $state); return $toreturn; }
function get_correct_responses(&$question, &$state) { wrsqz_swap('truefalse', 'wtrflsprom', $question, $state); $response = parent::get_correct_responses($question, $state); return wrsqz_get_correct_responses('truefalse', 'wtrflsprom', $response, $question, $state); }
function get_correct_responses(&$question, &$state) { wrsqz_swap('shortanswer', 'wshanprom', $question, $state); return wrsqz_get_correct_responses('shortanswer', 'wshanprom', null, $question, $state); }