*
* Generated from xml/schema/CRM/Price/PriceFieldValue.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ed52bc054bb8aed4bb154756a79fafa1)
+ * (GenCodeChecksum:44b920e4a8091f16a96990834a24c288)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Price_DAO_PriceFieldValue constructor.
+ */
class CRM_Price_DAO_PriceFieldValue extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_price_field_value';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
*/
public $non_deductible_amount;
/**
- * class constructor
- *
- * @return civicrm_price_field_value
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_price_field_value';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'title' => ts('Price Field Value ID') ,
'description' => 'Price Field Value',
'required' => true,
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
) ,
'price_field_id' => array(
'name' => 'price_field_id',
'title' => ts('Price Field') ,
'description' => 'FK to civicrm_price_field',
'required' => true,
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Price_DAO_PriceField',
) ,
'name' => array(
'description' => 'Price field option name',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'description' => 'Price field option label',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 1,
'html' => array(
'type' => 'Text',
) ,
'rows' => 2,
'cols' => 60,
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 1,
'html' => array(
'type' => 'TextArea',
) ,
'rows' => 2,
'cols' => 60,
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 1,
'html' => array(
'type' => 'TextArea',
) ,
'rows' => 2,
'cols' => 60,
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 1,
'html' => array(
'type' => 'TextArea',
) ,
'required' => true,
'maxlength' => 512,
'size' => 8,
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Count') ,
'description' => 'Number of participants per field option',
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Max Value') ,
'description' => 'Max number of participants per field options',
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Order') ,
'description' => 'Order in which the field options should appear',
'default' => '1',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Membership Type') ,
'description' => 'FK to Membership Type',
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Member_DAO_MembershipType',
'html' => array(
'type' => 'Select',
'title' => ts('Membership Num Terms') ,
'description' => 'Number of terms for this membership',
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Default Price Field Option?') ,
'description' => 'Is this default price field option',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'CheckBox',
) ,
'title' => ts('Price Field Value is Active') ,
'description' => 'Is this price field value active',
'default' => '1',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
) ,
'financial_type_id' => array(
'name' => 'financial_type_id',
'title' => ts('Financial Type') ,
'description' => 'FK to Financial Type.',
'default' => 'NULL',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Financial_DAO_FinancialType',
'html' => array(
'type' => 'Select',
2
) ,
'default' => '0.0',
+ 'table_name' => 'civicrm_price_field_value',
+ 'entity' => 'PriceFieldValue',
+ 'bao' => 'CRM_Price_BAO_PriceFieldValue',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
$r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'price_field_value', $prefix, array());
return $r;
}
+ /**
+ * Returns the list of indices
+ */
+ public static function indices($localize = TRUE) {
+ $indices = array();
+ return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+ }
}