LegacyComponent
Implements ComponentInterface, MVCFactoryServiceInterface, CategoryServiceInterface, FieldsServiceInterface, RouterServiceInterface, TagServiceInterfaceAccess to component specific services.
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
LegacyComponentContainer constructor.
__construct(string component) : mixed
since |
4.0.0 |
---|
Arguments
- component
string
The component
Response
mixed
countItems
Adds Count Items for Category Manager.
countItems(\stdClass[] items, string section) : void
since |
4.0.0 |
---|---|
throws |
|
Arguments
- items
\stdClass[]
The category objects- section
string
The section
countTagItems
Adds Count Items for Tag Manager.
countTagItems(\stdClass[] items, string extension) : void
since |
4.0.0 |
---|
Arguments
- items
\stdClass[]
The content objects- extension
string
The 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\CMSApplicationInterface
The application object- menu
\Joomla\CMS\Menu\AbstractMenu
The 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
since |
4.0.0 |
---|---|
throws |
|
Arguments
- options
array
The options- section
string
The 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\CMSApplicationInterface
The application
Response
\Joomla\CMS\Dispatcher\DispatcherInterface
getMVCFactory
Get the factory.
getMVCFactory() : \Joomla\CMS\MVC\Factory\MVCFactoryInterface
since |
4.0.0 |
---|---|
throws |
|
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
since |
4.0.0 |
---|
Arguments
- section
string
The section
Response
string|null
getTableNameForSection
Returns the table for the count items functions for the given section.
getTableNameForSection(string section = null) : string|null
since |
4.0.0 |
---|
Arguments
- section
string
The 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
Arguments
- form
\Joomla\CMS\Form\Form
The form to change- data
array|object
The form data
setCategoryFactory
Sets the internal category factory.
setCategoryFactory(\Joomla\CMS\Categories\CategoryFactoryInterface categoryFactory) : void
since |
4.0.0 |
---|
Arguments
- categoryFactory
\Joomla\CMS\Categories\CategoryFactoryInterface
The 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
string
The section to get the mapping for- item
object
The item
Response
string|null
The new section