From 4f75197882733ee07495dd718f684e33c8281747 Mon Sep 17 00:00:00 2001 From: Camilo Rodriguez Date: Wed, 9 Aug 2017 14:21:45 +0000 Subject: [PATCH] CRM-20858: Add Documentation Block for customRecordExists --- CRM/Dedupe/Merger.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CRM/Dedupe/Merger.php b/CRM/Dedupe/Merger.php index 9ff1aeae16..f8b1dcf1a8 100755 --- a/CRM/Dedupe/Merger.php +++ b/CRM/Dedupe/Merger.php @@ -555,6 +555,17 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m $transaction->commit(); } + /** + * Given a contact ID, will check if a record exists in given table. + * + * @param $contactID + * @param $table + * @param $idField + * Field where the contact's ID is stored in the table + * + * @return bool + * True if a record is found for the given contact ID, false otherwise + */ private static function customRecordExists($contactID, $table, $idField) { $sql = " SELECT COUNT(*) AS count -- 2.25.1