|
static | start () |
| Starts the router by loading normal routes (not rest).
|
|
static | startRest () |
| Starts the router by loading rest routes (not normal routes).
|
|
static | startAll () |
| Starts the router by loading all routes (normal + rest routes).
|
|
static | getRoute ($path, $cachedResponse=true, $debug=false) |
| Returns the route corresponding to a path.
|
|
static | getRouteByName ($name, $parameters=[], $absolute=true) |
| Returns the generated path from a route.
|
|
static | getRouteInfoByName ($name) |
|
static | path ($name, $parameters=[], $absolute=false) |
| Returns the generated path from a route.
|
|
static | url ($name, $parameters=[]) |
| Returns the generated url from a route.
|
|
static | getRouteUrlParts ($routeArray, $params, $cached=false, $duration=null, $cachedResponse=true) |
|
static | slashPath ($path) |
| Adds a slash before and after a path.
|
|
static | setExpired ($routePath) |
| Declares a route as expired.
|
|
static | getRoutes () |
| Returns the array of loaded routes.
|
|
static | getStatusCode () |
| Return router response status code.
|
|
static | setStatusCode ($statusCode) |
| Set router response status code.
|
|
static | addRoute ($path, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | addRouteToRoutes (&$routesArray, $path, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0, $callback=null) |
|
static | addCallableRoute ($path, $callable, $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | get ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | post ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | delete ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | put ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | patch ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | options ($path, $callable, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | addRoutesToRoutes (&$routesArray, $paths, $controller, $action='index', $methods=null, $name='', $cache=false, $duration=null, $requirements=[], $priority=0) |
|
static | getRouteInfoByControllerAction ($controller, $action) |
|
static | getRoutesPathByController ($controller) |
|
static | getRoutePathInfos ($controller, $routePath, $routeInfo) |
|
static | getRouteInfo ($path) |
|
static | getAnnotations ($controllerName, $actionName) |
|
static | filterRoutes ($path) |
|
static | getRouteInfoByDefaultRouting (string $url) |
|
static | testRoutes ($path, $method=null) |
|
Router manager.
Ubiquity\controllers$Router This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.1.1
Definition at line 22 of file Router.php.