Class CategoryListItem
This class represents a flattened category with just its essential data. The object stores language specific data only in one language and is mainly used inside a CategoryListItemCollection for displaying among other CategoryListItems in a list. The class provides only read access and can not use to manipulate and persist categories data.
category |
System |
---|---|
package |
Category |
subpackage |
Entities |
__construct(\CategoryRepositoryInterface $categoryRepo, \CategoryListProviderInterface $categoryListProvider, \IdType $categoryId, \IdType $parentId, \BoolType $active, \StringType $name, \StringType $headingTitle, \StringType $description, \StringType $urlKeywords, \StringType $image, \StringType $imageAltText, \StringType $icon)
getCategoryId() : integer
integer
getDescription() : string
string
getHeadingTitle() : string
string
getIcon() : string
string
getImage() : string
string
getImageAltText() : string
string
getName() : string
string
getParentId() : integer
integer
getSubcategoryList() : \CategoryListItemCollection
getUrlKeywords() : string
string
isActive() : boolean
boolean
categoryRepo : \CategoryRepositoryInterface
categoryListProvider : \CategoryListProviderInterface
categoryId : integer
var |
---|
integer
parentId : integer
var |
---|
integer
active : boolean
var |
---|
boolean
name : string
var |
---|
string
headingTitle : string
var |
---|
string
description : string
var |
---|
string
urlKeywords : string
var |
---|
string
image : string
var |
---|
string
imageAltText : string
var |
---|
string
icon : string
var |
---|
string