ApiDispatcher
Extends ComponentDispatcherAPI Implementation for our dispatcher. It loads a component's administrator language files, and calls the API Controller so that components that haven't implemented web services can add their own handling.
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor for Dispatcher
__construct(\Joomla\CMS\Application\CMSApplicationInterface app, \Joomla\Input\Input input) : mixed
since |
4.0.0 |
---|
Arguments
- app
\Joomla\CMS\Application\CMSApplicationInterface
The application instance- input
\Joomla\Input\Input
The input instance
Response
mixed
checkAccess
Method to check component access permission
checkAccess() : void
since |
4.0.0 |
---|
dispatch
Dispatch a controller task. Redirecting the user if appropriate.
dispatch() : void
since |
4.0.0 |
---|
getApplication
The application the dispatcher is working with.
getApplication() : \Joomla\CMS\Application\CMSApplicationInterface
since |
4.0.0 |
---|
Response
\Joomla\CMS\Application\CMSApplicationInterface
getController
Get a controller from the component
getController(string name, string client = '', array config = array()) : \Joomla\CMS\MVC\Controller\BaseController
since |
4.0.0 |
---|
Arguments
- name
string
Controller name- client
string
Optional client (like Administrator, Site etc.)- config
array
Optional controller config
Response
\Joomla\CMS\MVC\Controller\BaseController
loadLanguage
Load the language
loadLanguage() : void
since |
4.0.0 |
---|
Properties
input
The input instance
since |
4.0.0 |
---|
Type(s)
\Joomla\Input\Input