$request
$request :
The Request instance containing HTTP request data and behaviors
ServiceProvider
Service provider class for handling logic extending between a request's data and a response's behavior
__construct(\app\framework\Component\Route\Klein\Request $request = null, \app\framework\Component\Route\Klein\AbstractResponse $response = null)
Constructor
\app\framework\Component\Route\Klein\Request | $request | Object containing all HTTP request data and behaviors |
\app\framework\Component\Route\Klein\AbstractResponse | $response | Object containing all HTTP response data and behaviors |
bind(\app\framework\Component\Route\Klein\Request $request = null, \app\framework\Component\Route\Klein\AbstractResponse $response = null) : \app\framework\Component\Route\Klein\ServiceProvider
Bind object instances to this service
\app\framework\Component\Route\Klein\Request | $request | Object containing all HTTP request data and behaviors |
\app\framework\Component\Route\Klein\AbstractResponse | $response | Object containing all HTTP response data and behaviors |
sharedData() : \app\framework\Component\Route\Klein\DataCollection\DataCollection
Returns the shared data collection object
markdown(string $str, array $args = null) : string
Render a text string as markdown
Supports basic markdown syntax
Also, this method takes in EITHER an array of optional arguments (as the second parameter) ... OR this method will simply take a variable number of arguments (after the initial str arg)
string | $str | The text string to parse |
array | $args | Optional arguments to be parsed by markdown |
escape(string $str, integer $flags = ENT_QUOTES) : string
Escapes a string for UTF-8 HTML displaying
This is a quick macro for escaping strings designed to be shown in a UTF-8 HTML environment. Its options are otherwise limited by design
string | $str | The string to escape |
integer | $flags | A bitmask of |
refresh() : \app\framework\Component\Route\Klein\ServiceProvider
Redirects the request to the current URL
back() : \app\framework\Component\Route\Klein\ServiceProvider
Redirects the request back to the referrer
layout(string $layout = null) : string|\app\framework\Component\Route\Klein\ServiceProvider
Get (or set) the view's layout
Simply calling this method without any arguments returns the current layout. Calling with an argument, however, sets the layout to what was provided by the argument.
string | $layout | The layout of the view |
validate(string $string, string $err = null) : \app\framework\Component\Route\Klein\Validator
Start a validator chain for the specified string
string | $string | The string to validate |
string | $err | The custom exception message to throw |
validateParam(string $param, string $err = null) : \app\framework\Component\Route\Klein\Validator
Start a validator chain for the specified parameter
string | $param | The name of the parameter to validate |
string | $err | The custom exception message to throw |