class AddressFormat

Class AddressFormat

Methods

static  $this
getInstance()

No description

string
format( AddressInterface $address, null $locale = null, bool $html = true, string $htmlTag = 'p', array $htmlAttributes = array())

Format an address

string
formatTheliaAddress( OrderAddress|OrderAddress $address, null $locale = null, bool $html = true, string $htmlTag = 'p', array $htmlAttributes = array())

Format a Thelia address (Address or OrderAddress)

string
postalLabelFormat( AddressInterface $address, null $locale = null, null $originCountry = null, array $options = array())

Format an address to a postal label

string
postalLabelFormatTheliaAddress( OrderAddress|OrderAddress $address, null $locale = null, null $originCountry = null, array $options = array())

Format a Thelia address (Address or OrderAddress) to a postal label

Details

at line 44
static $this getInstance()

Return Value

$this

at line 64
string format( AddressInterface $address, null $locale = null, bool $html = true, string $htmlTag = 'p', array $htmlAttributes = array())

Format an address

Parameters

AddressInterface $address
null $locale
bool $html
string $htmlTag
array $htmlAttributes

Return Value

string

at line 104
string formatTheliaAddress( OrderAddress|OrderAddress $address, null $locale = null, bool $html = true, string $htmlTag = 'p', array $htmlAttributes = array())

Format a Thelia address (Address or OrderAddress)

Parameters

OrderAddress|OrderAddress $address
null $locale
bool $html
string $htmlTag
array $htmlAttributes

Return Value

string

at line 119
string postalLabelFormat( AddressInterface $address, null $locale = null, null $originCountry = null, array $options = array())

Format an address to a postal label

Parameters

AddressInterface $address
null $locale
null $originCountry
array $options

Return Value

string

at line 159
string postalLabelFormatTheliaAddress( OrderAddress|OrderAddress $address, null $locale = null, null $originCountry = null, array $options = array())

Format a Thelia address (Address or OrderAddress) to a postal label

Parameters

OrderAddress|OrderAddress $address
null $locale
null $originCountry
array $options

Return Value

string