Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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.

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

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

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