Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

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: 2 times
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