Merge pull request #23961 from totten/master-mgdphp-caseacttype
[civicrm-core.git] / CRM / Core / DAO / OptionGroup.php
index 77f9c5eed8cab32558909223b6acd1c40b2992ef..5c25768fd76b1045261fc82f77c164825763cc9d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:904ff47234843ffba9dd98b11c1d0df1)
+ * (GenCodeChecksum:c9bc7ac897d9d7ef0bc421f6e58bdf27)
  */
 
 /**
@@ -67,7 +67,7 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
   public $description;
 
   /**
-   * Option group description.
+   * Type of data stored by this option group.
    *
    * @var string|null
    *   (SQL type: varchar(128))
@@ -102,6 +102,15 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
    */
   public $is_locked;
 
+  /**
+   * Which optional columns from the option_value table are in use by this group.
+   *
+   * @var string|null
+   *   (SQL type: varchar(128))
+   *   Note that values will be retrieved from the database as a string.
+   */
+  public $option_value_fields;
+
   /**
    * Class constructor.
    */
@@ -191,8 +200,8 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
         'data_type' => [
           'name' => 'data_type',
           'type' => CRM_Utils_Type::T_STRING,
-          'title' => ts('Data Type for this option group'),
-          'description' => ts('Option group description.'),
+          'title' => ts('Data Type'),
+          'description' => ts('Type of data stored by this option group.'),
           'maxlength' => 128,
           'size' => CRM_Utils_Type::HUGE,
           'where' => 'civicrm_option_group.data_type',
@@ -247,6 +256,25 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
           'localizable' => 0,
           'add' => '4.5',
         ],
+        'option_value_fields' => [
+          'name' => 'option_value_fields',
+          'type' => CRM_Utils_Type::T_STRING,
+          'title' => ts('Option Value Fields'),
+          'description' => ts('Which optional columns from the option_value table are in use by this group.'),
+          'maxlength' => 128,
+          'size' => CRM_Utils_Type::HUGE,
+          'where' => 'civicrm_option_group.option_value_fields',
+          'default' => 'name,label,description',
+          'table_name' => 'civicrm_option_group',
+          'entity' => 'OptionGroup',
+          'bao' => 'CRM_Core_BAO_OptionGroup',
+          'localizable' => 0,
+          'serialize' => self::SERIALIZE_COMMA,
+          'pseudoconstant' => [
+            'callback' => 'CRM_Core_SelectValues::optionValueFields',
+          ],
+          'add' => '5.49',
+        ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }