function backup($bf, $preferences, $question, $level = 6) { if (!method_exists($this, "extra_question_fields")) { $extra_question_fields = wrsqz_deprecated_extra_question_fields('match'); } else { $extra_question_fields = $this->extra_question_fields(); } if (!method_exists($this, "questionid_column_name")) { $question_id_column_name = wrsqz_deprecated_question_id_column_name('match'); } else { $question_id_column_name = $this->questionid_column_name(); } if (parent::backup($bf, $preferences, $question, $level) !== false) { return wrsqz_backup('match', 'wmatprom', $bf, $preferences, $question, $level, $extra_question_fields, $question_id_column_name); } return false; }
function backup($bf, $preferences, $question, $level = 6) { //check availability of functions if (!method_exists($this, "extra_question_fields")) { $extra_question_fields = wrsqz_deprecated_extra_question_fields('shortanswer'); } else { $extra_question_fields = $this->extra_question_fields(); } if (!method_exists($this, "questionid_column_name")) { $question_id_column_name = wrsqz_deprecated_question_id_column_name('shortanswer'); } else { $question_id_column_name = $this->questionid_column_name(); } //in shortanswerwiris we do not call parent. return wrsqz_backup('shortanswer', 'wshanprom', $bf, $preferences, $question, $level, $extra_question_fields, $question_id_column_name); }