Module

Implements ModuleInterface, HelperFactoryInterface

Access to module specific services.

since

4.0.0

package

Joomla CMS

Methods

__construct

Module constructor.

__construct(\Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterface dispatcherFactory, \Joomla\CMS\Helper\HelperFactoryInterface helperFactory) : 
since

4.0.0

Arguments

dispatcherFactory

ModuleDispatcherFactoryInterfaceThe dispatcher factory

helperFactory

HelperFactoryInterfaceThe helper factory

Response

mixed

getDispatcher

Returns the dispatcher for the given application, module and input.

getDispatcher(\stdClass module, \Joomla\CMS\Application\CMSApplicationInterface application, \Joomla\Input\Input input = null) : \Joomla\CMS\Dispatcher\DispatcherInterface
since

4.0.0

Arguments

module

stdClassThe module

application

CMSApplicationInterfaceThe application

input

InputThe input object, defaults to the one in the application

Response

DispatcherInterface

getHelper

Returns a helper instance for the given name.

getHelper( name, mixed||string|int config = []) : \stdClass
since

4.0.0

Arguments

name

stringThe name

config

array<string|int, mixed>The config

Response

stdClass

Properties

dispatcherFactory

The dispatcher factory.

since

4.0.0

Type(s)

ModuleDispatcherFactoryInterface

helperFactory

The helper factory.

since

4.0.0

Type(s)

HelperFactoryInterface