Class: Category
Methods
-
(static) createFromJson(jsonObject, CategoryManagerInterface) → {Category}
-
Parameters:
| Name |
Type |
Description |
jsonObject |
Object
|
json as object tree |
CategoryManagerInterface |
|
categoryManager |
- Source:
Returns:
-
Type
-
Category
-
getBreadCrumb() → {Array.<Category>}
-
- Source:
Returns:
-
Type
-
Array.<Category>
-
getId() → {number}
-
- Source:
Returns:
-
Type
-
number
-
getName() → {string}
-
- Source:
Returns:
-
Type
-
string
-
getParent() → {Category|null}
-
- Source:
Returns:
-
Type
-
Category
|
null
-
getParentId() → {number}
-
- Source:
Returns:
-
Type
-
number
-
getPosition() → {number}
-
- Source:
Returns:
-
Type
-
number
-
getProductCount() → {number}
-
- Source:
Returns:
productCount
-
Type
-
number
-
getProductCount() → {number}
-
- Source:
Returns:
-
Type
-
number
-
getSubcategories(activeOnly) → {Array.<Category>}
-
Parameters:
| Name |
Type |
Description |
activeOnly |
boolean
|
|
- Source:
Returns:
-
Type
-
Array.<Category>
-
isActive() → {boolean}
-
- Source:
Returns:
-
Type
-
boolean
-
isPathActive() → {boolean}
-
- Source:
Returns:
-
Type
-
boolean
-
setProductCount(productCount)
-
Parameters:
| Name |
Type |
Description |
productCount |
number
|
|
- Source:
-
setProductCount(productCount)
-
Parameters:
| Name |
Type |
Description |
productCount |
number
|
|
- Source: