Documentation

CRM_Dedupe_BAO_QueryBuilder
in package

Class CRM_Dedupe_BAO_QueryBuilder

Table of Contents

Methods

internalFilters()  : string
filterQueryByContactList()  : string
If a contact list is specified then adjust the query to ensure one contact is in that list.

Methods

internalFilters()

public static internalFilters(mixed $rg[, string $strID1 = 'contact1.id' ][, string $strID2 = 'contact2.id' ]) : string
Parameters
$rg : mixed
$strID1 : string = 'contact1.id'
$strID2 : string = 'contact2.id'
Return values
string

filterQueryByContactList()

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

protected static filterQueryByContactList(array<string|int, mixed> $contactList, string $query[, string $strID1 = 'contact1.id' ][, string $strID2 = 'contact2.id' ]) : string

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

Parameters
$contactList : array<string|int, mixed>
$query : string
$strID1 : string = 'contact1.id'
$strID2 : string = 'contact2.id'
Return values
string

        
On this page

Search results