Merge branch 'MDL-40434_24' of git://github.com/timhunt/moodle into MOODLE_24_STABLE

This commit is contained in:
Marina Glancy
2013-07-09 11:33:20 +10:00
+13 -1
View File
@@ -65,7 +65,6 @@ class qtype_calculatedmulti_single_question extends qtype_multichoice_single_que
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
}
public function get_num_variants() {
return $this->datasetloader->get_number_of_items();
}
@@ -115,6 +114,19 @@ class qtype_calculatedmulti_multi_question extends qtype_multichoice_multi_quest
public function calculate_all_expressions() {
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
}
public function get_num_variants() {
return $this->datasetloader->get_number_of_items();
}
public function get_variants_selection_seed() {
if (!empty($this->synchronised) &&
$this->datasetloader->datasets_are_synchronised($this->category)) {
return 'category' . $this->category;
} else {
return parent::get_variants_selection_seed();
}
}
}