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.

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