Elgg
Version 2.3
|
Error response builder. More...
Public Member Functions | ||||||
__construct ($error= '', $status_code=ELGG_HTTP_OK, $forward_url=REFERRER) | ||||||
Constructor. More... | ||||||
Public Member Functions inherited from Elgg\Http\OkResponse | ||||||
__construct ($content= '', $status_code=ELGG_HTTP_OK, $forward_url=null) | ||||||
Constructor. More... | ||||||
setContent ($content= '') | ||||||
{Sets response body.
| ||||||
getContent () | ||||||
{Returns response body.
| ||||||
setStatusCode ($status_code=ELGG_HTTP_OK) | ||||||
{Sets response HTTP status code.
| ||||||
getStatusCode () | ||||||
{Returns status code.
| ||||||
setForwardURL ($forward_url=REFERRER) | ||||||
{Sets redirect URL.
| ||||||
getForwardURL () | ||||||
{Returns redirect URL.
| ||||||
setHeaders (array $headers=[]) | ||||||
{Sets additional response headers.
| ||||||
getHeaders () | ||||||
{Returns additional response headers.
| ||||||
isInformational () | ||||||
{Check if response is informational.
| ||||||
isSuccessful () | ||||||
{Check if response is successful.
| ||||||
isOk () | ||||||
{Check if response is OK.
| ||||||
isRedirection () | ||||||
{Check if response is redirection.
| ||||||
isClientError () | ||||||
{Check if response is client error.
| ||||||
isServerError () | ||||||
{Check if response is server error.
| ||||||
isNotModified () | ||||||
{Check if response has been modified.
| ||||||
Additional Inherited Members | |
Protected Attributes inherited from Elgg\Http\OkResponse | |
$content | |
$status_code | |
$forward_url | |
$headers | |
Error response builder.
Definition at line 8 of file ErrorResponse.php.
Elgg\Http\ErrorResponse::__construct | ( | $error = '' , |
|
$status_code = ELGG_HTTP_OK , |
|||
$forward_url = REFERRER |
|||
) |
Constructor.
string | $error | Error message |
int | $status_code | HTTP status code |
string | $forward_url | Forward url private |
Definition at line 19 of file ErrorResponse.php.