Category
class Category extends Category implements PrimaryKeyInterface, CSVEntityInterface, BlockEntity, CategoryTreeSlugInterface, RelationshipEntityInterface, BreadcrumbTreeInterface
Class Category
Traits
Properties
| protected string | $name | Category name | from Category |
| protected string | $description | Category description | from Category |
| protected string | $icon | Category icon | from Category |
| protected DateTime | $createdAt | Category created at | from Category |
| protected DateTime | $updatedAt | Category updated at | from Category |
| protected bool | $display | Enable disable category visibility | from Category |
| protected bool | $hideFromMenu | Show/hide category from menu | from Category |
| protected string|null | $updatedBy | User which triggered update | from UpdatedByTrait |
| protected string|null | $hash | Filed for update validation | from UpdatedByTrait |
| protected int | $code | Category code | |
| protected string | $metaTitle | Category meta title | |
| protected string | $metaDescription | Category meta description | |
| protected int | $numberOfItems | Category number of children items | |
| protected string | $imagePath | Category image web path | |
| protected string | $imageId | Category image id | |
| protected array | $permissions | Array of category permissions |
Methods
No description
Constructor
No description
No description
No description
No description
No description
No description
No description
Check isRootCategory property
No description
Get id
No description
Get children
No description
No description
Get visible children
Get products
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 818
string
getCategoryName()
in Category at line 164
mixed
getCreatedAt()
Get createdAt
in Category at line 188
mixed
getUpdatedAt()
Get updatedAt
in Category at line 196
mixed
getDescription()
in Category at line 216
string
getIcon()
in Category at line 236
string
getName()
in Category at line 256
boolean
isDisplay()
in Category at line 276
bool
isHideFromMenu()
in Category at line 284
setHideFromMenu(bool $hideFromMenu)
in UpdatedByTrait at line 46
null|string
getUpdatedBy()
in UpdatedByTrait at line 56
$this
setUpdatedBy(null|string $updatedBy)
in UpdatedByTrait at line 66
null|string
getHash()
in UpdatedByTrait at line 76
$this
setHash(null|string $hash)
at line 497
__construct()
Constructor
at line 510
mixed
getSlug()
at line 520
$this
setSlug(string $slug)
at line 530
mixed
getCode()
at line 540
$this
setCode(mixed $code)
at line 550
DateTime
getDeletedAt()
at line 558
setDeletedAt(DateTime $deletedAt)
at line 566
boolean
getIsRootCategory()
at line 576
$this
setIsRootCategory(boolean $isRootCategory)
at line 587
$this
checkIfRootCategory()
Check isRootCategory property
at line 599
$this
setId(mixed $id)
at line 609
Category
getParent()
at line 631
integer
getId()
Get id
at line 655
removeGalleryImage(Image $image)
at line 681
removeChild(Category $children)
Remove child
at line 690
removeAllChild()
at line 700
Collection
getChildren()
Get children
at line 710
$this
addCategoryExternalLink(CategoryExternalLink $categoryExternalLink)
at line 721
removeCategoryExternalLink(CategoryExternalLink $categoryExternalLink)
at line 730
removeAllCategoryExternalLinks()
at line 738
mixed
getCategoryExternalLinks()
at line 748
array
getVisibleChildren()
Get visible children
at line 783
removeProduct(Product $product)
Remove products
at line 794
Collection
getProducts()
Get products