ModuleDispatcher

Extends AbstractModuleDispatcher

Base class for a Joomla Module Dispatcher

Executes the single entry file of a module.

since

4.0.0

package

Joomla CMS

Methods

__construct

Constructor for Dispatcher

__construct(\stdClass module, \Joomla\CMS\Application\CMSApplicationInterface app, \Joomla\Input\Input input) : 
inherited
since

4.0.0

Arguments

module

stdClassThe module

app

CMSApplicationInterfaceThe application instance

input

InputThe input instance

Response

mixed

dispatch

Dispatches the dispatcher.

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

getLayoutData

Returns the layout data. This function can be overridden by subclasses to add more attributes for the layout.

getLayoutData() : array|false
inherited

If false is returned, then it means that the dispatch process should be stopped.

since

4.0.0

Response

array<string|int, mixed>|false

loadLanguage

Load the language.

loadLanguage() : 
inherited
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

module

The module instance

inherited
since

4.0.0

Type(s)

stdClass