ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct () | |
Class constructor. More... | |
getCode () | |
Get the response code. More... | |
setCode (int $code) | |
Set the response code. More... | |
getReason () | |
Get the response reason. More... | |
setReason (string $reason) | |
Set the response reason. More... | |
getRequestMethod () | |
Get the request method. More... | |
getAccept () | |
Get the request accept header. More... | |
setAccept (string $accept) | |
Set the request accept header. More... | |
getContentType () | |
Get the response content type. More... | |
setContentType (string $contenttype) | |
Set the response content type. More... | |
getRequestData () | |
Get the request body. More... | |
setRequestData (string $data) | |
Set the response body. More... | |
setBody (string $body) | |
Set the response body. More... | |
send ($debug=true) | |
Add an additional header. More... | |
Private Attributes | |
int | $code |
HTTP response code. More... | |
string | $reason |
HTTP response reason. More... | |
string | $requestmethod |
HTTP request method. More... | |
string | $accept |
HTTP request accept header. More... | |
string | $contenttype |
HTTP response content type. More... | |
string | $data |
HTTP request body. More... | |
string | $body |
HTTP response body. More... | |
array | $responsecodes |
HTTP response codes. More... | |
array | $additionalheaders |
HTTP additional headers. More... | |
Definition at line 29 of file class.ilLTIConsumerServiceResponse.php.
ilLTIConsumerServiceResponse::__construct | ( | ) |
Class constructor.
Definition at line 61 of file class.ilLTIConsumerServiceResponse.php.
References $_SERVER.
ilLTIConsumerServiceResponse::getAccept | ( | ) |
Get the request accept header.
Definition at line 144 of file class.ilLTIConsumerServiceResponse.php.
References $accept.
ilLTIConsumerServiceResponse::getCode | ( | ) |
Get the response code.
Definition at line 92 of file class.ilLTIConsumerServiceResponse.php.
References $code.
ilLTIConsumerServiceResponse::getContentType | ( | ) |
Get the response content type.
Definition at line 160 of file class.ilLTIConsumerServiceResponse.php.
References $contenttype.
ilLTIConsumerServiceResponse::getReason | ( | ) |
Get the response reason.
Definition at line 109 of file class.ilLTIConsumerServiceResponse.php.
References $code, and $reason.
Referenced by send().
ilLTIConsumerServiceResponse::getRequestData | ( | ) |
Get the request body.
Definition at line 176 of file class.ilLTIConsumerServiceResponse.php.
References $data.
Referenced by ilLTIConsumerGradeServiceScores\execute().
ilLTIConsumerServiceResponse::getRequestMethod | ( | ) |
Get the request method.
Definition at line 136 of file class.ilLTIConsumerServiceResponse.php.
References $requestmethod.
ilLTIConsumerServiceResponse::send | ( | $debug = true | ) |
Add an additional header.
Send the response.
Definition at line 208 of file class.ilLTIConsumerServiceResponse.php.
References $_SERVER, $body, $code, ilObjLTIConsumer\getLogger(), getReason(), and ILIAS\UI\examples\Symbol\Glyph\Header\header().
ilLTIConsumerServiceResponse::setAccept | ( | string | $accept | ) |
Set the request accept header.
Definition at line 152 of file class.ilLTIConsumerServiceResponse.php.
References $accept.
ilLTIConsumerServiceResponse::setBody | ( | string | $body | ) |
Set the response body.
Definition at line 192 of file class.ilLTIConsumerServiceResponse.php.
References $body.
ilLTIConsumerServiceResponse::setCode | ( | int | $code | ) |
Set the response code.
Definition at line 100 of file class.ilLTIConsumerServiceResponse.php.
References $code.
Referenced by ilLTIConsumerGradeServiceScores\execute().
ilLTIConsumerServiceResponse::setContentType | ( | string | $contenttype | ) |
Set the response content type.
Definition at line 168 of file class.ilLTIConsumerServiceResponse.php.
References $contenttype.
ilLTIConsumerServiceResponse::setReason | ( | string | $reason | ) |
Set the response reason.
Definition at line 128 of file class.ilLTIConsumerServiceResponse.php.
References $reason.
Referenced by ilLTIConsumerGradeServiceScores\execute().
ilLTIConsumerServiceResponse::setRequestData | ( | string | $data | ) |
Set the response body.
Definition at line 184 of file class.ilLTIConsumerServiceResponse.php.
References $data.
|
private |
HTTP request accept header.
Definition at line 41 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getAccept(), and setAccept().
|
private |
HTTP additional headers.
Definition at line 56 of file class.ilLTIConsumerServiceResponse.php.
|
private |
HTTP response body.
Definition at line 50 of file class.ilLTIConsumerServiceResponse.php.
|
private |
HTTP response code.
Definition at line 32 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getCode(), getReason(), send(), and setCode().
|
private |
HTTP response content type.
Definition at line 44 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getContentType(), and setContentType().
|
private |
HTTP request body.
Definition at line 47 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getRequestData(), and setRequestData().
|
private |
HTTP response reason.
Definition at line 35 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getReason(), and setReason().
|
private |
HTTP request method.
Definition at line 38 of file class.ilLTIConsumerServiceResponse.php.
Referenced by getRequestMethod().
|
private |
HTTP response codes.
Definition at line 53 of file class.ilLTIConsumerServiceResponse.php.