Class to define an abstract Web application router.
- Depuis
- 3.0
- Obsolète:
- 4.0 Use the
joomla/router
package via Composer instead
◆ __construct()
__construct |
( |
JApplicationWeb |
$app, |
|
|
JInput |
$input = null |
|
) |
| |
Constructor.
- Paramètres
-
JApplicationWeb | $app | The web application on whose behalf we are routing the request. |
JInput | $input | An optional input object from which to derive the route. If none is given than the input from the application object will be used. |
- Depuis
- 3.0
Références $app, $input, et null.
◆ execute()
Find and execute the appropriate controller based on a given route.
- Paramètres
-
string | $route | The route string for which to find and execute a controller. |
- Renvoie
- mixed The return value of the controller executed
- Depuis
- 3.0
- Exceptions
-
InvalidArgumentException | |
RuntimeException | |
Références $controller, $name, et $route.
◆ fetchController()
◆ 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
-
◆ setControllerPrefix()
setControllerPrefix |
( |
|
$prefix | ) |
|
Set the controller name prefix.
- Paramètres
-
string | $prefix | Controller class name prefix for creating controller objects by name. |
- Renvoie
- JApplicationWebRouter This object for method chaining.
- Depuis
- 3.0
Références $prefix.
◆ setDefaultController()
setDefaultController |
( |
|
$name | ) |
|
Set the default controller name.
- Paramètres
-
string | $name | The default page controller name for an empty route. |
- Renvoie
- JApplicationWebRouter This object for method chaining.
- Depuis
- 3.0
Références $name.
◆ $app
◆ $controllerPrefix
◆ $default
◆ $input
La documentation de cette classe a été générée à partir du fichier suivant :