ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct (Slim_Http_Request $request) | |
Constructor. | |
getIterator () | |
Get Iterator. | |
getRequest () | |
Get Request. | |
setRequest (Slim_Http_Request $req) | |
Set Request. | |
getMatchedRoutes ($reload=false) | |
Return routes that match the current request. | |
map ($pattern, $callable) | |
Map a route to a callback function. | |
cacheNamedRoute ($name, Slim_Route $route) | |
Cache named route. | |
urlFor ($name, $params=array()) | |
Get URL for named route. | |
notFound ($callable=null) | |
Register a 404 Not Found callback. | |
error ($callable=null) | |
Register a 500 Error callback. |
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.
Slim_Router::getIterator | ( | ) |
Get Iterator.
Definition at line 90 of file Router.php.
References getMatchedRoutes().
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().
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.
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.
|
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.