LegacyComponent

Implements ComponentInterface, MVCFactoryServiceInterface, CategoryServiceInterface, FieldsServiceInterface, RouterServiceInterface, TagServiceInterface

Access to component specific services.

since

4.0.0

package

Application

Methods

__construct

LegacyComponentContainer constructor.

__construct(string component) : mixed
since

4.0.0

Arguments

component

stringThe component

Response

mixed

countItems

Adds Count Items for Category Manager.

countItems(\stdClass[] items, string section) : void
inherited
since

4.0.0

throws

\Exception

Arguments

items

\stdClass[]The category objects

section

stringThe section

countTagItems

Adds Count Items for Tag Manager.

countTagItems(\stdClass[] items, string extension) : void
inherited
since

4.0.0

Arguments

items

\stdClass[]The content objects

extension

stringThe name of the active view.

createRouter

Returns the router.

createRouter(\Joomla\CMS\Application\CMSApplicationInterface application, \Joomla\CMS\Menu\AbstractMenu menu) : \Joomla\CMS\Component\Router\RouterInterface
since

4.0.0

Arguments

application

\Joomla\CMS\Application\CMSApplicationInterfaceThe application object

menu

\Joomla\CMS\Menu\AbstractMenuThe menu object to work with

Response

\Joomla\CMS\Component\Router\RouterInterface

getCategory

Returns the category service.

getCategory(array options = [], string section = '') : \Joomla\CMS\Categories\CategoryInterface
inherited
since

4.0.0

throws

\Joomla\CMS\Categories\SectionNotFoundException

Arguments

options

arrayThe options

section

stringThe section

Response

\Joomla\CMS\Categories\CategoryInterface

getContexts

Returns valid contexts.

getContexts() : array
since

4.0.0

Response

array

getDispatcher

Returns the dispatcher for the given application.

getDispatcher(\Joomla\CMS\Application\CMSApplicationInterface application) : \Joomla\CMS\Dispatcher\DispatcherInterface
since

4.0.0

Arguments

application

\Joomla\CMS\Application\CMSApplicationInterfaceThe application

Response

\Joomla\CMS\Dispatcher\DispatcherInterface

getMVCFactory

Get the factory.

getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
since

4.0.0

throws

\UnexpectedValueExceptionMay be thrown if the factory has not been set.

Response

\Joomla\CMS\MVC\Factory\MVCFactoryInterface

getStateColumnForSection

Returns the state column for the count items functions for the given section.

getStateColumnForSection(string section = null) : string|null
inherited
since

4.0.0

Arguments

section

stringThe section

Response

string|null

getTableNameForSection

Returns the table for the count items functions for the given section.

getTableNameForSection(string section = null) : string|null
inherited
since

4.0.0

Arguments

section

stringThe section

Response

string|null

loadHelper

Returns the classname of the legacy helper class. If none is found it returns false.

loadHelper() : bool|string
since

4.0.0

Response

bool|string

prepareForm

Prepares the category form

prepareForm(\Joomla\CMS\Form\Form form, array|object data) : void
inherited

Arguments

form

\Joomla\CMS\Form\FormThe form to change

data

array|objectThe form data

setCategoryFactory

Sets the internal category factory.

setCategoryFactory(\Joomla\CMS\Categories\CategoryFactoryInterface categoryFactory) : void
inherited
since

4.0.0

Arguments

categoryFactory

\Joomla\CMS\Categories\CategoryFactoryInterfaceThe categories factory

validateSection

Returns a valid section for articles. If it is not valid then null is returned.

validateSection(string section, object item = null) : string|null
since

4.0.0

Arguments

section

stringThe section to get the mapping for

item

objectThe item

Response

string|nullThe new section

Properties

component

since

4.0.0

Type(s)

string

categoryFactory

The categories factory

inherited
since

4.0.0

Type(s)

CategoryFactoryInterface