Footer
in package
This is the Footer 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 footer.
Tags
Table of Contents
__construct() | Constructor method for Footer class. | : mixed |
---|---|---|
getRows() | This method gets all the basket corresponding footer rows structure information. | : array<string|int, mixed> |
Methods
__construct()
Constructor method for Footer class.
public
__construct(BasketContent $basketOutput, Language $languageSheet) : mixed
Parameters
- $basketOutput : BasketContent
- $languageSheet : Language
Tags
Return values
mixed —getRows()
This method gets all the basket corresponding footer rows structure information.
public
getRows() : array<string|int, mixed>
Each row of the returned array contains these keys of information:
- self::CLASS_NAME: class name to be applied to the row.
- self::CELLS: array of the row's cells, where each cell contains these keys of information:
- value
- colspan
- className