Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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