Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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