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.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400]

Defines the editing form for the drag-and-drop images onto images question type.

Author: Jamie Pratt <me@jamiep.org>
Copyright: 2012 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 295 lines (12 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class


Class: qtype_ddmarker_edit_form  - X-Ref

Drag-and-drop images onto images  editing form definition.

qtype()   X-Ref
No description

definition_inner($mform)   X-Ref
No description

js_call()   X-Ref
No description

definition_draggable_items($mform, $itemrepeatsatstart)   X-Ref
No description

draggable_item($mform)   X-Ref
No description

draggable_items_repeated_options()   X-Ref
No description

drop_zone($mform, $imagerepeats)   X-Ref
No description

drop_zones_repeated_options()   X-Ref
No description

get_hint_fields($withclearwrong = false, $withshownumpartscorrect = false)   X-Ref
No description

data_preprocessing($question)   X-Ref
No description

data_preprocessing_hints($question, $withclearwrong = false,$withshownumpartscorrect = false)   X-Ref
Perform the necessary preprocessing for the hint fields.

return: object The modified data.
param: object $question The data being passed to the form.
param: bool $withclearwrong Clear wrong hints.
param: bool $withshownumpartscorrect Show number correct.

validation($data, $files)   X-Ref
No description

get_image_size_in_draft_area($draftitemid)   X-Ref
Gets the width and height of a draft image.

return: array Return array of the width and height of the draft image.
param: int $draftitemid ID of the draft image