Elgg  Version 5.1
RedirectResponse.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
8 class RedirectResponse extends Response {
9 
18  public function __construct(string $forward_url = REFERRER, int $status_code = ELGG_HTTP_FOUND) {
21  }
22 }
Response builder.
Definition: Response.php:14
setStatusCode(int $status_code)
{Sets response HTTP status code.Status code self }
Definition: Response.php:78
__construct(string $forward_url=REFERRER, int $status_code=ELGG_HTTP_FOUND)
Constructor.
setForwardURL(string $forward_url=REFERRER)
{Sets redirect URL.Forward URL self }
Definition: Response.php:97
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.