|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Inheritance diagram for Slim_Router:
Collaboration diagram for Slim_Router:Public Member Functions | |
| __construct (Slim_Http_Request $request) | |
| Constructor. More... | |
| getIterator () | |
| Get Iterator. More... | |
| getRequest () | |
| Get Request. More... | |
| setRequest (Slim_Http_Request $req) | |
| Set Request. More... | |
| getMatchedRoutes ( $reload=false) | |
| Return routes that match the current request. More... | |
| map ( $pattern, $callable) | |
| Map a route to a callback function. More... | |
| cacheNamedRoute ( $name, Slim_Route $route) | |
| Cache named route. More... | |
| urlFor ( $name, $params=array()) | |
| Get URL for named route. More... | |
| notFound ( $callable=null) | |
| Register a 404 Not Found callback. More... | |
| error ( $callable=null) | |
| Register a 500 Error callback. More... | |
Protected Attributes | |
| $request | |
| $routes | |
| $namedRoutes | |
| $matchedRoutes | |
| $notFound | |
| $error | |
Definition at line 45 of file Router.php.
| Slim_Router::__construct | ( | Slim_Http_Request | $request | ) |
Constructor.
| Slim_Http_Request | $request | The HTTP request object |
Definition at line 81 of file Router.php.
References $request.
| Slim_Router::cacheNamedRoute | ( | $name, | |
| Slim_Route | $route | ||
| ) |
Cache named route.
| string | $name | The route name |
| Slim_Route | $route | The route object |
| RuntimeException | If a named route already exists with the same name |
Definition at line 147 of file Router.php.
| mixed Callable to be invoked if application Slim_Router::error | ( | $callable = null | ) |
Register a 500 Error callback.
| mixed | $callable | Anything that returns TRUE for is_callable() |
Definition at line 196 of file Router.php.
References $error, and error().
Referenced by error().
Here is the call graph for this function:
Here is the caller graph for this function:| Slim_Router::getIterator | ( | ) |
Get Iterator.
Definition at line 90 of file Router.php.
References getMatchedRoutes().
Here is the call graph for this function:| Slim_Router::getMatchedRoutes | ( | $reload = false | ) |
Return routes that match the current request.
Definition at line 115 of file Router.php.
References $matchedRoutes.
Referenced by getIterator().
Here is the caller graph for this function:| Slim_Router::getRequest | ( | ) |
Get Request.
Definition at line 98 of file Router.php.
References $request.
| Slim_Router::map | ( | $pattern, | |
| $callable | |||
| ) |
Map a route to a callback function.
| string | $pattern | The URL pattern (ie. "/books/:id") |
| mixed | $callable | Anything that returns TRUE for is_callable() |
Definition at line 133 of file Router.php.
| Slim_Router::notFound | ( | $callable = null | ) |
Register a 404 Not Found callback.
| mixed | $callable | Anything that returns TRUE for is_callable() |
Definition at line 184 of file Router.php.
References $notFound, and notFound().
Referenced by notFound().
Here is the call graph for this function:
Here is the caller graph for this function:| Slim_Router::setRequest | ( | Slim_Http_Request | $req | ) |
Set Request.
| Slim_Http_Request | $req |
Definition at line 107 of file Router.php.
| Slim_Router::urlFor | ( | $name, | |
$params = array() |
|||
| ) |
Get URL for named route.
| string | $name | The name of the route |
| array | Associative array of URL parameter names and values |
| RuntimeException | If named route not found |
Definition at line 161 of file Router.php.
References $params.
|
protected |
Definition at line 75 of file Router.php.
Referenced by error().
|
protected |
Definition at line 65 of file Router.php.
Referenced by getMatchedRoutes().
|
protected |
Definition at line 60 of file Router.php.
|
protected |
Definition at line 70 of file Router.php.
Referenced by notFound().
|
protected |
Definition at line 50 of file Router.php.
Referenced by __construct(), and getRequest().
|
protected |
Definition at line 55 of file Router.php.