ComponentDispatcher
Extends DispatcherBase class for a Joomla Component Dispatcher
Dispatchers are responsible for checking ACL of a component if appropriate and choosing an appropriate controller (and if necessary, a task) and executing it.
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor for ComponentDispatcher
__construct(\Joomla\CMS\Application\CMSApplicationInterface app, \Joomla\Input\Input input, \Joomla\CMS\MVC\Factory\MVCFactoryInterface mvcFactory) :
since |
4.0.0 |
---|
Arguments
- app
CMSApplicationInterface
The application instance- input
Input
The input instance- mvcFactory
MVCFactoryInterface
The MVC factory instance
Response
mixed
checkAccess
Method to check component access permission
checkAccess() :
since |
4.0.0 |
---|
Response
void
dispatch
Dispatch a controller task. Redirecting the user if appropriate.
dispatch() :
since |
4.0.0 |
---|
Response
void
getApplication
The application the dispatcher is working with.
getApplication() : \Joomla\CMS\Application\CMSApplicationInterface
getController
Get a controller from the component
getController( name, client = '', mixed||string|int config = []) : \Joomla\CMS\MVC\Controller\BaseController
since |
4.0.0 |
---|
Arguments
- name
string
Controller name- client
string
Optional client (like Administrator, Site etc.)- config
array<string|int, mixed>
Optional controller config
Response
loadLanguage
Load the language
loadLanguage() :
since |
4.0.0 |
---|
Response
void
Properties
input
The input instance
since |
4.0.0 |
---|
Type(s)
Input
option
The URL option for the component.
since |
4.0.0 |
---|
Type(s)
string