*
* Generated from xml/schema/CRM/Core/OptionGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:904ff47234843ffba9dd98b11c1d0df1)
+ * (GenCodeChecksum:c9bc7ac897d9d7ef0bc421f6e58bdf27)
*/
/**
public $description;
/**
- * Option group description.
+ * Type of data stored by this option group.
*
* @var string|null
* (SQL type: varchar(128))
*/
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.
*/
'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',
'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']);
}