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.

Provides support for the conversion of moodle1 backup to the moodle2 format

Copyright: 2011 David Mudrak <david@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 68 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

moodle1_workshopform_comments_handler:: (2 methods):
  process_legacy_element()
  workshopform_comments_upgrade_element()


Class: moodle1_workshopform_comments_handler  - X-Ref

Conversion handler for the comments grading strategy data

process_legacy_element(array $data, array $raw)   X-Ref
Converts <ELEMENT> into <workshopform_comments_dimension>

param: array $data legacy element data
param: array $raw raw element data
return: array converted

workshopform_comments_upgrade_element(stdclass $old, $newworkshopid)   X-Ref
Transforms a given record from workshop_elements_old into an object to be saved into workshopform_comments

param: stdClass $old legacy record from workshop_elements_old
param: int $newworkshopid id of the new workshop instance that replaced the previous one
return: stdclass to be saved in workshopform_comments