UserForm
in package
This is the UserForm 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 form.
Tags
Table of Contents
$billingAddresses | : ElementCollection|null | |
---|---|---|
$forceUseShippingAddress | : bool | |
$form | : Form|null | |
$routeType | : string | |
$selectedCountry | : CountrySettings|null | |
$selectedCountryLocations | : array<string|int, mixed> | |
$selectMode | : string | |
$shippingAddresses | : ElementCollection|null | |
$showCreateAccountCheck | : bool | |
$showCustomTagsTitle | : bool | |
$showShippingAddress | : bool | |
__construct() | Constructor method for UserForm. | : 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
$billingAddresses
public
ElementCollection|null
$billingAddresses
= null
$forceUseShippingAddress
public
bool
$forceUseShippingAddress
= false
$form
public
Form|null
$form
= null
$routeType
public
string
$routeType
= ''
$selectedCountry
public
CountrySettings|null
$selectedCountry
= null
$selectedCountryLocations
public
array<string|int, mixed>
$selectedCountryLocations
= []
$selectMode
public
string
$selectMode
= \FWK\ViewHelpers\User\Macro\AddressBook::SELECT_MODE_BUTTON
$shippingAddresses
public
ElementCollection|null
$shippingAddresses
= null
$showCreateAccountCheck
public
bool
$showCreateAccountCheck
= true
$showCustomTagsTitle
public
bool
$showCustomTagsTitle
= false
$showShippingAddress
public
bool
$showShippingAddress
= false
Methods
__construct()
Constructor method for UserForm.
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>