\Orpheus\InputController\HTTPControllerHTTPResponse

The HTTPResponse class

Summary

Methods
Properties
Constants
setControllerOutput()
getControllerOutput()
__toString()
generateFromException()
generateFromUserException()
run()
process()
collectFrom()
getCode()
setCode()
No public properties found
No constants found
No protected methods found
$controllerOutput
$code
N/A
No private methods found
No private properties found
N/A

Properties

$controllerOutput

$controllerOutput : string

The output of the controller when running it

Type

string

$code

$code : integer

The HTTP response code

Type

integer

Methods

setControllerOutput()

setControllerOutput(string  $controllerOutput) 

Set the controller output

Parameters

string $controllerOutput

getControllerOutput()

getControllerOutput() : string

Get the controller output

Returns

string

__toString()

__toString() : string

Get this response as string

Returns

string

generateFromException()

generateFromException(\Orpheus\InputController\Exception  $exception, string  $action = null) : \Orpheus\InputController\OutputResponse

Generate OutputResponse from Exception

Parameters

\Orpheus\InputController\Exception $exception
string $action

Returns

\Orpheus\InputController\OutputResponse

run()

run() 

Process response to client

process()

process() 

Process the response

collectFrom()

collectFrom(string  $layout, array  $values = array()) : NULL

Collect response data from parameters

Parameters

string $layout
array $values

Returns

NULL

getCode()

getCode() : integer

Get the code

Returns

integer