SalesAgentSales
in package
This is the SalesAgentSales class, a macro class for the userViewHelper.
The purpose of this class is to encapsulate the logic to show sales from a sales agent.
Tags
Table of Contents
CLIENT | = 'client' | |
---|---|---|
COMMISSION | = 'commission' | |
DATE | = 'date' | |
PAID | = 'paid' | |
PID | = 'pId' | |
SALES_AGENT_PARAMETERS | = [self::PID, self::CLIENT, self::DATE, self::STATUS, self::TOTAL, self::COMMISSION, self::PAID, self::VIEW_ORDER] | |
STATUS | = 'status' | |
TOTAL | = 'total' | |
VIEW_ORDER | = 'viewOrder' | |
$parameters | : array<string|int, mixed> | |
$salesAgentSales | : ElementCollection|null | |
__construct() | Constructor method for SalesAgentCustomers. | : 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
CLIENT
public
mixed
CLIENT
= 'client'
COMMISSION
public
mixed
COMMISSION
= 'commission'
DATE
public
mixed
DATE
= 'date'
PAID
public
mixed
PAID
= 'paid'
PID
public
mixed
PID
= 'pId'
SALES_AGENT_PARAMETERS
public
mixed
SALES_AGENT_PARAMETERS
= [self::PID, self::CLIENT, self::DATE, self::STATUS, self::TOTAL, self::COMMISSION, self::PAID, self::VIEW_ORDER]
STATUS
public
mixed
STATUS
= 'status'
TOTAL
public
mixed
TOTAL
= 'total'
VIEW_ORDER
public
mixed
VIEW_ORDER
= 'viewOrder'
Properties
$parameters
public
array<string|int, mixed>
$parameters
= []
$salesAgentSales
public
ElementCollection|null
$salesAgentSales
= null
Methods
__construct()
Constructor method for SalesAgentCustomers.
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>