Bundles
in package
This is the Bundles class, a macro class for the productViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the product's buttonClearProductsFilter.
Tags
Table of Contents
$buyBundleForm | : array<string|int, mixed> | |
---|---|---|
$buyFormOptionsArgs | : array<string|int, mixed> | |
$productBundles | : BundleDefinitionsWithGroupings|null | |
$showBundleDefinition | : bool | |
$showBundleDefinitionDescription | : bool | |
$showBundleDefinitionName | : bool | |
$showUniqueUnit | : bool | |
__construct() | Constructor method for Bundles class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for ProductViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$buyBundleForm
public
array<string|int, mixed>
$buyBundleForm
= []
$buyFormOptionsArgs
public
array<string|int, mixed>
$buyFormOptionsArgs
= []
$productBundles
public
BundleDefinitionsWithGroupings|null
$productBundles
= null
$showBundleDefinition
public
bool
$showBundleDefinition
= true
$showBundleDefinitionDescription
public
bool
$showBundleDefinitionDescription
= true
$showBundleDefinitionName
public
bool
$showBundleDefinitionName
= true
$showUniqueUnit
public
bool
$showUniqueUnit
= false
Methods
__construct()
Constructor method for Bundles 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 ProductViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>