Rmas
in package
This is the Rmas class, a macro class for the userViewHelper.
The purpose of this class is to encapsulate the logic that calculates the view parameters for the user's rmas.
Tags
Table of Contents
ACTION_RMA | = 'rma' | |
---|---|---|
ACTION_RMA_CORRECTIVE_INVOICE | = 'rmaCorrectiveInvoice' | |
ACTION_RMA_CORRECTIVE_INVOICE_PDF | = 'rmaCorrectiveInvoicePdf' | |
ACTION_RMA_PDF | = 'rmaPdf' | |
ACTION_RMA_RETURNS | = 'rmaReturns' | |
ACTION_RMA_RETURNS_PDF | = 'rmaReturnsPdf' | |
POPUP | = 'popup' | |
WINDOW | = 'window' | |
$documentView | : string | |
$rmas | : ElementCollection|null | |
$showRmasActions | : array<string|int, mixed> | |
$showRmasIcons | : array<string|int, mixed> | |
$showRmasStates | : array<string|int, mixed> | |
$userId | : int | |
__construct() | Constructor method for Rmas. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for UserViewHelper.php | : array<string|int, mixed> |
getProperties() | Return macro use properties | : array<string|int, mixed> |
Constants
ACTION_RMA
public
mixed
ACTION_RMA
= 'rma'
ACTION_RMA_CORRECTIVE_INVOICE
public
mixed
ACTION_RMA_CORRECTIVE_INVOICE
= 'rmaCorrectiveInvoice'
ACTION_RMA_CORRECTIVE_INVOICE_PDF
public
mixed
ACTION_RMA_CORRECTIVE_INVOICE_PDF
= 'rmaCorrectiveInvoicePdf'
ACTION_RMA_PDF
public
mixed
ACTION_RMA_PDF
= 'rmaPdf'
ACTION_RMA_RETURNS
public
mixed
ACTION_RMA_RETURNS
= 'rmaReturns'
ACTION_RMA_RETURNS_PDF
public
mixed
ACTION_RMA_RETURNS_PDF
= 'rmaReturnsPdf'
POPUP
public
mixed
POPUP
= 'popup'
WINDOW
public
mixed
WINDOW
= 'window'
Properties
$documentView
public
string
$documentView
= self::POPUP
$rmas
public
ElementCollection|null
$rmas
= null
$showRmasActions
public
array<string|int, mixed>
$showRmasActions
= []
$showRmasIcons
public
array<string|int, mixed>
$showRmasIcons
= []
$showRmasStates
public
array<string|int, mixed>
$showRmasStates
= []
$userId
public
int
$userId
= 0
Methods
__construct()
Constructor method for Rmas.
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>
Return values
array<string|int, mixed> —getProperties()
Return macro use properties
protected
getProperties() : array<string|int, mixed>