+--------------------------------------------------------------------+
| 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/Batch/Batch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:81081e8ad03b0097ba7949b4425b1ca8)
+ * (GenCodeChecksum:28922d3acf09a4ad091212f1bfa78732)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Batch_DAO_Batch constructor.
+ */
class CRM_Batch_DAO_Batch extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_batch';
/**
- * 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 $data;
/**
- * class constructor
- *
- * @return civicrm_batch
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_batch';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'title' => ts('Batch ID') ,
'description' => 'Unique Address ID',
'required' => true,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
) ,
'name' => array(
'name' => 'name',
'description' => 'Variable name/programmatic handle for this batch.',
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Text',
) ,
'description' => 'Friendly Name.',
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Text',
) ,
'description' => 'Description of this batch set.',
'rows' => 4,
'cols' => 80,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'TextArea',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Created By') ,
'description' => 'FK to Contact ID',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'FKClassName' => 'CRM_Contact_DAO_Contact',
) ,
'created_date' => array(
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Created Date') ,
'description' => 'When was this item created',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Select Date',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Modified By') ,
'description' => 'FK to Contact ID',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'FKClassName' => 'CRM_Contact_DAO_Contact',
) ,
'modified_date' => array(
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Modified Date') ,
'description' => 'When was this item created',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
) ,
'saved_search_id' => array(
'name' => 'saved_search_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Smart Group') ,
'description' => 'FK to Saved Search ID',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'FKClassName' => 'CRM_Contact_DAO_SavedSearch',
'html' => array(
'type' => 'EntityRef',
'title' => ts('Batch Status') ,
'description' => 'fk to Batch Status options in civicrm_option_values',
'required' => true,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Select',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Type') ,
'description' => 'fk to Batch Type options in civicrm_option_values',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Select',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Mode') ,
'description' => 'fk to Batch mode options in civicrm_option_values',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Select',
) ,
20,
2
) ,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Text',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Number of Items') ,
'description' => 'Number of items in a batch.',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Text',
) ,
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Payment Method') ,
'description' => 'fk to Payment Instrument options in civicrm_option_values',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
'html' => array(
'type' => 'Select',
) ,
'name' => 'exported_date',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Exported Date') ,
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
) ,
'data' => array(
'name' => 'data',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Batch Data') ,
'description' => 'cache entered data',
+ 'table_name' => 'civicrm_batch',
+ 'entity' => 'Batch',
+ 'bao' => 'CRM_Batch_BAO_Batch',
) ,
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);