|
@@ -505,9 +505,9 @@ class ExerciseLink extends AbstractLink
|
|
|
{
|
|
|
if ($this->is_hp == 1) {
|
|
|
return 'HotPotatoes';
|
|
|
- } else {
|
|
|
- return get_lang('Quiz');
|
|
|
}
|
|
|
+
|
|
|
+ return get_lang('Quiz');
|
|
|
}
|
|
|
|
|
|
public function needs_name_and_description()
|
|
@@ -555,21 +555,10 @@ class ExerciseLink extends AbstractLink
|
|
|
{
|
|
|
switch ($type) {
|
|
|
case 'best':
|
|
|
-
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Lazy load function to get the database table of the exercise.
|
|
|
- */
|
|
|
- private function get_exercise_table()
|
|
|
- {
|
|
|
- $this->exercise_table = Database::get_course_table(TABLE_QUIZ_TEST);
|
|
|
-
|
|
|
- return $this->exercise_table;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Lazy load function to get the database contents of this exercise.
|
|
|
*/
|
|
@@ -628,4 +617,14 @@ class ExerciseLink extends AbstractLink
|
|
|
|
|
|
return $this->exercise_data;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Lazy load function to get the database table of the exercise.
|
|
|
+ */
|
|
|
+ private function get_exercise_table()
|
|
|
+ {
|
|
|
+ $this->exercise_table = Database::get_course_table(TABLE_QUIZ_TEST);
|
|
|
+
|
|
|
+ return $this->exercise_table;
|
|
|
+ }
|
|
|
}
|