\JApplicationWebRouter
Class to define an abstract Web application router.
Synopsis
class JApplicationWebRouter
{
- // members
- protected JApplicationWeb $app;
- protected $default;
- protected $controllerPrefix;
- protected JInput $input;
- // methods
- public void __construct()
- public mixed execute()
- public JApplicationWebRouter setControllerPrefix()
- public JApplicationWebRouter setDefaultController()
- protected abstract string parseRoute()
- protected JController fetchController()
Hierarchy
Extended by
Members
protected
- $app — JApplicationWeb
- $controllerPrefix — string
- $default — string
- $input — JInput
Methods
protected
- fetchController() — Get a JController object for a given name.
- parseRoute() — Parse the given route and return the name of a controller mapped to the given route.
public
- __construct() — Constructor.
- execute() — Find and execute the appropriate controller based on a given route.
- setControllerPrefix() — Set the controller name prefix.
- setDefaultController() — Set the default controller name.