ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($methods, $pattern, $callable, $groups=[], $identifier=0) | |
Create new route. More... | |
finalize () | |
Finalize the route in preparation for dispatching. More... | |
getCallable () | |
Get route callable. More... | |
setCallable ($callable) | |
This method enables you to override the Route's callable. More... | |
getMethods () | |
Get route methods. More... | |
getGroups () | |
Get parent route groups. More... | |
getName () | |
Get route name. More... | |
getIdentifier () | |
Get route identifier. More... | |
getOutputBuffering () | |
Get output buffering mode. More... | |
setOutputBuffering ($mode) | |
Set output buffering mode. More... | |
setName ($name) | |
Set route name. More... | |
setArgument ($name, $value, $includeInSavedArguments=true) | |
Set a route argument. More... | |
setArguments (array $arguments, $includeInSavedArguments=true) | |
Replace route arguments. More... | |
getArguments () | |
Retrieve route arguments. More... | |
getArgument ($name, $default=null) | |
Retrieve a specific route argument. More... | |
prepare (ServerRequestInterface $request, array $arguments) | |
Prepare the route for use. More... | |
run (ServerRequestInterface $request, ResponseInterface $response) | |
Run route. More... | |
Public Member Functions inherited from Slim\Routable | |
getMiddleware () | |
Get the middleware registered for the group. More... | |
getPattern () | |
Get the route pattern. More... | |
setContainer (ContainerInterface $container) | |
Set container for use with resolveCallable. More... | |
add ($callable) | |
Prepend middleware to the middleware collection. More... | |
setPattern ($newPattern) | |
Set the route pattern. More... | |
Public Member Functions inherited from Slim\Interfaces\RouteInterface | |
getPattern () | |
Get route pattern. More... | |
setArgument ($name, $value) | |
Set a route argument. More... | |
setArguments (array $arguments) | |
Replace route arguments. More... | |
add ($callable) | |
Add middleware. More... | |
__invoke (ServerRequestInterface $request, ResponseInterface $response) | |
Dispatch route callable against current Request and Response objects. More... | |
Protected Attributes | |
$methods = [] | |
$identifier | |
$name | |
$groups | |
$outputBuffering = 'append' | |
$arguments = [] | |
$savedArguments = [] | |
$callable | |
Protected Attributes inherited from Slim\Routable | |
$callable | |
$container | |
$middleware = [] | |
$pattern | |
Private Attributes | |
$finalized = false | |
Slim\Route::__construct | ( | $methods, | |
$pattern, | |||
$callable, | |||
$groups = [] , |
|||
$identifier = 0 |
|||
) |
Slim\Route::finalize | ( | ) |
Finalize the route in preparation for dispatching.
Definition at line 106 of file Route.php.
References Slim\addMiddleware().
Slim\Route::getArgument | ( | $name, | |
$default = null |
|||
) |
Retrieve a specific route argument.
string | $name | |
string | null | $default |
Implements Slim\Interfaces\RouteInterface.
Definition at line 287 of file Route.php.
References $default, and $name.
Slim\Route::getArguments | ( | ) |
Slim\Route::getCallable | ( | ) |
Get route callable.
Slim\Route::getGroups | ( | ) |
Get parent route groups.
Slim\Route::getIdentifier | ( | ) |
Get route identifier.
Slim\Route::getMethods | ( | ) |
Get route methods.
Slim\Route::getName | ( | ) |
Get route name.
Implements Slim\Interfaces\RouteInterface.
Definition at line 171 of file Route.php.
References $name.
Slim\Route::getOutputBuffering | ( | ) |
Slim\Route::prepare | ( | ServerRequestInterface | $request, |
array | $arguments | ||
) |
Prepare the route for use.
ServerRequestInterface | $request | |
array | $arguments |
Implements Slim\Interfaces\RouteInterface.
Definition at line 305 of file Route.php.
Slim\Route::run | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Run route.
This method traverses the middleware stack, including the route's callable and captures the resultant HTTP response object. It then sends the response back to the Application.
ServerRequestInterface | $request | |
ResponseInterface | $response |
Implements Slim\Interfaces\RouteInterface.
Definition at line 328 of file Route.php.
References $handler, $request, $response, and Psr\Http\Message\MessageInterface\getBody().
Slim\Route::setArgument | ( | $name, | |
$value, | |||
$includeInSavedArguments = true |
|||
) |
Slim\Route::setArguments | ( | array | $arguments, |
$includeInSavedArguments = true |
|||
) |
Slim\Route::setCallable | ( | $callable | ) |
This method enables you to override the Route's callable.
string | \Closure | $callable |
Slim\Route::setName | ( | $name | ) |
Set route name.
string | $name |
InvalidArgumentException | if the route name is not a string |
Implements Slim\Interfaces\RouteInterface.
Definition at line 225 of file Route.php.
References $name.
Slim\Route::setOutputBuffering | ( | $mode | ) |
Set output buffering mode.
One of: false, 'prepend' or 'append'
boolean | string | $mode |
InvalidArgumentException | If an unknown buffering mode is specified |
Implements Slim\Interfaces\RouteInterface.
Definition at line 207 of file Route.php.