ComponentDispatcher

Extends Dispatcher

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.

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

CMSApplicationInterfaceThe application instance

input

InputThe input instance

mvcFactory

MVCFactoryInterfaceThe 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
inherited
since

4.0.0

Response

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

stringController name

client

stringOptional client (like Administrator, Site etc.)

config

array<string|int, mixed>Optional controller config

Response

BaseController

loadLanguage

Load the language

loadLanguage() : 
since

4.0.0

Response

void

Properties

app

The application instance

inherited
since

4.0.0

Type(s)

CMSApplicationInterface

input

The input instance

inherited
since

4.0.0

Type(s)

Input

option

The URL option for the component.

since

4.0.0

Type(s)

string

mvcFactory

The MVC factory

since

4.0.0

Type(s)

MVCFactoryInterface