Class

ezpRestStatusResponse

class ezpRestStatusResponse implements ezcMvcResultStatusObject

File containing the ezpRestStatusResponse class.

Properties

int $code HTTP code
string $message Message to be provided
array $headers HTTP headers to set
static array $statusCodes HTTP Status code map

Methods

__construct(int $code = null, string $message = null, array $headers = array())

Construct an ezpRestStatusResponse object

process(ezcMvcResponseWriter $writer)

This method is called by the response writers to process the data contained in the status objects.

Details

at line 79
public __construct(int $code = null, string $message = null, array $headers = array())

Construct an ezpRestStatusResponse object

Parameters

int $code HTTP code
string $message Message to be provided
array $headers Headers

at line 95
public process(ezcMvcResponseWriter $writer)

This method is called by the response writers to process the data contained in the status objects.

The process method it responsible for undertaking the proper action depending on which response writer is used.

Parameters

ezcMvcResponseWriter $writer