Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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: 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