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.

Backup code for qtype_ddimageortext.

Copyright: 2011 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 102 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

backup_qtype_ddimageortext_plugin:: (3 methods):
  qtype_name()
  define_question_plugin_structure()
  get_qtype_fileareas()


Class: backup_qtype_ddimageortext_plugin  - X-Ref

Provides the information to backup ddimageortext questions.

qtype_name()   X-Ref
Returns the question type this is.

return: string question type name, like 'ddimageortext'.

define_question_plugin_structure()   X-Ref
Returns the qtype information to attach to question element.


get_qtype_fileareas()   X-Ref
Returns one array with filearea => mappingname elements for the qtype

Used by {@link get_components_and_fileareas} to know about all the qtype
files to be processed both in backup and restore.