+--------------------------------------------------------------------+
| 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/Pledge/Pledge.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6aa082b07bbcb93e0a7c5e9048643c91)
+ * (GenCodeChecksum:93d3db6cf90649f6bc070d1b72def5af)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Pledge_DAO_Pledge constructor.
+ */
class CRM_Pledge_DAO_Pledge extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_pledge';
/**
- * 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 $campaign_id;
/**
- * class constructor
- *
- * @return civicrm_pledge
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_pledge';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
) ,
'pledge_contact_id' => array(
'name' => 'contact_id',
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Contact_DAO_Contact',
'html' => array(
'type' => 'EntityRef',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Type') ,
'description' => 'FK to Financial Type',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Financial_DAO_FinancialType',
'html' => array(
'type' => 'Select',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Pledge Contribution Page') ,
'description' => 'The Contribution Page which triggered this contribution',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
) ,
'pledge_amount' => array(
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
20,
2
) ,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
'default' => 'NULL',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select',
) ,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
'default' => 'month',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select',
) ,
'description' => 'Number of time units for recurrence of pledge payments.',
'required' => true,
'default' => '1',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'description' => 'Day in the period when the pledge payment is due e.g. 1st of month, 15th etc. Use this to set the scheduled dates for pledge payments.',
'required' => true,
'default' => '3',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select',
) ,
'title' => ts('Pledge Number of Installments') ,
'description' => 'Total number of payments to be made.',
'default' => '1',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Pledge Start Date') ,
'description' => 'The date the first scheduled pledge occurs.',
'required' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Acknowledged') ,
'description' => 'When a pledge acknowledgement message was sent to the contributor.',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Modified Date') ,
'description' => 'Last updated date for this pledge record.',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
) ,
'cancel_date' => array(
'name' => 'cancel_date',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Cancelled Date') ,
'description' => 'Date this pledge was cancelled by contributor.',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge End Date') ,
'description' => 'Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select Date',
) ,
'title' => ts('Maximum Number of Reminders') ,
'description' => 'The maximum number of payment reminders to send for any given payment.',
'default' => '1',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'title' => ts('Initial Reminder Day') ,
'description' => 'Send initial reminder this many days prior to the payment due date.',
'default' => '5',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Select',
) ,
'title' => ts('Additional Reminder Days') ,
'description' => 'Send additional reminder this many days after last one sent, up to maximum number of reminders.',
'default' => '5',
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'Text',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => false,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'pseudoconstant' => array(
'optionGroupName' => 'contribution_status',
'optionEditPath' => 'civicrm/admin/options/contribution_status',
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'html' => array(
'type' => 'CheckBox',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_pledge',
+ 'entity' => 'Pledge',
+ 'bao' => 'CRM_Pledge_BAO_Pledge',
+ 'localizable' => 0,
'FKClassName' => 'CRM_Campaign_DAO_Campaign',
'html' => array(
'type' => 'Select',