CRM_Contact_Page_AJAX
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
Ajax callback for custom fields of type ContactReference
Fetch PCP ID by PCP Supporter sort_name, also displays PCP title and associated Contribution Page title
No description
Fetch the custom field help.
No description
Delete custom value.
check the CMS username.
Function to get email address of a contact.
No description
No description
No description
Function used for CiviCRM dashboard operations.
Retrieve signature based on email id.
Process dupes.
Retrieve list of duplicate pairs from cache table.
Get the searchable options from the request.
Is the query an OR query.
Retrieve a PDF Page Format for the PDF Letter form.
Retrieve Paper Size dimensions.
Swap contacts in a dupe pair i.e main with duplicate contact.
Used to store selected contacts across multiple pages in advanced search.
No description
No description
Mark dupe pairs as selected from un-selected state or vice-versa, in dupe cache table.
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.
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.
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.
at line 941
static
selectUnselectContacts()
Used to store selected contacts across multiple pages in advanced search.
at line 982
static string
_convertToId(string $name)
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.