Buttons
in package
This is the Buttons class, a macro class for the order viewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the order's buttons.
Tags
Table of Contents
$classList | : string | |
---|---|---|
$orderId | : int | |
$showBackButton | : bool | |
$showPrintButton | : bool | |
$token | : string | |
__construct() | Constructor method for Buttons class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for OrderViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Properties
$classList
public
string
$classList
= ''
$orderId
public
int
$orderId
= 0
$showBackButton
public
bool
$showBackButton
= true
$showPrintButton
public
bool
$showPrintButton
= true
$token
public
string
$token
= ''
Methods
__construct()
Constructor method for Buttons 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 OrderViewHelper.php
public
getViewParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>