*
* Generated from xml/schema/CRM/Price/PriceField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e8aa16285c520e7ce5288da53397f9df)
+ * (GenCodeChecksum:15774f8e0c7f8ef88b21f86cf8ef43bc)
*/
/**
/**
* Enter a quantity for this field?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Should the price be displayed next to the label for each option?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this price field active
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this price field required (value must be > 1)
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Quantity Required?'),
'description' => ts('Enter a quantity for this field?'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field.is_enter_qty',
'default' => '0',
'table_name' => 'civicrm_price_field',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Show Amounts?'),
'description' => ts('Should the price be displayed next to the label for each option?'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field.is_display_amounts',
'default' => '1',
'table_name' => 'civicrm_price_field',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Is Active?'),
'description' => ts('Is this price field active'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field.is_active',
'default' => '1',
'table_name' => 'civicrm_price_field',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field is Required?'),
'description' => ts('Is this price field required (value must be > 1)'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field.is_required',
'default' => '1',
'table_name' => 'civicrm_price_field',
*
* Generated from xml/schema/CRM/Price/PriceFieldValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3596e8942576c06b6a393c4d16226de9)
+ * (GenCodeChecksum:d39a35fbdcaed47315fdc0ecce662c7f)
*/
/**
/**
* Is this default price field option
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this price field value active
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Default Price Field Option?'),
'description' => ts('Is this default price field option'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field_value.is_default',
'default' => '0',
'table_name' => 'civicrm_price_field_value',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Value is Active'),
'description' => ts('Is this price field value active'),
+ 'required' => TRUE,
'where' => 'civicrm_price_field_value.is_active',
'default' => '1',
'table_name' => 'civicrm_price_field_value',
*
* Generated from xml/schema/CRM/Price/PriceSet.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:128263766d018b5c021df384b3ab6c92)
+ * (GenCodeChecksum:1aec76208959c72965733e217aaf1fc1)
*/
/**
/**
* Is this price set active
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is set if edited on Contribution or Event Page rather than through Manage Price Sets
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this a predefined system price set (i.e. it can not be deleted, edited)?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Set Is Active?'),
'description' => ts('Is this price set active'),
+ 'required' => TRUE,
'where' => 'civicrm_price_set.is_active',
'default' => '1',
'table_name' => 'civicrm_price_set',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Price Set Quick Config?'),
'description' => ts('Is set if edited on Contribution or Event Page rather than through Manage Price Sets'),
+ 'required' => TRUE,
'where' => 'civicrm_price_set.is_quick_config',
'default' => '0',
'table_name' => 'civicrm_price_set',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Set Is Reserved'),
'description' => ts('Is this a predefined system price set (i.e. it can not be deleted, edited)?'),
+ 'required' => TRUE,
'where' => 'civicrm_price_set.is_reserved',
'default' => '0',
'table_name' => 'civicrm_price_set',
--- /dev/null
+<?php
+return [
+ 'civicrm_price_set' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this price set active'",
+ 'is_quick_config' => "DEFAULT 0 COMMENT 'Is set if edited on Contribution or Event Page rather than through Manage Price Sets'",
+ 'is_reserved' => "DEFAULT 0 COMMENT 'Is this a predefined system price set (i.e. it can not be deleted, edited)?'",
+ ],
+ 'civicrm_price_field' => [
+ 'is_enter_qty' => "DEFAULT 0 COMMENT 'Enter a quantity for this field?'",
+ 'is_display_amounts' => "DEFAULT 1 COMMENT 'Should the price be displayed next to the label for each option?'",
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this price field active'",
+ 'is_required' => "DEFAULT 1 COMMENT 'Is this price field required (value must be > 1)'",
+ ],
+ 'civicrm_price_field_value' => [
+ 'is_default' => "DEFAULT 0 COMMENT 'Is this default price field option'",
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this price field value active'",
+ ],
+];
<title>Price Field Quantity Required?</title>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<comment>Enter a quantity for this field?</comment>
<add>1.8</add>
<html>
<title>Price Field Show Amounts?</title>
<type>boolean</type>
<default>1</default>
+ <required>true</required>
<comment>Should the price be displayed next to the label for each option?</comment>
<html>
<type>CheckBox</type>
<type>boolean</type>
<comment>Is this price field active</comment>
<default>1</default>
+ <required>true</required>
<add>1.8</add>
<html>
<type>CheckBox</type>
<type>boolean</type>
<comment>Is this price field required (value must be > 1)</comment>
<default>1</default>
+ <required>true</required>
<add>1.8</add>
<html>
<type>CheckBox</type>
<type>boolean</type>
<comment>Is this default price field option</comment>
<default>0</default>
+ <required>true</required>
<add>3.3</add>
<html>
<type>CheckBox</type>
<type>boolean</type>
<comment>Is this price field value active</comment>
<default>1</default>
+ <required>true</required>
<add>3.3</add>
</field>
<field>
<title>Price Set Is Active?</title>
<type>boolean</type>
<default>1</default>
+ <required>true</required>
<comment>Is this price set active</comment>
<add>1.8</add>
<html>
<title>Is Price Set Quick Config?</title>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<comment>Is set if edited on Contribution or Event Page rather than through Manage Price Sets</comment>
<html>
<type>CheckBox</type>
<title>Price Set Is Reserved</title>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<comment>Is this a predefined system price set (i.e. it can not be deleted, edited)?</comment>
<add>4.2</add>
<html>