*/
var $contactIds = array();
+ /**
+ * Set the contact IDs to restrict the dedupe to.
+ *
+ * @param array $contactIds
+ */
+ public function setContactIds($contactIds) {
+ $this->contactIds = $contactIds;
+ }
+
/**
* Params to dedupe against (queries against the whole contact set otherwise)
*/
if ($this->is_reserved &&
CRM_Utils_File::isIncludable("CRM/Dedupe/BAO/QueryBuilder/{$this->name}.php")
) {
- include_once "CRM/Dedupe/BAO/QueryBuilder/{$this->name}.php";
- $class = "CRM_Dedupe_BAO_QueryBuilder_{$this->name}";
$command = empty($this->params) ? 'internal' : 'record';
- $queries = call_user_func(array($class, $command), $this);
+ $queries = call_user_func(array("CRM_Dedupe_BAO_QueryBuilder_{$this->name}", $command), $this);
}
else {
// All other rule groups have queries generated by the member dedupe
// if there are no rules in this rule group
// add an empty query fulfilling the pattern
if (!$queries) {
- $queries = array('SELECT 0 id1, 0 id2, 0 weight LIMIT 0');
$this->noRules = TRUE;
+ return array();
}
return $queries;