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.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

This file contains an abstract definition of an LTI service

Author: Stephen Vickers
Copyright: 2014 Vital Source Technologies http://vitalsource.com
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 263 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

response:: (16 methods):
  __construct()
  get_code()
  set_code()
  get_reason()
  set_reason()
  get_request_method()
  get_accept()
  set_accept()
  get_content_type()
  set_content_type()
  get_request_data()
  set_request_data()
  get_body()
  set_body()
  add_additional_header()
  send()


Class: response  - X-Ref

The mod_lti\local\ltiservice\response class.

__construct()   X-Ref
Class constructor.


get_code()   X-Ref
Get the response code.

return: int

set_code($code)   X-Ref
Set the response code.

param: int $code Response code

get_reason()   X-Ref
Get the response reason.

return: string

set_reason($reason)   X-Ref
Set the response reason.

param: string $reason Reason

get_request_method()   X-Ref
Get the request method.

return: string

get_accept()   X-Ref
Get the request accept header.

return: string

set_accept($accept)   X-Ref
Set the request accept header.

param: string $accept Accept header value

get_content_type()   X-Ref
Get the response content type.

return: string

set_content_type($contenttype)   X-Ref
Set the response content type.

param: string $contenttype Content type

get_request_data()   X-Ref
Get the request body.

return: string

set_request_data($data)   X-Ref
Set the response body.

param: string $data Body data

get_body()   X-Ref
Get the response body.

return: string

set_body($body)   X-Ref
Set the response body.

param: string $body Body data

add_additional_header($header)   X-Ref
Add an additional header.

param: string $header The new header

send()   X-Ref
Send the response.