/**
* Settings
*/
- const MAX_ERRORS = 250, MAX_WARNINGS = 25, DEFAULT_TIMEOUT = 30;
+ const MAX_WARNINGS = 25, DEFAULT_TIMEOUT = 30;
/**
* Return codes
*/
protected $_maxLinesToProcess;
- /**
- * Maximum number of invalid rows to store
- */
- protected $_maxErrorCount;
-
/**
* Array of error lines, bounded by MAX_ERROR
*/
*/
public function __construct() {
$this->_maxLinesToProcess = 0;
- $this->_maxErrorCount = self::MAX_ERRORS;
}
/**
return $fileName;
}
+ /**
+ * Check if contact is a duplicate .
+ *
+ * @param array $formatValues
+ *
+ * @return array
+ */
+ protected function checkContactDuplicate(&$formatValues) {
+ //retrieve contact id using contact dedupe rule
+ $formatValues['contact_type'] = $this->_contactType;
+ $formatValues['version'] = 3;
+ require_once 'CRM/Utils/DeprecatedUtils.php';
+ $error = _civicrm_api3_deprecated_check_contact_dedupe($formatValues);
+ return $error;
+ }
+
}