Merge pull request #23961 from totten/master-mgdphp-caseacttype
[civicrm-core.git] / CRM / Core / DAO / OptionGroup.php
index 59dfd5c4e0eb9109f467808b606ec5af26b14dba..5c25768fd76b1045261fc82f77c164825763cc9d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OptionGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6be4b908c7861e9026d1f2d78c42a0ac)
+ * (GenCodeChecksum:c9bc7ac897d9d7ef0bc421f6e58bdf27)
  */
 
 /**
@@ -33,7 +33,9 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
   /**
    * Option Group ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $id;
 
@@ -41,51 +43,74 @@ class CRM_Core_DAO_OptionGroup extends CRM_Core_DAO {
    * Option group name. Used as selection key by class properties which lookup options in civicrm_option_value.
    *
    * @var string
+   *   (SQL type: varchar(64))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $name;
 
   /**
    * Option Group title.
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $title;
 
   /**
    * Option group description.
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $description;
 
   /**
-   * Option group description.
+   * Type of data stored by this option group.
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(128))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $data_type;
 
   /**
    * Is this a predefined system option group (i.e. it can not be deleted)?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_reserved;
 
   /**
    * Is this option group active?
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_active;
 
   /**
    * A lock to remove the ability to add new options via the UI.
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   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.
    */
@@ -175,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',
@@ -231,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']);
     }