CategoriesTree
in package
This is the CategoriesTree class, a macro class for the CategoryViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the user's CategoriesTree.
Tags
Table of Contents
SHOW_IMAGE_AFTER_NAME | = 'afterName' | |
---|---|---|
SHOW_IMAGE_BACKGROUND_IMAGE | = 'backgroundImage' | |
SHOW_IMAGE_BEFORE_NAME | = 'beforeName' | |
SHOW_IMAGE_NONE | = 'none' | |
$categories | : ElementCollection|null | |
$showImage | : string | |
__construct() | Constructor method for CategoriesTree. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for CategoryViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Constants
SHOW_IMAGE_AFTER_NAME
public
mixed
SHOW_IMAGE_AFTER_NAME
= 'afterName'
SHOW_IMAGE_BACKGROUND_IMAGE
public
mixed
SHOW_IMAGE_BACKGROUND_IMAGE
= 'backgroundImage'
SHOW_IMAGE_BEFORE_NAME
public
mixed
SHOW_IMAGE_BEFORE_NAME
= 'beforeName'
SHOW_IMAGE_NONE
public
mixed
SHOW_IMAGE_NONE
= 'none'
Properties
$categories
public
ElementCollection|null
$categories
= null
$showImage
public
string
$showImage
= self::SHOW_IMAGE_NONE
Methods
__construct()
Constructor method for CategoriesTree.
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
Tags
Return values
mixed —getViewParameters()
This method returns all calculated arguments and new parameters for CategoryViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>