Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

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

Defines 1 class

response:: (15 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()
  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

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.