* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillActivityIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveActivityIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillActivityIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
);
$this->fillCustomInfo($tables, "( 'Activity' )");
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;;
}
public function moveActivityIDs($fromTable, $toTable, $limit) {
* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillCaseIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveCaseIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillCaseIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
'sql' => $contactSQL,
);
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;
}
public function moveCaseIDs($fromTable, $toTable, $limit) {
* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillContactIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveContactIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillContactIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
"( 'Contact', 'Individual', 'Organization', 'Household' )"
);
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;
}
public function moveContactIDs($fromTable, $toTable, $limit) {
* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillContributionIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveContributionIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* get contribution ids in entity tables.
*
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillContributionIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
// get the custom data info
$this->fillCustomInfo($tables, "( 'Contribution' )");
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;
}
public function moveContributionIDs($fromTable, $toTable, $limit) {
* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillMembershipIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveMembershipIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* get membership ids in entity tables.
*
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillMembershipIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
// get the custom data info
$this->fillCustomInfo($tables, "( 'Membership' )");
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;
}
public function moveMembershipIDs($fromTable, $toTable, $limit) {
* {@inheritdoc}
*/
public function fillTempTable($queryText, $entityIDTableName, $toTable, $queryLimit, $detailLimit) {
- $count = $this->fillParticipantIDs($queryText, $entityIDTableName, $queryLimit);
+ $queries = $this->prepareQueries($queryText, $entityIDTableName);
+ $result = $this->runQueries($queryText, $queries, $entityIDTableName, $queryLimit);
$this->moveParticipantIDs($entityIDTableName, $toTable, $detailLimit);
- return $count;
+ return $result;
}
/**
* get participant ids in entity tables.
*
* @param string $queryText
- * @return int the total number of matches
+ * @param string $entityIDTableName
+ * @return array list tables/queries (for runQueries)
*/
- function fillParticipantIDs($queryText, $entityIDTableName, $limit) {
+ function prepareQueries($queryText, $entityIDTableName) {
// Note: For available full-text indices, see CRM_Core_InnoDBIndexer
$contactSQL = array();
// get the custom data info
$this->fillCustomInfo($tables, "( 'Participant' )");
- return $this->runQueries($queryText, $tables, $entityIDTableName, $limit);
+ return $tables;
}
public function moveParticipantIDs($fromTable, $toTable, $limit) {