CRM-20312 regenerated DAO with localisation
[civicrm-core.git] / CRM / Price / DAO / PriceSet.php
index bda7ba9467aa92cce876464edcc746b8b3478798..66d3117164ad1ee478ee736b8d94224925036391 100644 (file)
@@ -3,7 +3,7 @@
 +--------------------------------------------------------------------+
 | CiviCRM version 4.7                                                |
 +--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2016                                |
+| Copyright CiviCRM LLC (c) 2004-2017                                |
 +--------------------------------------------------------------------+
 | This file is a part of CiviCRM.                                    |
 |                                                                    |
 */
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  *
  * Generated from xml/schema/CRM/Price/PriceSet.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cf1125145d52414335549f50501ff5fc)
+ * (GenCodeChecksum:0b3a382a33511312a5f3b909f214345d)
  */
 require_once 'CRM/Core/DAO.php';
 require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Price_DAO_PriceSet constructor.
+ */
 class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
   /**
-   * static instance to hold the table name
+   * Static instance to hold the table name.
    *
    * @var string
    */
   static $_tableName = 'civicrm_price_set';
   /**
-   * 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
    */
@@ -121,16 +123,20 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
    */
   public $is_reserved;
   /**
-   * class constructor
+   * Minimum Amount required for this set.
    *
-   * @return civicrm_price_set
+   * @var int unsigned
+   */
+  public $min_amount;
+  /**
+   * Class constructor.
    */
   function __construct() {
     $this->__table = 'civicrm_price_set';
     parent::__construct();
   }
   /**
-   * Returns foreign keys and entity references
+   * Returns foreign keys and entity references.
    *
    * @return array
    *   [CRM_Core_Reference_Interface]
@@ -158,12 +164,20 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'title' => ts('Price Set ID') ,
           'description' => 'Price Set',
           'required' => true,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
         ) ,
         'domain_id' => array(
           'name' => 'domain_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Price Set Domain') ,
           'description' => 'Which Domain is this price-set for',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Domain',
           'html' => array(
             'type' => 'Text',
@@ -182,6 +196,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -194,6 +212,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 1,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -204,6 +226,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'title' => ts('Price Set Is Active?') ,
           'description' => 'Is this price set active',
           'default' => '1',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'CheckBox',
           ) ,
@@ -215,6 +241,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'description' => 'Description and/or help text to display before fields in form.',
           'rows' => 4,
           'cols' => 80,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 1,
           'html' => array(
             'type' => 'TextArea',
           ) ,
@@ -226,6 +256,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'description' => 'Description and/or help text to display after fields in form.',
           'rows' => 4,
           'cols' => 80,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 1,
           'html' => array(
             'type' => 'TextArea',
           ) ,
@@ -237,6 +271,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'description' => 'Optional Javascript script function(s) included on the form with this price_set. Can be used for conditional',
           'maxlength' => 64,
           'size' => CRM_Utils_Type::BIG,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -249,6 +287,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'required' => true,
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'Text',
           ) ,
@@ -264,6 +306,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'title' => ts('Financial Type') ,
           'description' => 'FK to Financial Type(for membership price sets only).',
           'default' => 'NULL',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'FKClassName' => 'CRM_Financial_DAO_FinancialType',
           'html' => array(
             'type' => 'Select',
@@ -279,6 +325,10 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Price Set Quick Config?') ,
           'description' => 'Is set if edited on Contribution or Event Page rather than through Manage Price Sets',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'CheckBox',
           ) ,
@@ -288,10 +338,27 @@ class CRM_Price_DAO_PriceSet extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Price Set Is Reserved') ,
           'description' => 'Is this a predefined system price set  (i.e. it can not be deleted, edited)?',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
           'html' => array(
             'type' => 'CheckBox',
           ) ,
         ) ,
+        'min_amount' => array(
+          'name' => 'min_amount',
+          'type' => CRM_Utils_Type::T_INT,
+          'title' => ts('Minimum Amount') ,
+          'description' => 'Minimum Amount required for this set.',
+          'table_name' => 'civicrm_price_set',
+          'entity' => 'PriceSet',
+          'bao' => 'CRM_Price_BAO_PriceSet',
+          'localizable' => 0,
+          'html' => array(
+            'type' => 'Text',
+          ) ,
+        ) ,
       );
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
     }