CRM_Utils_Address
class CRM_Utils_Address
Address Utilities
Methods
static string
format(array $fields, string $format = NULL, bool $microformat = FALSE, bool $mailing = FALSE, null $tokenFields = NULL)
Format an address string from address fields and a format string.
static array
sequence($format)
No description
static string
getFormattedBillingAddressFieldsFromParameters(array $params, int $billingLocationTypeID)
Extract the billing fields from the form submission and format them for display.
Details
at line 59
static string
format(array $fields, string $format = NULL, bool $microformat = FALSE, bool $mailing = FALSE, null $tokenFields = NULL)
Format an address string from address fields and a format string.
Format an address basing on the address fields provided. Use Setting's address_format if there's no format specified.
This function is also used to generate a contact's display_name and sort_name.
at line 288
static array
sequence($format)
at line 328
static string
getFormattedBillingAddressFieldsFromParameters(array $params, int $billingLocationTypeID)
Extract the billing fields from the form submission and format them for display.