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.

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