diff --git a/reference/yaf/yaf_route_interface/route.xml b/reference/yaf/yaf_route_interface/route.xml index b40ccdb33e..08bf3cfc64 100644 --- a/reference/yaf/yaf_route_interface/route.xml +++ b/reference/yaf/yaf_route_interface/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - abstract public voidYaf_Route_Interface::route - stringrequest + abstract public boolYaf_Route_Interface::route + Yaf_Request_Abstractrequest Yaf_Route_Interface::route is the only method diff --git a/reference/yaf/yaf_route_map/construct.xml b/reference/yaf/yaf_route_map/construct.xml index f6b7c5394f..d5fc26b9a8 100644 --- a/reference/yaf/yaf_route_map/construct.xml +++ b/reference/yaf/yaf_route_map/construct.xml @@ -11,8 +11,8 @@ &reftitle.description; Yaf_Route_Map::__construct - stringcontroller_prefer - stringdelimiter + stringcontroller_preferfalse + stringdelimiter'' @@ -29,7 +29,7 @@ controller_prefer - + Whether the result should considering as controller or action @@ -51,6 +51,76 @@ + + &reftitle.examples; + + <function>Yaf_Route_Map</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Map()); +]]> + + &example.outputs.similar; + + "product_foo_bar", +) +]]> + + + + <function>Yaf_Route_Map</function>example + +getRouter()->addRoute("name", + new Yaf_Route_Map(true, "_")); +]]> + + &example.outputs.similar; + + "user_list", +) + +/** + * and request parameters: + */ +array( + "foo" => 22, +) +]]> + + + + + + &reftitle.seealso; + + Yaf_Router::addRoute + Yaf_Route_Static + Yaf_Route_Supervar + Yaf_Route_Simple + Yaf_Route_Regex + Yaf_Route_Rewrite + + diff --git a/reference/yaf/yaf_route_map/route.xml b/reference/yaf/yaf_route_map/route.xml index 4f0f7cbd5e..0f0bd75528 100644 --- a/reference/yaf/yaf_route_map/route.xml +++ b/reference/yaf/yaf_route_map/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Map::route - stringrequest + public boolYaf_Route_Map::route + Yaf_Request_Abstractrequest diff --git a/reference/yaf/yaf_route_regex/route.xml b/reference/yaf/yaf_route_regex/route.xml index 1797cd04ee..13c350a1d6 100644 --- a/reference/yaf/yaf_route_regex/route.xml +++ b/reference/yaf/yaf_route_regex/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Regex::route - stringrequest + public boolYaf_Route_Regex::route + Yaf_Request_Abstractrequest diff --git a/reference/yaf/yaf_route_rewrite/route.xml b/reference/yaf/yaf_route_rewrite/route.xml index afe8640abb..57c4517edf 100644 --- a/reference/yaf/yaf_route_rewrite/route.xml +++ b/reference/yaf/yaf_route_rewrite/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Rewrite::route - stringrequest + public boolYaf_Route_Rewrite::route + Yaf_Request_Abstractrequest diff --git a/reference/yaf/yaf_route_simple/route.xml b/reference/yaf/yaf_route_simple/route.xml index 94c7851d5e..62219278bb 100644 --- a/reference/yaf/yaf_route_simple/route.xml +++ b/reference/yaf/yaf_route_simple/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Simple::route - stringrequest + public boolYaf_Route_Simple::route + Yaf_Request_Abstractrequest see Yaf_Route_Simple::__construct diff --git a/reference/yaf/yaf_route_static/route.xml b/reference/yaf/yaf_route_static/route.xml index 066207ac66..7d752cdd40 100644 --- a/reference/yaf/yaf_route_static/route.xml +++ b/reference/yaf/yaf_route_static/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Static::route - stringrequest + public boolYaf_Route_Static::route + Yaf_Request_Abstractrequest diff --git a/reference/yaf/yaf_route_supervar/route.xml b/reference/yaf/yaf_route_supervar/route.xml index 85bea55ac1..343574af6f 100644 --- a/reference/yaf/yaf_route_supervar/route.xml +++ b/reference/yaf/yaf_route_supervar/route.xml @@ -10,8 +10,8 @@ &reftitle.description; - public voidYaf_Route_Supervar::route - stringrequest + public boolYaf_Route_Supervar::route + Yaf_Request_Abstractrequest