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.

(no description)

File Size: 99 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

enrol_lti_generator:: (2 methods):
  create_application_registration()
  create_published_resource()


Class: enrol_lti_generator  - X-Ref

LTI Enrolment test data generator class.

create_application_registration(array $data)   X-Ref
Test method to generate an application registration (and optionally a deployment) for a platform.

param: array $data the application registration data, with optional deployment data.
return: application_registration

create_published_resource(array $data)   X-Ref
Test method to generate a published resource for a course.

param: array $data the data required to publish the resource.
return: stdClass the enrol_lti_tools record, representing the published resource.