Module

Implements ModuleInterface, HelperFactoryInterface

Access to module specific services.

since

4.0.0

package

Application

Methods

__construct

Module constructor.

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

4.0.0

Arguments

dispatcherFactory

\Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterfaceThe dispatcher factory

helperFactory

\Joomla\CMS\Helper\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

\Joomla\CMS\Application\CMSApplicationInterfaceThe application

input

\Joomla\Input\InputThe input object, defaults to the one in the application

Response

\Joomla\CMS\Dispatcher\DispatcherInterface

getHelper

Returns a helper instance for the given name.

getHelper(string name, array config = []) : \stdClass
since

4.0.0

Arguments

name

stringThe name

config

arrayThe 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