Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
mod_lti\local\ltiservice\response Class Reference

The mod_lti\local\ltiservice\response class. More...

Public Member Functions

 __construct ()
 Class constructor.
 
 add_additional_header ($header)
 Add an additional header.
 
 get_accept ()
 Get the request accept header.
 
 get_body ()
 Get the response body.
 
 get_code ()
 Get the response code.
 
 get_content_type ()
 Get the response content type.
 
 get_reason ()
 Get the response reason.
 
 get_request_data ()
 Get the request body.
 
 get_request_method ()
 Get the request method.
 
 send ()
 Send the response.
 
 set_accept ($accept)
 Set the request accept header.
 
 set_body ($body)
 Set the response body.
 
 set_code ($code)
 Set the response code.
 
 set_content_type ($contenttype)
 Set the response content type.
 
 set_reason ($reason)
 Set the response reason.
 
 set_request_data ($data)
 Set the response body.
 

Detailed Description

The mod_lti\local\ltiservice\response class.

Since
Moodle 2.8
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ add_additional_header()

mod_lti\local\ltiservice\response::add_additional_header ( $header)

Add an additional header.

Parameters
string$headerThe new header

◆ get_accept()

mod_lti\local\ltiservice\response::get_accept ( )

Get the request accept header.

Return values
string

◆ get_body()

mod_lti\local\ltiservice\response::get_body ( )

Get the response body.

Return values
string

◆ get_code()

mod_lti\local\ltiservice\response::get_code ( )

Get the response code.

Return values
int

◆ get_content_type()

mod_lti\local\ltiservice\response::get_content_type ( )

Get the response content type.

Return values
string

◆ get_reason()

mod_lti\local\ltiservice\response::get_reason ( )

Get the response reason.

Return values
string

◆ get_request_data()

mod_lti\local\ltiservice\response::get_request_data ( )

Get the request body.

Return values
string

◆ get_request_method()

mod_lti\local\ltiservice\response::get_request_method ( )

Get the request method.

Return values
string

◆ set_accept()

mod_lti\local\ltiservice\response::set_accept ( $accept)

Set the request accept header.

Parameters
string$acceptAccept header value

◆ set_body()

mod_lti\local\ltiservice\response::set_body ( $body)

Set the response body.

Parameters
string$bodyBody data

◆ set_code()

mod_lti\local\ltiservice\response::set_code ( $code)

Set the response code.

Parameters
int$codeResponse code

◆ set_content_type()

mod_lti\local\ltiservice\response::set_content_type ( $contenttype)

Set the response content type.

Parameters
string$contenttypeContent type

◆ set_reason()

mod_lti\local\ltiservice\response::set_reason ( $reason)

Set the response reason.

Parameters
string$reasonReason

◆ set_request_data()

mod_lti\local\ltiservice\response::set_request_data ( $data)

Set the response body.

Parameters
string$dataBody data

The documentation for this class was generated from the following file: