Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
|
Public Member Functions | |
getBasePath () | |
Get the base path used in pathFor() | |
getCacheFile () | |
Get path to FastRoute cache file. | |
getDefaultInvocationStrategy () | |
Get default route invocation strategy. | |
getNamedRoute (string $name) | |
Get named route object. | |
getRouteParser () | |
Get the route parser. | |
getRoutes () | |
Get route objects. | |
group (string $pattern, $callable) | |
Add route group. | |
lookupRoute (string $identifier) | |
Lookup a route via the route's unique identifier. | |
map (array $methods, string $pattern, $handler) | |
Add route. | |
removeNamedRoute (string $name) | |
Remove named route. | |
setBasePath (string $basePath) | |
Set the base path used in pathFor() | |
setCacheFile (string $cacheFile) | |
Set path to FastRoute cache file. | |
setDefaultInvocationStrategy (InvocationStrategyInterface $strategy) | |
Set default route invocation strategy. | |
Slim\Interfaces\RouteCollectorInterface::getBasePath | ( | ) |
Get the base path used in pathFor()
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::getCacheFile | ( | ) |
Get path to FastRoute cache file.
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::getDefaultInvocationStrategy | ( | ) |
Get default route invocation strategy.
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::getNamedRoute | ( | string | $name | ) |
Get named route object.
string | $name | Route name |
RuntimeException | If named route does not exist |
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::getRouteParser | ( | ) |
Get the route parser.
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::getRoutes | ( | ) |
Slim\Interfaces\RouteCollectorInterface::group | ( | string | $pattern, |
$callable ) |
Slim\Interfaces\RouteCollectorInterface::lookupRoute | ( | string | $identifier | ) |
Lookup a route via the route's unique identifier.
RuntimeException | If route of identifier does not exist |
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::map | ( | array | $methods, |
string | $pattern, | ||
$handler ) |
Add route.
string[] | $methods | Array of HTTP methods |
string | $pattern | The route pattern |
callable | string | $handler | The route callable |
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::removeNamedRoute | ( | string | $name | ) |
Remove named route.
string | $name | Route name |
RuntimeException | If named route does not exist |
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::setBasePath | ( | string | $basePath | ) |
Set the base path used in pathFor()
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::setCacheFile | ( | string | $cacheFile | ) |
Set path to FastRoute cache file.
InvalidArgumentException | |
RuntimeException |
Implemented in Slim\Routing\RouteCollector.
Slim\Interfaces\RouteCollectorInterface::setDefaultInvocationStrategy | ( | InvocationStrategyInterface | $strategy | ) |
Set default route invocation strategy.
Implemented in Slim\Routing\RouteCollector.