Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

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: 280 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.

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

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.

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