Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Http
ErrorResponse.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Http
;
4
8
class
ErrorResponse
extends
OkResponse
{
9
19
public
function
__construct
(
$error
=
''
,
$status_code
=
ELGG_HTTP_BAD_REQUEST
,
$forward_url
=
REFERRER
) {
20
if
(isset(
$status_code
) && (!is_numeric(
$status_code
) || $status_code < 100 || $status_code > 599)) {
21
$status_code
=
ELGG_HTTP_INTERNAL_SERVER_ERROR
;
22
}
23
24
parent::__construct(
$error
,
$status_code
,
$forward_url
);
25
}
26
}
Elgg\Http\OkResponse\$forward_url
$forward_url
Definition:
OkResponse.php:25
Elgg\Http\ErrorResponse
Error response builder.
Definition:
ErrorResponse.php:8
$error
$error
Bad request error.
Definition:
400.php:6
Elgg\Http\ErrorResponse\__construct
__construct($error= '', $status_code=ELGG_HTTP_BAD_REQUEST, $forward_url=REFERRER)
Constructor.
Definition:
ErrorResponse.php:19
REFERRER
const REFERRER
Definition:
constants.php:42
Elgg\Http\OkResponse\$status_code
$status_code
Definition:
OkResponse.php:20
ELGG_HTTP_BAD_REQUEST
const ELGG_HTTP_BAD_REQUEST
Definition:
constants.php:79
Elgg\Http
Definition:
DatabaseSessionHandler.php:3
ELGG_HTTP_INTERNAL_SERVER_ERROR
const ELGG_HTTP_INTERNAL_SERVER_ERROR
Definition:
constants.php:106
Elgg\Http\OkResponse
Response builder.
Definition:
OkResponse.php:10
Generated on Fri Mar 5 2021 00:00:18 for Elgg by
1.8.11