class CRM_Contact_Page_AJAX

This class contains all contact related functions that are called using AJAX (jQuery)

Constants

CHECK_USERNAME_TTL

When a user chooses a username, CHECK_USERNAME_TTL is the time window in which they can check usernames (without reloading the overall form).

AUTOCOMPLETE_TTL

Methods

static 
contactReference()

Ajax callback for custom fields of type ContactReference

static 
getPCPList()

Fetch PCP ID by PCP Supporter sort_name, also displays PCP title and associated Contribution Page title

static 
relationship()

No description

static 
customField()

Fetch the custom field help.

static 
groupTree()

No description

static 
deleteCustomValue()

Delete custom value.

static 
checkUserName()

check the CMS username.

static 
getContactEmail()

Function to get email address of a contact.

static 
getContactPhone()

No description

static 
buildSubTypes()

No description

static 
buildDedupeRules()

No description

static 
dashboard()

Function used for CiviCRM dashboard operations.

static 
getSignature()

Retrieve signature based on email id.

static 
processDupes()

Process dupes.

static 
getDedupes()

Retrieve list of duplicate pairs from cache table.

static array
getSearchOptionsFromRequest()

Get the searchable options from the request.

static bool
isOrQuery()

Is the query an OR query.

pdfFormat()

Retrieve a PDF Page Format for the PDF Letter form.

static 
paperSize()

Retrieve Paper Size dimensions.

static 
flipDupePairs(int $prevNextId = NULL)

Swap contacts in a dupe pair i.e main with duplicate contact.

static 
selectUnselectContacts()

Used to store selected contacts across multiple pages in advanced search.

static string
_convertToId(string $name)

No description

static 
getAddressDisplay()

No description

static 
toggleDedupeSelect()

Mark dupe pairs as selected from un-selected state or vice-versa, in dupe cache table.

static 
getContactRelationships()

Retrieve contact relationships.

Details

at line 53
static contactReference()

Ajax callback for custom fields of type ContactReference

Todo: Migrate contact reference fields to use EntityRef

at line 162
static getPCPList()

Fetch PCP ID by PCP Supporter sort_name, also displays PCP title and associated Contribution Page title

at line 226
static relationship()

at line 274
static customField()

Fetch the custom field help.

at line 284
static groupTree()

at line 294
static deleteCustomValue()

Delete custom value.

at line 311
static checkUserName()

check the CMS username.

at line 350
static getContactEmail()

Function to get email address of a contact.

at line 461
static getContactPhone()

at line 531
static buildSubTypes()

at line 553
static buildDedupeRules()

at line 578
static dashboard()

Function used for CiviCRM dashboard operations.

at line 595
static getSignature()

Retrieve signature based on email id.

at line 614
static processDupes()

Process dupes.

at line 646
static getDedupes()

Retrieve list of duplicate pairs from cache table.

at line 845
static array getSearchOptionsFromRequest()

Get the searchable options from the request.

Return Value

array

at line 891
static bool isOrQuery()

Is the query an OR query.

If a generic search value is passed in - ie. $_REQUEST['search']['value'] = 'abc' then all fields are searched for this.

It is unclear if there is any code that still passes this in or whether is is just legacy. It could cause a server-killing query on a large site so it probably is NOT in use if we haven't had complaints.

Return Value

bool

at line 899
pdfFormat()

Retrieve a PDF Page Format for the PDF Letter form.

at line 910
static paperSize()

Retrieve Paper Size dimensions.

at line 923
static flipDupePairs(int $prevNextId = NULL)

Swap contacts in a dupe pair i.e main with duplicate contact.

Parameters

int $prevNextId

at line 941
static selectUnselectContacts()

Used to store selected contacts across multiple pages in advanced search.

at line 982
static string _convertToId(string $name)

Parameters

string $name

Return Value

string

at line 989
static getAddressDisplay()

at line 1008
static toggleDedupeSelect()

Mark dupe pairs as selected from un-selected state or vice-versa, in dupe cache table.

at line 1043
static getContactRelationships()

Retrieve contact relationships.