PHP Class Elgg\Http\OkResponse

Inheritance: implements Elgg\Http\ResponseBuilder
Afficher le fichier Open project: elgg/elgg Class Usage Examples

Protected Properties

Свойство Type Description
$content string
$forward_url string
$headers array
$status_code integer

Méthodes publiques

Méthode Description
__construct ( mixed $content = '', integer $status_code = ELGG_HTTP_OK, string $forward_url = null ) Constructor
getContent ( )
getForwardURL ( )
getHeaders ( )
getStatusCode ( )
isClientError ( )
isInformational ( )
isNotModified ( )
isOk ( )
isRedirection ( )
isServerError ( )
isSuccessful ( )
setContent ( $content = '' )
setForwardURL ( $forward_url = REFERRER )
setHeaders ( array $headers = [] )
setStatusCode ( $status_code = ELGG_HTTP_OK )

Method Details

__construct() public méthode

Constructor
See also: elgg_ok_response
public __construct ( mixed $content = '', integer $status_code = ELGG_HTTP_OK, string $forward_url = null )
$content mixed Response data
$status_code integer HTTP status code
$forward_url string Forward URL

getContent() public méthode

public getContent ( )

getForwardURL() public méthode

public getForwardURL ( )

getHeaders() public méthode

public getHeaders ( )

getStatusCode() public méthode

public getStatusCode ( )

isClientError() public méthode

public isClientError ( )

isInformational() public méthode

public isInformational ( )

isNotModified() public méthode

public isNotModified ( )

isOk() public méthode

public isOk ( )

isRedirection() public méthode

public isRedirection ( )

isServerError() public méthode

public isServerError ( )

isSuccessful() public méthode

public isSuccessful ( )

setContent() public méthode

public setContent ( $content = '' )

setForwardURL() public méthode

public setForwardURL ( $forward_url = REFERRER )

setHeaders() public méthode

public setHeaders ( array $headers = [] )
$headers array

setStatusCode() public méthode

public setStatusCode ( $status_code = ELGG_HTTP_OK )

Property Details

$content protected_oe property

protected string $content
Résultat string

$forward_url protected_oe property

protected string $forward_url
Résultat string

$headers protected_oe property

protected array $headers
Résultat array

$status_code protected_oe property

protected int $status_code
Résultat integer