MDL-79863 qtype_ordering: Removing dummy functions from edit form

This commit is contained in:
Vadim Dvorovenko 2016-05-11 11:01:07 +07:00 committed by Mathew May
parent dd3513c20b
commit c60561cd4e

View File

@ -123,10 +123,10 @@ class qtype_ordering_edit_form extends question_edit_form {
$this->adjust_html_editors($mform, $name, $repeats);
// Adding feedback fields.
$this->add_ordering_feedback_fields(false);
$this->add_combined_feedback_fields(false);
// Adding interactive settings.
$this->add_ordering_interactive_settings(false, false);
$this->add_interactive_settings(false, false);
}
protected function get_answer_repeats($question) {
@ -245,7 +245,7 @@ class qtype_ordering_edit_form extends question_edit_form {
$question = $this->data_preprocessing_answers($question, true);
// Preprocess feedback.
$question = $this->data_preprocessing_ordering_feedback($question);
$question = $this->data_preprocessing_combined_feedback($question);
$question = $this->data_preprocessing_hints($question, false, false);
// Preprocess answers and fractions.
@ -335,19 +335,6 @@ class qtype_ordering_edit_form extends question_edit_form {
return $errors;
}
protected function add_ordering_feedback_fields($shownumpartscorrect = false) {
$this->add_combined_feedback_fields($shownumpartscorrect);
}
protected function add_ordering_interactive_settings($clearwrong=false, $shownumpartscorrect=false) {
$this->add_interactive_settings($clearwrong, $shownumpartscorrect);
}
protected function data_preprocessing_ordering_feedback($question, $shownumcorrect=false) {
$question = $this->data_preprocessing_combined_feedback($question, $shownumcorrect);
return $question;
}
/**
* get_default_value
*