AddressForm
in package
This is the AddressForm 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 address form.
Tags
Table of Contents
BILLING_PREFIX | = 'billing' | |
---|---|---|
SHIPPING_PREFIX | = 'shipping' | |
$addressBook | : bool | |
$form | : Form|null | |
$prefix | : string | |
$selectedCountry | : CountrySettings|null | |
$selectedCountryLocations | : array<string|int, mixed> | |
__construct() | Constructor method for Form. | : 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
BILLING_PREFIX
public
mixed
BILLING_PREFIX
= 'billing'
SHIPPING_PREFIX
public
mixed
SHIPPING_PREFIX
= 'shipping'
Properties
$addressBook
public
bool
$addressBook
= true
$form
public
Form|null
$form
= null
$prefix
public
string
$prefix
= self::BILLING_PREFIX
$selectedCountry
public
CountrySettings|null
$selectedCountry
= null
$selectedCountryLocations
public
array<string|int, mixed>
$selectedCountryLocations
= []
Methods
__construct()
Constructor method for Form.
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>