CRM_Dedupe_BAO_QueryBuilder_IndividualGeneral
extends CRM_Dedupe_BAO_QueryBuilder
in package
TODO: How to handle NULL values/records? Class CRM_Dedupe_BAO_QueryBuilder_IndividualGeneral
Table of Contents
Methods
- internal() : array<string|int, mixed>
- internalFilters() : string
- record() : array<string|int, mixed>
- filterQueryByContactList() : string
- If a contact list is specified then adjust the query to ensure one contact is in that list.
Methods
internal()
public
static internal(mixed $rg) : array<string|int, mixed>
Parameters
- $rg : mixed
Return values
array<string|int, mixed>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
stringrecord()
public
static record(mixed $rg) : array<string|int, mixed>
Parameters
- $rg : mixed
Return values
array<string|int, mixed>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'