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: 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