class CRM_Utils_Address

Address Utilities

Methods

static string
format(array $fields, string $format = NULL, bool $microformat = FALSE, bool $mailing = FALSE, bool $individualFormat = 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, bool $individualFormat = 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.

Parameters

array $fields The address fields.
string $format The desired address format.
bool $microformat If true indicates, the address to be built in hcard-microformat standard.
bool $mailing If true indicates, the call has been made from mailing label.
bool $individualFormat If true indicates, the call has been made for the contact of type 'individual'.
null $tokenFields

Return Value

string formatted address string

at line 303
static array sequence($format)

Parameters

$format

Return Value

array

at line 343
static string getFormattedBillingAddressFieldsFromParameters(array $params, int $billingLocationTypeID)

Extract the billing fields from the form submission and format them for display.

Parameters

array $params
int $billingLocationTypeID

Return Value

string