Back to Joomla project (class list)

Class CategoryFactory - list of methods

Option based categories factory.

Extends

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

Method Summary

public
(mixed $namespace)

The namespace must be like: Joomla\Component\Content
Parameters
  • string $namespace The namespace
Since
  • 4.0.0
Show source code of this method: __construct Source Code

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

Creates a category.
Parameters
  • array $options The options
  • string $section The section
Returns
  • \Joomla\CMS\Categories\CategoryInterface
Since
  • 3.10.0
-
  • \Joomla\CMS\Categories\SectionNotFoundException
Show source code of this method: createCategory Source Code

Properties Summary

private string
$namespace
The namespace to create the categories from.
Since
  • 4.0.0

Tags Summary

Since
3.10.0