OrderRmas
in package
This is the OrderRmas class, a macro class for the userViewHelper.
The purpose of this class is to encapsulate the logic to make a product return.
Tags
Table of Contents
ACTION_RMA | = 'rma' | |
---|---|---|
ACTION_RMA_PDF | = 'rmaPdf' | |
POPUP | = 'popup' | |
WINDOW | = 'window' | |
$documentView | : string | |
$orderId | : int | |
$rmas | : array<string|int, mixed> | |
$showRmasActions | : array<string|int, mixed> | |
$showRmasIcons | : array<string|int, mixed> | |
$userId | : int | |
__construct() | Constructor method for OrderRmas. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for UserViewHelper.php | : array<string|int, mixed> |
Constants
ACTION_RMA
public
mixed
ACTION_RMA
= 'rma'
ACTION_RMA_PDF
public
mixed
ACTION_RMA_PDF
= 'rmaPdf'
POPUP
public
mixed
POPUP
= 'popup'
WINDOW
public
mixed
WINDOW
= 'window'
Properties
$documentView
public
string
$documentView
= self::POPUP
$orderId
public
int
$orderId
= 0
$rmas
public
array<string|int, mixed>
$rmas
= []
$showRmasActions
public
array<string|int, mixed>
$showRmasActions
= []
$showRmasIcons
public
array<string|int, mixed>
$showRmasIcons
= []
$userId
public
int
$userId
= 0
Methods
__construct()
Constructor method for OrderRmas.
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 UserViewHelper.php
public
getViewParameters() : array<string|int, mixed>