CategoryFactory
in package
implements
CategoryFactoryInterface
Class CategoryFactory
This class creates Category and StoredCategory objects with its CategorySettings dependency.
Tags
Interfaces, Classes and Traits
- CategoryFactoryInterface
- Interface CategoryFactoryInterface
Table of Contents
- createCategory() : Category
- Creates and returns a new instance of a category object.
- createCategorySettings() : CategorySettings
- Creates and returns a new instance of a category settings object.
- createStoredCategory() : StoredCategory
- Creates and returns a new instance of a stored category object.
Methods
createCategory()
Creates and returns a new instance of a category object.
public
createCategory() : Category
Return values
Category —createCategorySettings()
Creates and returns a new instance of a category settings object.
public
createCategorySettings() : CategorySettings
Return values
CategorySettings —createStoredCategory()
Creates and returns a new instance of a stored category object.
public
createStoredCategory(IdType $categoryId) : StoredCategory
Parameters
- $categoryId : IdType
-
CategoryID.