From 613e5116fb4f4e85daaf923e0f271600d297715b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 9 Jun 2014 20:14:34 -0700 Subject: [PATCH] CRM-14765 - FullText - Consistently use function name "moveIDs" --- CRM/Contact/Form/Search/Custom/FullText/Activity.php | 4 ++-- CRM/Contact/Form/Search/Custom/FullText/Case.php | 4 ++-- CRM/Contact/Form/Search/Custom/FullText/Contact.php | 4 ++-- CRM/Contact/Form/Search/Custom/FullText/Contribution.php | 4 ++-- CRM/Contact/Form/Search/Custom/FullText/Membership.php | 4 ++-- CRM/Contact/Form/Search/Custom/FullText/Participant.php | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CRM/Contact/Form/Search/Custom/FullText/Activity.php b/CRM/Contact/Form/Search/Custom/FullText/Activity.php index 5d38329740..e555180915 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Activity.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Activity.php @@ -48,7 +48,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Activity extends CRM_Contact_Form_ public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveActivityIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -110,7 +110,7 @@ AND (ca.is_deleted = 0 OR ca.is_deleted IS NULL) return $tables;; } - public function moveActivityIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( table_name, activity_id, subject, details, contact_id, sort_name, record_type, diff --git a/CRM/Contact/Form/Search/Custom/FullText/Case.php b/CRM/Contact/Form/Search/Custom/FullText/Case.php index ef2f37009f..a40aeb419c 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Case.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Case.php @@ -49,7 +49,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Case extends CRM_Contact_Form_Sear public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveCaseIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -101,7 +101,7 @@ GROUP BY et.entity_id return $tables; } - public function moveCaseIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( table_name, contact_id, sort_name, case_id, case_start_date, case_end_date, case_is_deleted ) diff --git a/CRM/Contact/Form/Search/Custom/FullText/Contact.php b/CRM/Contact/Form/Search/Custom/FullText/Contact.php index b484ec2052..583cb8b56e 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Contact.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Contact.php @@ -48,7 +48,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Contact extends CRM_Contact_Form_S public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveContactIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -122,7 +122,7 @@ GROUP BY et.entity_id return $tables; } - public function moveContactIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( id, contact_id, sort_name, display_name, table_name ) diff --git a/CRM/Contact/Form/Search/Custom/FullText/Contribution.php b/CRM/Contact/Form/Search/Custom/FullText/Contribution.php index 534f3e3e75..4514f2330b 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Contribution.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Contribution.php @@ -50,7 +50,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Contribution extends CRM_Contact_F public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveContributionIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -99,7 +99,7 @@ WHERE ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n return $tables; } - public function moveContributionIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( table_name, contact_id, sort_name, contribution_id, financial_type, contribution_page, contribution_receive_date, diff --git a/CRM/Contact/Form/Search/Custom/FullText/Membership.php b/CRM/Contact/Form/Search/Custom/FullText/Membership.php index 9be1518ae1..971716eb36 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Membership.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Membership.php @@ -50,7 +50,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Membership extends CRM_Contact_For public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveMembershipIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -84,7 +84,7 @@ WHERE ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n return $tables; } - public function moveMembershipIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( table_name, contact_id, sort_name, membership_id, membership_type, membership_fee, membership_start_date, diff --git a/CRM/Contact/Form/Search/Custom/FullText/Participant.php b/CRM/Contact/Form/Search/Custom/FullText/Participant.php index 79b7f575dc..3721ad9ed7 100644 --- a/CRM/Contact/Form/Search/Custom/FullText/Participant.php +++ b/CRM/Contact/Form/Search/Custom/FullText/Participant.php @@ -50,7 +50,7 @@ class CRM_Contact_Form_Search_Custom_FullText_Participant extends CRM_Contact_Fo public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) { $queries = $this->prepareQueries($queryText, $entityIDTableName); $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit); - $this->moveParticipantIDs($entityIDTableName, $toTable, $detailLimit); + $this->moveIDs($entityIDTableName, $toTable, $detailLimit); return $result; } @@ -96,7 +96,7 @@ WHERE ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n return $tables; } - public function moveParticipantIDs($fromTable, $toTable, $limit) { + public function moveIDs($fromTable, $toTable, $limit) { $sql = " INSERT INTO {$toTable} ( table_name, contact_id, sort_name, participant_id, event_title, participant_fee_level, participant_fee_amount, -- 2.25.1