Documentation

CRM_Contact_BAO_Contact_Location
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Methods

getEmailDetails()  : array<string|int, mixed>
Get the display name, primary email, location type and location id of a contact.
getMapInfo()  : null|string
Get the information to map a contact.

Methods

getEmailDetails()

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

public static getEmailDetails(int $id[, bool $isPrimary = TRUE ][, int $locationTypeID = NULL ]) : array<string|int, mixed>
Parameters
$id : int

Id of the contact.

$isPrimary : bool = TRUE
$locationTypeID : int = NULL
Return values
array<string|int, mixed>

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

getMapInfo()

Get the information to map a contact.

public static & getMapInfo(array<string|int, mixed> $ids[, int $locationTypeID = NULL ][, bool $imageUrlOnly = FALSE ]) : null|string
Parameters
$ids : array<string|int, mixed>

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

$locationTypeID : int = NULL
$imageUrlOnly : bool = FALSE
Return values
null|string

display name of the contact if found


        
On this page

Search results