|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for Slim\Route:
Collaboration diagram for Slim\Route: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 | |
| getArgument ($name, $default=null) | |
| Retrieve a specific route argument. More... | |
| getArguments () | |
| Get route arguments. More... | |
| getName () | |
| Get route name. More... | |
| getPattern () | |
| Get route pattern. More... | |
| setArgument ($name, $value) | |
| Set a route argument. More... | |
| setArguments (array $arguments) | |
| Replace route arguments. More... | |
| setOutputBuffering ($mode) | |
| Set output buffering mode. More... | |
| setName ($name) | |
| Set route name. More... | |
| add ($callable) | |
| Add middleware. More... | |
| prepare (ServerRequestInterface $request, array $arguments) | |
| Prepare the route for use. More... | |
| run (ServerRequestInterface $request, ResponseInterface $response) | |
| Run route. 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 |
|||
| ) |
Create new route.
| string | string[] | $methods | The route HTTP methods |
| string | $pattern | The route pattern |
| callable | $callable | The route callable |
| RouteGroup[] | $groups | The parent route groups |
| int | $identifier | The route identifier |
| Slim\Route::finalize | ( | ) |
Finalize the route in preparation for dispatching.
Definition at line 106 of file Route.php.
References Slim\addMiddleware().
Here is the call graph for this function:| 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 $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 $response.
| Slim\Route::setArgument | ( | $name, | |
| $value, | |||
$includeInSavedArguments = true |
|||
| ) |
Set a route argument.
| string | $name | |
| string | $value | |
| bool | $includeInSavedArguments |
Definition at line 243 of file Route.php.
References $name.
| Slim\Route::setArguments | ( | array | $arguments, |
$includeInSavedArguments = true |
|||
| ) |
Replace route arguments.
| array | $arguments | |
| bool | $includeInSavedArguments |
Definition at line 260 of file Route.php.
| Slim\Route::setCallable | ( | $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.