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: 236 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: lineitem_test  - X-Ref

Unit tests for lti lineitem.

test_execute_put_nosubreview()   X-Ref


test_execute_put_withsubreview()   X-Ref


test_execute_put_addsubreview()   X-Ref


create_graded_lti(int $typeid, object $course, ?string $resourceid, ?string $tag,?string $subreviewurl = null, ?string $subreviewparams = null)   X-Ref
Inserts a graded lti instance, which should create a grade_item and gradebookservices record.

param: int $typeid Type ID of the LTI Tool.
param: object $course course where to add the lti instance.
param: string|null $resourceid resource id
param: string|null $tag tag
param: string|null $subreviewurl submission review url
param: string|null $subreviewparams submission review custom params
return: object lti instance created

create_type()   X-Ref
Creates a new LTI Tool Type.


set_server_for_put(object $course, int $typeid, object $lineitem)   X-Ref
Sets the server info and get to be configured for a PUT operation,
including having a proper auth token attached.

param: object $course course where to add the lti instance.
param: int $typeid
param: object $lineitem