Basic Web application router class for the Joomla Platform.
- Depuis
- 3.0
- Obsolète:
- 4.0 Use the
joomla/router
package via Composer instead
◆ addMap()
addMap |
( |
|
$pattern, |
|
|
|
$controller |
|
) |
| |
Add a route map to the router. If the pattern already exists it will be overwritten.
- Paramètres
-
string | $pattern | The route pattern to use for matching. |
string | $controller | The controller name to map to the given pattern. |
- Renvoie
- JApplicationWebRouter This object for method chaining.
- Depuis
- 3.0
Références $controller, et elseif.
◆ addMaps()
Add a route map to the router. If the pattern already exists it will be overwritten.
- Paramètres
-
array | $maps | A list of route maps to add to the router as $pattern => $controller. |
- Renvoie
- JApplicationWebRouter This object for method chaining.
- Depuis
- 3.0
Références $controller.
◆ parseRoute()
Parse the given route and return the name of a controller mapped to the given route.
- Paramètres
-
string | $route | The route string for which to find and execute a controller. |
- Renvoie
- string The controller name for the given route excluding prefix.
- Depuis
- 3.0
- Exceptions
-
Références $controller, $default, $i, et $route.
◆ $maps
La documentation de cette classe a été générée à partir du fichier suivant :