From: Camilo Rodriguez Date: Wed, 9 Aug 2017 14:21:45 +0000 (+0000) Subject: CRM-20858: Add Documentation Block for customRecordExists X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f75197882733ee07495dd718f684e33c8281747;p=civicrm-core.git CRM-20858: Add Documentation Block for customRecordExists --- 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