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 |
qtype_ddmarker_edit_form:: (13 methods):
qtype()
definition_inner()
js_call()
definition_draggable_items()
draggable_item()
draggable_items_repeated_options()
drop_zone()
drop_zones_repeated_options()
get_hint_fields()
data_preprocessing()
data_preprocessing_hints()
validation()
get_image_size_in_draft_area()
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 |