Back to Joomla project (class list)

Class ComponentDispatcher - list of methods

Base 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.

Extends

Direct known subclasses

Package: Joomla\CMS\Dispatcher
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Dispatcher/ComponentDispatcher.php
Project: Joomla

Method Summary

public
(\Joomla\CMS\Application\CMSApplicationInterface $app, \Joomla\Input\Input $input, \Joomla\CMS\MVC\Factory\MVCFactoryInterface $mvcFactory)

Constructor for ComponentDispatcher
Parameters
  • \Joomla\CMS\Application\CMSApplicationInterface $app The application instance
  • \Joomla\Input\Input $input The input instance
  • \Joomla\CMS\MVC\Factory\MVCFactoryInterface $mvcFactory The MVC factory instance
Since
  • 4.0.0
Show source code of this method: __construct Source Code

protected void
()

Load the language
Returns
  • void
Since
  • 4.0.0
Show source code of this method: loadLanguage Source Code

protected void
()

Method to check component access permission
Returns
  • void
Since
  • 4.0.0
Show source code of this method: checkAccess Source Code

public void
()

Dispatch a controller task. Redirecting the user if appropriate.
Returns
  • void
Since
  • 4.0.0
Show source code of this method: dispatch Source Code

public \Joomla\CMS\MVC\Controller\BaseController
(string $name, string $client = '', array $config = array())

Get a controller from the component
Parameters
  • string $name Controller name
  • string $client Optional client (like Administrator, Site etc.)
  • array $config Optional controller config
Returns
  • \Joomla\CMS\MVC\Controller\BaseController
Since
  • 4.0.0
Show source code of this method: getController Source Code

Properties Summary

protected string
$option
The URL option for the component.
Since
  • 4.0.0
protected \Joomla\CMS\MVC\Factory\MVCFactoryInterface
$mvcFactory
The MVC factory
Since
  • 4.0.0

Tags Summary

Since
4.0.0