MiniBasketContent
in package
This is the MiniBasketContent 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 mini basket output.
Tags
Table of Contents
Constants
SHOW_OPTION_VALUES_NAME_NOT_SHOW
public
mixed
SHOW_OPTION_VALUES_NAME_NOT_SHOW
= 'notShow'
SHOW_OPTION_VALUES_NAME_SHOW_DESCRIPTION
public
mixed
SHOW_OPTION_VALUES_NAME_SHOW_DESCRIPTION
= 'showDescription'
SHOW_OPTION_VALUES_NAME_SHOW_NAME
public
mixed
SHOW_OPTION_VALUES_NAME_SHOW_NAME
= 'showName'
Properties
$basket
public
Basket|null
$basket
= null
$class
public
string
$class
= ''
$editable
public
bool
$editable
= false
$linkable
public
bool
$linkable
= true
$quantityPlugin
public
bool
$quantityPlugin
= false
$selectableBoxRows
public
int
$selectableBoxRows
= 5
$showBrand
public
bool
$showBrand
= false
$showCustomTagPositions
public
array<string|int, mixed>
$showCustomTagPositions
= []
$showCustomTags
public
bool
$showCustomTags
= false
$showDeleteItem
public
bool
$showDeleteItem
= true
$showFooter
public
bool
$showFooter
= true
$showGifts
public
bool
$showGifts
= false
$showHeader
public
bool
$showHeader
= true
$showImage
public
bool
$showImage
= true
$showItemNameDiscounts
public
bool
$showItemNameDiscounts
= false
$showItemValueDiscounts
public
string
$showItemValueDiscounts
= \FWK\ViewHelpers\Basket\Macro\BasketContent::SHOW_DISCOUNT_VALUE_NONE
$showOptions
public
bool
$showOptions
= true
$showOptionValuesName
public
string
$showOptionValuesName
= self::SHOW_OPTION_VALUES_NAME_SHOW_NAME
$showPaymentSystem
public
bool
$showPaymentSystem
= true
$showSelectableBox
public
bool
$showSelectableBox
= false
$showShipping
public
bool
$showShipping
= true
$showSku
public
bool
$showSku
= false
$showTaxIncluded
public
bool|null
$showTaxIncluded
= null
$showTotal
public
bool
$showTotal
= true
$showTotalDiscounts
public
bool
$showTotalDiscounts
= true
$showTotalVouchers
public
bool
$showTotalVouchers
= true
$showZeroDiscount
public
bool
$showZeroDiscount
= false
Methods
__construct()
Constructor method for MiniBasketContent 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>