Response
extends Response
in component
Table of Contents
Properties
Methods
- disableRedirect() : mixed
- Prevent immediate redirects from the page.
- enableRedirect() : mixed
- Re-enable immediate redirects when the suppression level reaches zero.
- redirect() : mixed
- When the redirect is disabled, the code throws the 'ExceptionResponse' exception that should be catched
by a caller who requested disabling the redirect
Properties
$ka_last_redirect_status
protected
mixed
$ka_last_redirect_status
$ka_last_redirect_url
protected
mixed
$ka_last_redirect_url
$ka_redirect_disable_level
protected
mixed
$ka_redirect_disable_level
= 0
Methods
disableRedirect()
Prevent immediate redirects from the page.
public
disableRedirect() : mixed
Can be called multiple times to increase the redirect suppression level.
enableRedirect()
Re-enable immediate redirects when the suppression level reaches zero.
public
enableRedirect([mixed $url = null ][, mixed $status = 302 ]) : mixed
Otherwise, decreases the suppression level by one.
Parameters
- $url : mixed = null
- $status : mixed = 302
redirect()
When the redirect is disabled, the code throws the 'ExceptionResponse' exception that should be catched by a caller who requested disabling the redirect
public
redirect(mixed $url[, mixed $status = 302 ]) : mixed
Parameters
- $url : mixed
- $status : mixed = 302