From 0aa089c778edd036eadd94b2e02fa644c2570f6a Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Thu, 26 Jan 2012 16:56:36 +0700 Subject: [PATCH] MDL-47494 ddmarker: NOBUG return null for random_guess_score as it is incalculable there are no shown drop zones and we don't know how many drag items have to be dragged to the image. We could do the complicated calculation to find the area of a polygon and compare it to the area of the image but it is an overly complex a calculation I feel outside the scope of the current project. --- question/type/ddmarker/question.php | 4 ++++ question/type/ddmarker/questiontype.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/question/type/ddmarker/question.php b/question/type/ddmarker/question.php index 3ede3e015d0..d6872963aee 100644 --- a/question/type/ddmarker/question.php +++ b/question/type/ddmarker/question.php @@ -363,6 +363,10 @@ class qtype_ddmarker_question extends qtype_ddtoimage_question_base { } return implode(', ', $goodhits); } + + public function get_random_guess_score() { + return null; + } } /** diff --git a/question/type/ddmarker/questiontype.php b/question/type/ddmarker/questiontype.php index 7d50dfe38b5..a9ca0ae3355 100644 --- a/question/type/ddmarker/questiontype.php +++ b/question/type/ddmarker/questiontype.php @@ -359,4 +359,8 @@ class qtype_ddmarker extends qtype_ddtoimage_base { return $question; } + public function get_random_guess_score($questiondata) { + return null; + } + }