ButtonWishlist
in package
This is the ButtonWishlist 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 wishlist button.
Tags
Table of Contents
TYPE_DELETE | This type show open modal button (delete wishlist form modal) | = 'delete' |
---|---|---|
TYPE_SEND | This type show open modal button (send wishlist form modal) | = 'send' |
$class | : string | |
$type | : string | |
__construct() | Constructor method for ButtonWishlist class. | : mixed |
getViewParameters() | This method returns all calculated arguments and new parameters for UserViewHelper.php | : array<string|int, mixed> |
getProperties() | : array<string|int, mixed> |
Constants
TYPE_DELETE
This type show open modal button (delete wishlist form modal)
public
mixed
TYPE_DELETE
= 'delete'
TYPE_SEND
This type show open modal button (send wishlist form modal)
public
mixed
TYPE_SEND
= 'send'
Properties
$class
public
string
$class
= ''
$type
public
string
$type
= ''
Methods
__construct()
Constructor method for ButtonWishlist class.
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()
protected
getProperties() : array<string|int, mixed>