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.

1.9 to 2.0 backup format converter. (Also currently used in common cartridge import process)

Author: Darko Miletic
Copyright: Copyright (c) 2011 Moodlerooms Inc. (http://www.moodlerooms.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 148 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

moodle1_mod_lti_handler:: (3 methods):
  get_paths()
  process_basiclti()
  on_basiclti_end()


Class: moodle1_mod_lti_handler  - X-Ref

get_paths()   X-Ref
Declare the paths in moodle.xml we are able to convert

The method returns list of {@link convert_path} instances.
For each path returned, the corresponding conversion method must be
defined.

Note that the path /MOODLE_BACKUP/COURSE/MODULES/MOD/LTI does not
actually exist in the file. The last element with the module name was
appended by the moodle1_converter class.

return: array of {@link convert_path} instances

process_basiclti($data)   X-Ref
This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/LTI
data available


on_basiclti_end()   X-Ref
This is executed when we reach the closing </MOD> tag of our 'lti' path