*
* Generated from xml/schema/CRM/Contribute/ContributionRecur.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0a7eaba45ea7d692276b351cd9cee473)
+ * (GenCodeChecksum:ba5f7682a5f99b682f70cd45097feb56)
*/
/**
* Database access object for the ContributionRecur entity.
*/
class CRM_Contribute_DAO_ContributionRecur extends CRM_Core_DAO {
+ const EXT = 'civicrm';
+ const TABLE_ADDED = '1.6';
/**
* Static instance to hold the table name.
/**
* Returns localized title of this entity.
+ *
+ * @param bool $plural
+ * Whether to return the plural version of the title.
*/
- public static function getEntityTitle() {
- return ts('Recurring Contributions');
+ public static function getEntityTitle($plural = FALSE) {
+ return $plural ? ts('Recurring Contributions') : ts('Recurring Contribution');
}
/**
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'localizable' => 0,
+ 'add' => '1.6',
],
'contact_id' => [
'name' => 'contact_id',
'html' => [
'type' => 'EntityRef',
],
+ 'add' => '1.6',
],
'amount' => [
'name' => 'amount',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'currency' => [
'name' => 'currency',
'nameColumn' => 'name',
'abbrColumn' => 'symbol',
],
+ 'add' => '3.2',
],
'frequency_unit' => [
'name' => 'frequency_unit',
'keyColumn' => 'name',
'optionEditPath' => 'civicrm/admin/options/recur_frequency_units',
],
+ 'add' => '1.6',
],
'frequency_interval' => [
'name' => 'frequency_interval',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'installments' => [
'name' => 'installments',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'contribution_recur_start_date' => [
'name' => 'start_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.6',
],
'contribution_recur_create_date' => [
'name' => 'create_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.6',
],
'contribution_recur_modified_date' => [
'name' => 'modified_date',
'type' => 'Select Date',
'formatType' => 'activityDateTime',
],
+ 'add' => '1.6',
],
'contribution_recur_cancel_date' => [
'name' => 'cancel_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '1.6',
],
'contribution_recur_cancel_reason' => [
'name' => 'cancel_reason',
'html' => [
'type' => 'Text',
],
+ 'add' => '5.13',
],
'contribution_recur_end_date' => [
'name' => 'end_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '1.6',
],
'contribution_recur_processor_id' => [
'name' => 'processor_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'payment_token_id' => [
'name' => 'payment_token_id',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'localizable' => 0,
'FKClassName' => 'CRM_Financial_DAO_PaymentToken',
+ 'add' => '4.6',
],
'contribution_recur_trxn_id' => [
'name' => 'trxn_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'invoice_id' => [
'name' => 'invoice_id',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'contribution_recur_contribution_status_id' => [
'name' => 'contribution_status_id',
'optionGroupName' => 'contribution_recur_status',
'optionEditPath' => 'civicrm/admin/options/contribution_recur_status',
],
+ 'add' => '1.6',
],
'is_test' => [
'name' => 'is_test',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => NULL,
],
'cycle_day' => [
'name' => 'cycle_day',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'contribution_recur_next_sched_contribution_date' => [
'name' => 'next_sched_contribution_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '4.4',
],
'failure_count' => [
'name' => 'failure_count',
'html' => [
'type' => 'Text',
],
+ 'add' => '1.6',
],
'contribution_recur_failure_retry_date' => [
'name' => 'failure_retry_date',
'type' => 'Select Date',
'formatType' => 'activityDate',
],
+ 'add' => '1.6',
],
'auto_renew' => [
'name' => 'auto_renew',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '1.6',
],
'contribution_recur_payment_processor_id' => [
'name' => 'payment_processor_id',
'keyColumn' => 'id',
'labelColumn' => 'name',
],
+ 'add' => '3.3',
],
'financial_type_id' => [
'name' => 'financial_type_id',
'keyColumn' => 'id',
'labelColumn' => 'name',
],
+ 'add' => '4.3',
],
'payment_instrument_id' => [
'name' => 'payment_instrument_id',
'optionGroupName' => 'payment_instrument',
'optionEditPath' => 'civicrm/admin/options/payment_instrument',
],
+ 'add' => '4.1',
],
'contribution_campaign_id' => [
'name' => 'campaign_id',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
+ 'add' => '4.1',
],
'is_email_receipt' => [
'name' => 'is_email_receipt',
'html' => [
'type' => 'CheckBox',
],
+ 'add' => '4.1',
],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);