/**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'contact_type' => array('name' => 'contact_type', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Contact Type'), 'enumValues' => 'Individual, Organization, Household'), 'threshold' => array('name' => 'threshold', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Threshold'), 'required' => true), 'level' => array('name' => 'level', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Level'), 'enumValues' => 'Strict, Fuzzy'), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
Exemple #2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'Unique dedupe rule group id', 'required' => true), 'contact_type' => array('name' => 'contact_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contact Type'), 'description' => 'The type of contacts this group applies to', 'maxlength' => 12, 'size' => CRM_Utils_Type::TWELVE, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_contact_type', 'keyColumn' => 'name', 'labelColumn' => 'label', 'condition' => 'parent_id IS NULL')), 'threshold' => array('name' => 'threshold', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Threshold'), 'description' => 'The weight threshold the sum of the rule weights has to cross to consider two contacts the same', 'required' => true), 'used' => array('name' => 'used', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Used'), 'description' => 'Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)', 'required' => true, 'maxlength' => 12, 'size' => CRM_Utils_Type::TWELVE, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::getDedupeRuleTypes')), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Name of the rule group', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'description' => 'Label of the rule group', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'description' => 'Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin'));
     }
     return self::$_fields;
 }