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.

Utility code for LTI service handling.

Author: Chris Scribner
Copyright: Copyright (c) 2011 Moodlerooms Inc. (http://www.moodlerooms.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 310 lines (10 kb)
Included or required: 1 time
Referenced: 3 times
Includes or requires: 0 files

Defines 13 functions


Functions that are not part of a class:

lti_get_response_xml($codemajor, $description, $messageref, $messagetype)   X-Ref
No description

lti_parse_message_id($xml)   X-Ref
No description

lti_parse_grade_replace_message($xml)   X-Ref
No description

lti_parse_grade_read_message($xml)   X-Ref
No description

lti_parse_grade_delete_message($xml)   X-Ref
No description

lti_accepts_grades($ltiinstance)   X-Ref
No description

lti_set_session_user($userid)   X-Ref
Set the passed user ID to the session user.

param: int $userid

lti_update_grade($ltiinstance, $userid, $launchid, $gradeval)   X-Ref
No description

lti_read_grade($ltiinstance, $userid)   X-Ref
No description

lti_delete_grade($ltiinstance, $userid)   X-Ref
No description

lti_verify_message($key, $sharedsecrets, $body, $headers = null)   X-Ref
No description

lti_verify_sourcedid($ltiinstance, $parsed)   X-Ref
Validate source ID from external request

param: object $ltiinstance
param: object $parsed

lti_extend_lti_services($data)   X-Ref
Extend the LTI services through the ltisource plugins

param: stdClass $data LTI request data
return: bool