Elgg  Version 4.3
OkResponse.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
8 class OkResponse extends Response {
9 
19  public function __construct($content = '', int $status_code = ELGG_HTTP_OK, $forward_url = null) {
20  $this->setContent($content);
23  }
24 }
Response builder.
Definition: Response.php:13
__construct($content= '', int $status_code=ELGG_HTTP_OK, $forward_url=null)
Constructor.
Definition: OkResponse.php:19
const ELGG_HTTP_OK
Definition: constants.php:60
setStatusCode(int $status_code)
{Sets response HTTP status code.Status code self }
Definition: Response.php:76
setContent($content= '')
{Sets response body.Content of the response as a scalar value or an array self }
Definition: Response.php:43
OK response builder.
Definition: OkResponse.php:8
setForwardURL($forward_url=REFERRER)
{Sets redirect URL.Forward URL self }
Definition: Response.php:94