CustomTags
in package
This is the CustomTags class, a macro class for the basket viewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the basket's customTags.
Tags
Table of Contents
$basket | : Basket|null | |
---|---|---|
$customTags | : ElementCollection|null | |
$showFormFields | : bool | |
$showPositions | : array<string|int, mixed> | |
$useCalendar | : bool | |
__construct() | Constructor method for CustomTags class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for BasketViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$basket
public
Basket|null
$basket
= null
$customTags
public
ElementCollection|null
$customTags
= null
$showFormFields
public
bool
$showFormFields
= true
$showPositions
public
array<string|int, mixed>
$showPositions
= []
$useCalendar
public
bool
$useCalendar
= true
Methods
__construct()
Constructor method for CustomTags class.
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 BasketViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>