X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FDedupe%2FDAO%2FRuleGroup.php;h=578d402e7f160335d8bb58336f1838b3328f6f73;hb=a0741dc66a56012dca28350f8c1ddaad5ec03918;hp=0854b68828d2dd9878bfc3cb5e8c1d25e51eefc4;hpb=00e18848bae4a42a67f0bf07002760ab35f9dd40;p=civicrm-core.git diff --git a/CRM/Dedupe/DAO/RuleGroup.php b/CRM/Dedupe/DAO/RuleGroup.php index 0854b68828..bb54789c0b 100644 --- a/CRM/Dedupe/DAO/RuleGroup.php +++ b/CRM/Dedupe/DAO/RuleGroup.php @@ -2,11 +2,11 @@ /** * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 * * Generated from xml/schema/CRM/Dedupe/RuleGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0f103fb52cf7d96d601d83e8417f77ad) + * (GenCodeChecksum:a0c7d9e893a3aec240db9ec4b0e8729d) */ /** @@ -19,19 +19,19 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_dedupe_rule_group'; + public static $_tableName = 'civicrm_dedupe_rule_group'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = FALSE; + public static $_log = FALSE; /** * Unique dedupe rule group id * - * @var int unsigned + * @var int */ public $id; @@ -73,7 +73,7 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { /** * Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin * - * @var boolean + * @var bool */ public $is_reserved; @@ -97,8 +97,9 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Rule Group ID'), - 'description' => 'Unique dedupe rule group id', + 'description' => ts('Unique dedupe rule group id'), 'required' => TRUE, + 'where' => 'civicrm_dedupe_rule_group.id', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -108,9 +109,10 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'name' => 'contact_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contact Type'), - 'description' => 'The type of contacts this group applies to', + 'description' => ts('The type of contacts this group applies to'), 'maxlength' => 12, 'size' => CRM_Utils_Type::TWELVE, + 'where' => 'civicrm_dedupe_rule_group.contact_type', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -123,14 +125,15 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'keyColumn' => 'name', 'labelColumn' => 'label', 'condition' => 'parent_id IS NULL', - ] + ], ], 'threshold' => [ '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', + 'description' => ts('The weight threshold the sum of the rule weights has to cross to consider two contacts the same'), 'required' => TRUE, + 'where' => 'civicrm_dedupe_rule_group.threshold', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -143,10 +146,11 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'name' => 'used', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Length'), - 'description' => 'Whether the rule should be used for cases where usage is Unsupervised, Supervised OR General(programatically)', + 'description' => ts('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, + 'where' => 'civicrm_dedupe_rule_group.used', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -156,15 +160,16 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { ], 'pseudoconstant' => [ 'callback' => 'CRM_Core_SelectValues::getDedupeRuleTypes', - ] + ], ], 'name' => [ 'name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), - 'description' => 'Name of the rule group', + 'description' => ts('Name of the rule group'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, + 'where' => 'civicrm_dedupe_rule_group.name', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -174,9 +179,10 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), - 'description' => 'Label of the rule group', + 'description' => ts('Label of the rule group'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_dedupe_rule_group.title', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup', @@ -189,7 +195,8 @@ class CRM_Dedupe_DAO_RuleGroup extends CRM_Core_DAO { 'name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Reserved?'), - 'description' => 'Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin', + 'description' => ts('Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin'), + 'where' => 'civicrm_dedupe_rule_group.is_reserved', 'table_name' => 'civicrm_dedupe_rule_group', 'entity' => 'RuleGroup', 'bao' => 'CRM_Dedupe_BAO_RuleGroup',