<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*
*/
class CRM_Contact_Form_DedupeRules extends CRM_Admin_Form {
- CONST RULES_COUNT = 5;
+ const RULES_COUNT = 5;
protected $_contactType;
protected $_defaults = array();
protected $_fields = array();
protected $_rgid;
/**
- * Function to pre processing
+ * Pre processing
*
* @return void
* @access public
}
/**
- * Function to build the form
+ * Build the form object
*
* @return void
* @access public
}
/**
- * global validation rules for the form
+ * Global validation rules for the form
*
* @param array $fields posted values of the form
*
+ * @param $files
+ * @param $self
+ *
* @return array list of errors to be posted back to the form
* @static
* @access public
return empty($errors) ? TRUE : $errors;
}
+ /**
+ * Set default values for the form. MobileProvider that in edit/view mode
+ * the default values are retrieved from the database
+ *
+ * @access public
+ *
+ * @return array
+ */
+ /**
+ * @return array
+ */
function setDefaultValues() {
return $this->_defaults;
}
/**
- * Function to process the form
+ * Process the form submission
*
* @access public
*
AND used = %2";
$queryParams = array(
1 => array($this->_contactType, 'String'),
- 2 => array($this->_options[$used], 'String'),
+ 2 => array($values['used'], 'String'),
);
CRM_Core_DAO::executeQuery($query, $queryParams);