/**
  * 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), 'dedupe_rule_group_id' => array('name' => 'dedupe_rule_group_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Dedupe_DAO_RuleGroup'), 'rule_table' => array('name' => 'rule_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Rule Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'rule_field' => array('name' => 'rule_field', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Rule Field'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'rule_length' => array('name' => 'rule_length', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Rule Length')), 'rule_weight' => array('name' => 'rule_weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Rule Weight'), 'required' => true));
     }
     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, 'title' => ts('Dedupe Rule ID'), 'description' => 'Unique dedupe rule id', 'required' => true), 'dedupe_rule_group_id' => array('name' => 'dedupe_rule_group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Dedupe Rule Group'), 'description' => 'The id of the rule group this rule belongs to', 'required' => true, 'FKClassName' => 'CRM_Dedupe_DAO_RuleGroup'), 'rule_table' => array('name' => 'rule_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Rule Table'), 'description' => 'The name of the table this rule is about', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'rule_field' => array('name' => 'rule_field', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Rule Field'), 'description' => 'The name of the field of the table referenced in rule_table', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'rule_length' => array('name' => 'rule_length', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Rule Length'), 'description' => 'The length of the matching substring', 'html' => array('type' => 'Text')), 'rule_weight' => array('name' => 'rule_weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'The weight of the rule', 'required' => true, 'html' => array('type' => 'Text')));
     }
     return self::$_fields;
 }