|
Elgg
Version 2.3
|
Redirect response builder. More...
Public Member Functions | ||||||
| __construct ($forward_url=REFERRER, $status_code=ELGG_HTTP_FOUND) | ||||||
| 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 | |
Redirect response builder.
Definition at line 8 of file RedirectResponse.php.
| Elgg\Http\RedirectResponse::__construct | ( | $forward_url = REFERRER, |
|
$status_code = ELGG_HTTP_FOUND |
|||
| ) |
Constructor.
| string | $forward_url | Forward url |
| int | $status_code | HTTP status code @access private |
Definition at line 18 of file RedirectResponse.php.