Buttons

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

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 = ''

$showBackButton

public bool $showBackButton = true

$showPrintButton

public bool $showPrintButton = true

Methods

__construct()

Constructor method for Buttons class.

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

Search results