class CRM_Contact_BAO_Contact_Location

Methods

static array
getEmailDetails(int $id, bool $isPrimary = TRUE, int $locationTypeID = NULL)

Get the display name, primary email, location type and location id of a contact.

static array
getPhoneDetails(int $id, null $type = NULL)

Get the sms number and display name of a contact.

static null|string
getMapInfo(array $ids, int $locationTypeID = NULL, bool $imageUrlOnly = FALSE)

Get the information to map a contact.

Details

at line 47
static array getEmailDetails(int $id, bool $isPrimary = TRUE, int $locationTypeID = NULL)

Get the display name, primary email, location type and location id of a contact.

Parameters

int $id Id of the contact.
bool $isPrimary
int $locationTypeID

Return Value

array Array of display_name, email, location type and location id if found, or (null,null,null, null)

at line 86
static array getPhoneDetails(int $id, null $type = NULL)

Get the sms number and display name of a contact.

Parameters

int $id Id of the contact.
null $type

Return Value

array tuple of display_name and sms if found, or (null,null)

at line 125
static null|string getMapInfo(array $ids, int $locationTypeID = NULL, bool $imageUrlOnly = FALSE)

Get the information to map a contact.

Parameters

array $ids The list of ids for which we want map info. $param int $locationTypeID
int $locationTypeID
bool $imageUrlOnly

Return Value

null|string display name of the contact if found