Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 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: 265 lines (10 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

backup_lti_activity_structure_step:: (3 methods):
  define_structure()
  retrieve_lti_type()
  retrieve_lti_coursevisible()


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

retrieve_lti_coursevisible(stdClass $ltirecord)   X-Ref
Retrieves a record from {lti_coursevisible} table associated with the current type

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