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