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.

Defines restore_qtype_extrafields_plugin class

Author: Valeriy Streltsov <vostreltsov@gmail.com>
Copyright: 2012 Oleg Sychev, Volgograd State Technical University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 131 lines (4 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

restore_qtype_extrafields_plugin:: (4 methods):
  __construct()
  define_question_plugin_structure()
  process_extraanswerdata()
  really_process_extra_question_fields()


Class: restore_qtype_extrafields_plugin  - X-Ref

Class extending restore_qtype_plugin in order to use extra fields method

See qtype_shortanswer for an example

__construct($plugintype, $pluginname, $step)   X-Ref
Constructor

param: string $plugintype plugin type
param: string $pluginname plugin name
param: restore_step $step step

define_question_plugin_structure()   X-Ref
Returns the paths to be handled by the plugin at question level.


process_extraanswerdata($data)   X-Ref
Processes the extra answer data

param: array $data extra answer data

really_process_extra_question_fields($data)   X-Ref
Process the qtype/... element.

param: array $data question data