Module

Implements \Joomla\CMS\Extension\ModuleInterface, \Joomla\CMS\Helper\HelperFactoryInterface

Access to module specific services.

since

4.0.0

Methods

__construct

Module constructor.

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

4.0.0

Arguments

$dispatcherFactory

\Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterfaceThe dispatcher factory

$helperFactory

\Joomla\CMS\Helper\HelperFactoryInterfaceThe helper factory

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 = array()) : \stdClass
since

4.0.0

Arguments

$name

stringThe name

$config

arrayThe config

Response

\stdClass

Properties

dispatcherFactory

The dispatcher factory.

helperFactory

The helper factory.