Back to Joomla project (class list)

Class LegacyComponent - list of methods

Access to component specific services.

Extends

Package: Joomla\CMS\Extension
Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Extension/LegacyComponent.php
Project: Joomla

Method Summary

public
(string $component)

LegacyComponentContainer constructor.
Parameters
  • string $component The component
Since
  • 4.0.0
Show source code of this method: __construct Source Code

public \Joomla\CMS\Dispatcher\DispatcherInterface
(\Joomla\CMS\Application\CMSApplicationInterface $application)

Returns the dispatcher for the given application.
Parameters
  • \Joomla\CMS\Application\CMSApplicationInterface $application The application
Returns
  • \Joomla\CMS\Dispatcher\DispatcherInterface
Since
  • 4.0.0
Show source code of this method: getDispatcher Source Code

public \Joomla\CMS\MVC\Factory\MVCFactoryInterface
()

Get the factory.
Returns
  • \Joomla\CMS\MVC\Factory\MVCFactoryInterface
Since
  • 4.0.0
-
  • \UnexpectedValueException May be thrown if the factory has not been set.
Show source code of this method: getMVCFactory Source Code

public \Joomla\CMS\Categories\CategoryInterface
(array $options = [], mixed $section = '')

Returns the category service.
Parameters
  • array $options The options
  • string $section The section
Returns
  • \Joomla\CMS\Categories\CategoryInterface
Since
  • 4.0.0
-
  • \Joomla\CMS\Categories\SectionNotFoundException
Show source code of this method: getCategory Source Code

public void
(array $items, string $section)

Adds Count Items for Category Manager.
Parameters
  • \stdClass[] $items The category objects
  • string $section The section
Returns
  • void
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: countItems Source Code

public void
(array $items, string $extension)

Adds Count Items for Tag Manager.
Parameters
  • \stdClass[] $items The content objects
  • string $extension The name of the active view.
Returns
  • void
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: countTagItems Source Code

public string|null
(mixed $section, mixed $item = null)

Returns a valid section for articles. If it is not valid then null is returned.
Parameters
  • string $section The section to get the mapping for
  • object $item The item
Returns
  • string|null The new section
Since
  • 4.0.0
Show source code of this method: validateSection Source Code

public array
()

Returns valid contexts.
Returns
  • array
Since
  • 4.0.0
Show source code of this method: getContexts Source Code

public \Joomla\CMS\Component\Router\RouterInterface
(\Joomla\CMS\Application\CMSApplicationInterface $application, \Joomla\CMS\Menu\AbstractMenu $menu)

Returns the router.
Parameters
  • \Joomla\CMS\Application\CMSApplicationInterface $application The application object
  • \Joomla\CMS\Menu\AbstractMenu $menu The menu object to work with
Returns
  • \Joomla\CMS\Component\Router\RouterInterface
Since
  • 4.0.0
Show source code of this method: createRouter Source Code

private bool|string
()

Returns the classname of the legacy helper class. If none is found it returns false.
Returns
  • bool|string
Since
  • 4.0.0
Show source code of this method: loadHelper Source Code

Properties Summary

private string
$component
Since
  • 4.0.0

Tags Summary

Since
4.0.0