MvcTools: ezcMvcRoute
[ ]
[ ]
[ ]
[ ]
[ ]
Interface: ezcMvcRoute
|
The interface that should be implemented by the different route types. [
source]
Each route is responsible for checking whether it matches data in the $request. It also need to support to prefix itself with a route-type dependent prefix string.
Method Summary
|
public null|ezcMvcRoutingInformation |
matches(
$request )
Returns routing information if the route matched, or null in case the route did not match. |
|
public void |
prefix(
$prefix )
Adds a prefix to the route. |
Methods
matches
Returns routing information if the route matched, or null in case the route did not match.
Parameters
prefix
void prefix(
mixed
$prefix )
Adds a prefix to the route.
Parameters
| Name |
Type |
Description |
$prefix |
mixed |
Prefix to add, for example: '/blog' |
Last updated: Mon, 21 Dec 2009