MiniBasketContent

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
see
MiniBasketContent::getViewParameters()

Table of Contents

SHOW_OPTION_VALUES_NAME_NOT_SHOW  = 'notShow'
SHOW_OPTION_VALUES_NAME_SHOW_DESCRIPTION  = 'showDescription'
SHOW_OPTION_VALUES_NAME_SHOW_NAME  = 'showName'
$basket  : Basket|null
$class  : string
$editable  : bool
$linkable  : bool
$quantityPlugin  : bool
$selectableBoxRows  : int
$showBrand  : bool
$showCustomTagPositions  : array<string|int, mixed>
$showCustomTags  : bool
$showDeleteItem  : bool
$showFooter  : bool
$showGifts  : bool
$showHeader  : bool
$showImage  : bool
$showItemNameDiscounts  : bool
$showItemValueDiscounts  : string
$showOptions  : bool
$showOptionValuesName  : string
$showPaymentSystem  : bool
$showSelectableBox  : bool
$showShipping  : bool
$showSku  : bool
$showTaxIncluded  : bool|null
$showTotal  : bool
$showTotalDiscounts  : bool
$showTotalVouchers  : bool
$showZeroDiscount  : bool
__construct() Constructor method for MiniBasketContent 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>

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

$showCustomTagPositions

public array<string|int, mixed> $showCustomTagPositions = []

$showItemValueDiscounts

public string $showItemValueDiscounts = \FWK\ViewHelpers\Basket\Macro\BasketContent::SHOW_DISCOUNT_VALUE_NONE

$showOptionValuesName

public string $showOptionValuesName = self::SHOW_OPTION_VALUES_NAME_SHOW_NAME

Methods

__construct()

Constructor method for MiniBasketContent class.

public __construct(array<string|int, mixed> $arguments) : mixed
Parameters
$arguments : array<string|int, mixed>
Tags
see
MiniBasketContent
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>
Return values
array<string|int, mixed>

Search results