RedeemRewardPoints
in package
This is the RedeemRewardPoints 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 reward points.
Tags
Table of Contents
$rewardPoints | : ElementCollection|null | |
---|---|---|
$showDistribution | : bool | |
$showPending | : bool | |
__construct() | Constructor method for RewardPoints. | : 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> |
Properties
$rewardPoints
public
ElementCollection|null
$rewardPoints
= null
$showDistribution
public
bool
$showDistribution
= true
$showPending
public
bool
$showPending
= true
Methods
__construct()
Constructor method for RewardPoints.
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>