CRM_Dedupe_Finder
class CRM_Dedupe_Finder
The CiviCRM duplicate discovery engine is based on an algorithm designed by David Strauss david@fourkitchens.com.
Methods
Return a contact_id-keyed array of arrays of possible dupes (of the key contact_id) - limited to dupes of $cids if provided.
Return an array of possible dupes, based on the provided array of params, using the default rule group for the given contact type and usage.
Return a contact_id-keyed array of arrays of possible dupes in the given group.
A hackish function needed to massage CRM_Contact_Form_$ctype::formRule() object into a valid $params array for dedupe
Parse duplicate pairs into a standardised array and store in the prev_next_cache.
Details
at line 59
static array
dupes(int $rgid, array $cids = [], bool $checkPermissions = TRUE)
Return a contact_id-keyed array of arrays of possible dupes (of the key contact_id) - limited to dupes of $cids if provided.
at line 104
static array
dupesByParams(array $params, string $ctype, string $used = 'Unsupervised', array $except = [], int $ruleGroupID = NULL)
Return an array of possible dupes, based on the provided array of params, using the default rule group for the given contact type and usage.
check_permission is a boolean flag to indicate if permission should be considered. default is to always check permissioning but public pages for example might not want permission to be checked for anonymous users. Refer CRM-6211. We might be breaking Multi-Site dedupe for public pages.
at line 173
static array
dupesInGroup(int $rgid, int $gid, int $searchLimit = 0)
Return a contact_id-keyed array of arrays of possible dupes in the given group.
at line 194
static array
formatParams(array $fields, string $ctype)
A hackish function needed to massage CRM_Contact_Form_$ctype::formRule() object into a valid $params array for dedupe
at line 333
static array
parseAndStoreDupePairs(array $foundDupes, string $cacheKeyString)
Parse duplicate pairs into a standardised array and store in the prev_next_cache.