\Orpheus\InputController\HTTPControllerHTTPController

The HTTPController class

Summary

Methods
Properties
Constants
__toString()
process()
processUserException()
getRequest()
setRoute()
getRoute()
getRouteName()
fillValues()
render()
getOption()
setOption()
run()
prepare()
preRun()
postRun()
renderHTML()
No public properties found
No constants found
No protected methods found
$request
$route
$options
$catchControllerOuput
N/A
No private methods found
No private properties found
N/A

Properties

$route

$route : \Orpheus\InputController\ControllerRoute

The route calling this controller A controller could be called without any route and any request This variable comes to get the route without any request

Type

\Orpheus\InputController\ControllerRoute

$options

$options : array

Running options for this controller

Type

array

$catchControllerOuput

$catchControllerOuput : boolean

Catch controller output when running it

Type

boolean

Methods

__toString()

__toString() : string

Get this controller as string

Returns

string

processUserException()

processUserException(\Orpheus\Exception\UserException  $exception, array  $values = array()) 

Process the given UserException

Parameters

\Orpheus\Exception\UserException $exception
array $values

setRoute()

setRoute(  $route) 

Set the route

Parameters

$route

getRouteName()

getRouteName() : string

Get the route name

Returns

string

fillValues()

fillValues(array  $values = array()) 

Fill array with default values

Parameters

array $values

render()

render(mixed  $response, string  $layout, array  $values = array()) : mixed

Render the given $layout in $response using $values

Parameters

mixed $response
string $layout
array $values

Returns

mixed —

The $response

getOption()

getOption(string  $key, mixed  $default = null) : string|mixed

Get an option by $key

Parameters

string $key
mixed $default

Returns

string|mixed

setOption()

setOption(string  $key, mixed  $value) : \Orpheus\InputController\Controller

Set an option by $key

Parameters

string $key
mixed $value

Returns

\Orpheus\InputController\Controller