Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
|
Public Member Functions | |
add ($middleware) | |
addMiddleware (MiddlewareInterface $middleware) | |
getArgument (string $name, ?string $default=null) | |
Retrieve a specific route argument. | |
getArguments () | |
Get route arguments. | |
getCallable () | |
Get route callable. | |
getIdentifier () | |
Get the route's unique identifier. | |
getInvocationStrategy () | |
Get route invocation strategy. | |
getMethods () | |
Get route methods. | |
getName () | |
Get route name. | |
getPattern () | |
Get route pattern. | |
prepare (array $arguments) | |
Prepare the route for use. | |
run (ServerRequestInterface $request) | |
Run route. | |
setArgument (string $name, string $value) | |
Set a route argument. | |
setArguments (array $arguments) | |
Replace route arguments. | |
setCallable ($callable) | |
Set route callable. | |
setInvocationStrategy (InvocationStrategyInterface $invocationStrategy) | |
Set route invocation strategy. | |
setName (string $name) | |
Set route name. | |
setPattern (string $pattern) | |
Set route pattern. | |
Slim\Interfaces\RouteInterface::add | ( | $middleware | ) |
MiddlewareInterface | string | callable | $middleware |
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::addMiddleware | ( | MiddlewareInterface | $middleware | ) |
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::getArgument | ( | string | $name, |
?string | $default = null ) |
Retrieve a specific route argument.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::getArguments | ( | ) |
Slim\Interfaces\RouteInterface::getCallable | ( | ) |
Slim\Interfaces\RouteInterface::getIdentifier | ( | ) |
Get the route's unique identifier.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::getInvocationStrategy | ( | ) |
Get route invocation strategy.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::getMethods | ( | ) |
Slim\Interfaces\RouteInterface::getName | ( | ) |
Get route name.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::getPattern | ( | ) |
Get route pattern.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::prepare | ( | array | $arguments | ) |
Prepare the route for use.
array<string,string> | $arguments |
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::run | ( | ServerRequestInterface | $request | ) |
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.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::setArguments | ( | array | $arguments | ) |
Replace route arguments.
array<string,string> | $arguments |
Slim\Interfaces\RouteInterface::setCallable | ( | $callable | ) |
Slim\Interfaces\RouteInterface::setInvocationStrategy | ( | InvocationStrategyInterface | $invocationStrategy | ) |
Set route invocation strategy.
Implemented in Slim\Routing\Route.
Slim\Interfaces\RouteInterface::setName | ( | string | $name | ) |
Slim\Interfaces\RouteInterface::setPattern | ( | string | $pattern | ) |
Set route pattern.
Implemented in Slim\Routing\Route.