Elgg  Version 6.1
RedirectResponse.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
8 class RedirectResponse extends Response {
9 
19  public function __construct(string $forward_url = REFERRER, int $status_code = ELGG_HTTP_FOUND, bool $secure_forward_url = true) {
20  $this->secure_forward_url = $secure_forward_url;
21 
24  }
25 }
string $forward_url
Definition: Response.php:20
bool $secure_forward_url
Definition: Response.php:26
Response builder.
Definition: Response.php:14
__construct(string $forward_url=REFERRER, int $status_code=ELGG_HTTP_FOUND, bool $secure_forward_url=true)
Constructor.
setStatusCode(int $status_code)
{Sets response HTTP status code.Status code self }
Definition: Response.php:65
setForwardURL(string $forward_url=REFERRER)
{Sets redirect URL.Forward URL self }
Definition: Response.php:84
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
Definition: constants.php:37
const ELGG_HTTP_FOUND
Definition: constants.php:57
Redirect response builder.