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.

Differences Between: [Versions 311 and 403]

This file contains all the backup steps that will be used by the backup_lti_activity_task

Author: Marc Alier
Author: Jordi Piguillem
Author: Nikolas Galanis
Copyright: 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
Copyright: 2009 Universitat Politecnica de Catalunya http://www.upc.edu
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 241 lines (9 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

backup_lti_activity_structure_step:: (2 methods):
  define_structure()
  retrieve_lti_type()


Class: backup_lti_activity_structure_step  - X-Ref

Define the complete assignment structure for backup, with file and id annotations

define_structure()   X-Ref
Defines structure of activity backup

return: backup_nested_element

retrieve_lti_type($ltirecord)   X-Ref
Retrieves a record from {lti_type} table associated with the current activity

Information about site tools is not returned because it is insecure to back it up,
only fields necessary for same-site tool matching are left in the record

param: stdClass $ltirecord record from {lti} table
return: stdClass|null