Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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