Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Question type class for the drag-and-drop onto image question type.

Copyright: 2009 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 160 lines (6 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class


Class: qtype_ddtoimage_base  - X-Ref

The drag-and-drop onto image question type class.

choice_group_key()   X-Ref
Returns the choice group key.

return: string

get_question_options($question)   X-Ref
No description

initialise_question_instance(question_definition $question, $questiondata)   X-Ref
No description

write_files($files, $indent)   X-Ref
Convert files into text output in the given format.
This method is copied from qformat_default as a quick fix, as the method there is
protected.

param: array $files
param: int $indent Number of spaces to indent
return: string $string

get_possible_responses($questiondata)   X-Ref
No description

get_random_guess_score($questiondata)   X-Ref
No description

delete_question($questionid, $contextid)   X-Ref
No description