Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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: 1 time
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.

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

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