class CRM_Dedupe_BAO_QueryBuilder_IndividualUnsupervised extends CRM_Dedupe_BAO_QueryBuilder

Class CRM_Dedupe_BAO_QueryBuilder_IndividualUnsupervised

Methods

static string
internalFilters($rg, string $strID1 = 'contact1.id', string $strID2 = 'contact2.id')

No description

static string
filterQueryByContactList(array $contactList, string $query, string $strID1 = 'contact1.id', string $strID2 = 'contact2.id')

If a contact list is specified then adjust the query to ensure one contact is in that list.

static array
record($rg)

No description

static array
internal($rg)

No description

static array
internalOptimized(string $rg)

An alternative version which might perform a lot better than the above. Will need to do some testing

Details

static string internalFilters($rg, string $strID1 = 'contact1.id', string $strID2 = 'contact2.id')

Parameters

$rg
string $strID1
string $strID2

Return Value

string

static protected string filterQueryByContactList(array $contactList, string $query, string $strID1 = 'contact1.id', string $strID2 = 'contact2.id')

If a contact list is specified then adjust the query to ensure one contact is in that list.

Doing an OR join here will lead to a server-killing unindexed query. However, a union will perform better.

Parameters

array $contactList
string $query
string $strID1
string $strID2

Return Value

string

at line 38
static array record($rg)

Parameters

$rg

Return Value

array

at line 60
static array internal($rg)

Parameters

$rg

Return Value

array

at line 82
static array internalOptimized(string $rg)

An alternative version which might perform a lot better than the above. Will need to do some testing

Parameters

string $rg

Return Value

array