5 * @copyright CiviCRM LLC https://civicrm.org/licensing
7 * Generated from xml/schema/CRM/Contribute/Contribution.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:74fa8c515ced28f337a6e6e35425f821)
13 * Database access object for the Contribution entity.
15 class CRM_Contribute_DAO_Contribution
extends CRM_Core_DAO
{
18 * Static instance to hold the table name.
22 public static $_tableName = 'civicrm_contribution';
25 * Icon associated with this entity.
29 public static $_icon = 'fa-credit-card';
32 * Should CiviCRM log any modifications to this table in the civicrm_log table.
36 public static $_log = TRUE;
53 * FK to Financial Type for (total_amount - non_deductible_amount).
57 public $financial_type_id;
60 * The Contribution Page which triggered this contribution
64 public $contribution_page_id;
67 * FK to Payment Instrument
71 public $payment_instrument_id;
74 * Date contribution was received - not necessarily the creation date of the record
81 * Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
85 public $non_deductible_amount;
88 * Total amount of this contribution. Use market value for non-monetary gifts.
95 * actual processor fee if known - may be 0.
102 * actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
109 * unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
116 * unique invoice id, system generated or passed in
123 * Human readable invoice number
127 public $invoice_number;
130 * 3 character string, value from config setting or input via user.
137 * when was gift cancelled
146 public $cancel_reason;
149 * when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
153 public $receipt_date;
156 * when (if) was donor thanked
160 public $thankyou_date;
163 * Origin of this Contribution.
172 public $amount_level;
175 * Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.
179 public $contribution_recur_id;
189 public $is_pay_later;
194 public $contribution_status_id;
197 * Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
206 public $check_number;
209 * The campaign for which this contribution has been triggered.
216 * unique credit note id, system generated or passed in
220 public $creditnote_id;
223 * Total tax amount of this contribution.
230 * Stores the date when revenue should be recognized.
234 public $revenue_recognition_date;
237 * Shows this is a template for recurring contributions.
246 public function __construct() {
247 $this->__table
= 'civicrm_contribution';
248 parent
::__construct();
252 * Returns localized title of this entity.
254 public static function getEntityTitle() {
255 return ts('Contributions');
259 * Returns foreign keys and entity references.
262 * [CRM_Core_Reference_Interface]
264 public static function getReferenceColumns() {
265 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
266 Civi
::$statics[__CLASS__
]['links'] = static::createReferenceColumns(__CLASS__
);
267 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contact_id', 'civicrm_contact', 'id');
268 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
269 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_page_id', 'civicrm_contribution_page', 'id');
270 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
271 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'address_id', 'civicrm_address', 'id');
272 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
273 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
275 return Civi
::$statics[__CLASS__
]['links'];
279 * Returns all the column names of this table
283 public static function &fields() {
284 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
285 Civi
::$statics[__CLASS__
]['fields'] = [
286 'contribution_id' => [
288 'type' => CRM_Utils_Type
::T_INT
,
289 'title' => ts('Contribution ID'),
290 'description' => ts('Contribution ID'),
293 'where' => 'civicrm_contribution.id',
295 'table_name' => 'civicrm_contribution',
296 'entity' => 'Contribution',
297 'bao' => 'CRM_Contribute_BAO_Contribution',
304 'contribution_contact_id' => [
305 'name' => 'contact_id',
306 'type' => CRM_Utils_Type
::T_INT
,
307 'title' => ts('Contact ID'),
308 'description' => ts('FK to Contact ID'),
311 'where' => 'civicrm_contribution.contact_id',
312 'headerPattern' => '/contact(.?id)?/i',
313 'dataPattern' => '/^\d+$/',
315 'table_name' => 'civicrm_contribution',
316 'entity' => 'Contribution',
317 'bao' => 'CRM_Contribute_BAO_Contribution',
319 'FKClassName' => 'CRM_Contact_DAO_Contact',
321 'type' => 'EntityRef',
325 'financial_type_id' => [
326 'name' => 'financial_type_id',
327 'type' => CRM_Utils_Type
::T_INT
,
328 'title' => ts('Financial Type'),
329 'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
330 'where' => 'civicrm_contribution.financial_type_id',
332 'table_name' => 'civicrm_contribution',
333 'entity' => 'Contribution',
334 'bao' => 'CRM_Contribute_BAO_Contribution',
336 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
340 'pseudoconstant' => [
341 'table' => 'civicrm_financial_type',
343 'labelColumn' => 'name',
347 'contribution_page_id' => [
348 'name' => 'contribution_page_id',
349 'type' => CRM_Utils_Type
::T_INT
,
350 'title' => ts('Contribution Page ID'),
351 'description' => ts('The Contribution Page which triggered this contribution'),
353 'where' => 'civicrm_contribution.contribution_page_id',
355 'table_name' => 'civicrm_contribution',
356 'entity' => 'Contribution',
357 'bao' => 'CRM_Contribute_BAO_Contribution',
359 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
362 'label' => ts("Contribution Page"),
364 'pseudoconstant' => [
365 'table' => 'civicrm_contribution_page',
367 'labelColumn' => 'title',
371 'payment_instrument_id' => [
372 'name' => 'payment_instrument_id',
373 'type' => CRM_Utils_Type
::T_INT
,
374 'title' => ts('Payment Method ID'),
375 'description' => ts('FK to Payment Instrument'),
376 'where' => 'civicrm_contribution.payment_instrument_id',
377 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
379 'table_name' => 'civicrm_contribution',
380 'entity' => 'Contribution',
381 'bao' => 'CRM_Contribute_BAO_Contribution',
386 'pseudoconstant' => [
387 'optionGroupName' => 'payment_instrument',
388 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
393 'name' => 'receive_date',
394 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
395 'title' => ts('Date Received'),
396 'description' => ts('Date contribution was received - not necessarily the creation date of the record'),
398 'where' => 'civicrm_contribution.receive_date',
399 'headerPattern' => '/receive(.?date)?/i',
400 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
402 'table_name' => 'civicrm_contribution',
403 'entity' => 'Contribution',
404 'bao' => 'CRM_Contribute_BAO_Contribution',
407 'type' => 'Select Date',
408 'formatType' => 'activityDateTime',
412 'non_deductible_amount' => [
413 'name' => 'non_deductible_amount',
414 'type' => CRM_Utils_Type
::T_MONEY
,
415 'title' => ts('Non-deductible Amount'),
416 'description' => ts('Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.'),
422 'where' => 'civicrm_contribution.non_deductible_amount',
423 'headerPattern' => '/non?.?deduct/i',
424 'dataPattern' => '/^\d+(\.\d{2})?$/',
427 'table_name' => 'civicrm_contribution',
428 'entity' => 'Contribution',
429 'bao' => 'CRM_Contribute_BAO_Contribution',
437 'name' => 'total_amount',
438 'type' => CRM_Utils_Type
::T_MONEY
,
439 'title' => ts('Total Amount'),
440 'description' => ts('Total amount of this contribution. Use market value for non-monetary gifts.'),
447 'where' => 'civicrm_contribution.total_amount',
448 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
449 'dataPattern' => '/^\d+(\.\d{2})?$/',
451 'table_name' => 'civicrm_contribution',
452 'entity' => 'Contribution',
453 'bao' => 'CRM_Contribute_BAO_Contribution',
461 'name' => 'fee_amount',
462 'type' => CRM_Utils_Type
::T_MONEY
,
463 'title' => ts('Fee Amount'),
464 'description' => ts('actual processor fee if known - may be 0.'),
470 'where' => 'civicrm_contribution.fee_amount',
471 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
472 'dataPattern' => '/^\d+(\.\d{2})?$/',
474 'table_name' => 'civicrm_contribution',
475 'entity' => 'Contribution',
476 'bao' => 'CRM_Contribute_BAO_Contribution',
484 'name' => 'net_amount',
485 'type' => CRM_Utils_Type
::T_MONEY
,
486 'title' => ts('Net Amount'),
487 'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
493 'where' => 'civicrm_contribution.net_amount',
494 'headerPattern' => '/net(.?am(ou)?nt)?/i',
495 'dataPattern' => '/^\d+(\.\d{2})?$/',
497 'table_name' => 'civicrm_contribution',
498 'entity' => 'Contribution',
499 'bao' => 'CRM_Contribute_BAO_Contribution',
508 'type' => CRM_Utils_Type
::T_STRING
,
509 'title' => ts('Transaction ID'),
510 'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
512 'size' => CRM_Utils_Type
::HUGE
,
514 'where' => 'civicrm_contribution.trxn_id',
515 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
517 'table_name' => 'civicrm_contribution',
518 'entity' => 'Contribution',
519 'bao' => 'CRM_Contribute_BAO_Contribution',
527 'name' => 'invoice_id',
528 'type' => CRM_Utils_Type
::T_STRING
,
529 'title' => ts('Invoice Reference'),
530 'description' => ts('unique invoice id, system generated or passed in'),
532 'size' => CRM_Utils_Type
::HUGE
,
534 'where' => 'civicrm_contribution.invoice_id',
535 'headerPattern' => '/invoice(.?id)?/i',
537 'table_name' => 'civicrm_contribution',
538 'entity' => 'Contribution',
539 'bao' => 'CRM_Contribute_BAO_Contribution',
546 'invoice_number' => [
547 'name' => 'invoice_number',
548 'type' => CRM_Utils_Type
::T_STRING
,
549 'title' => ts('Invoice Number'),
550 'description' => ts('Human readable invoice number'),
552 'size' => CRM_Utils_Type
::HUGE
,
554 'where' => 'civicrm_contribution.invoice_number',
555 'headerPattern' => '/invoice(.?number)?/i',
557 'table_name' => 'civicrm_contribution',
558 'entity' => 'Contribution',
559 'bao' => 'CRM_Contribute_BAO_Contribution',
567 'name' => 'currency',
568 'type' => CRM_Utils_Type
::T_STRING
,
569 'title' => ts('Currency'),
570 'description' => ts('3 character string, value from config setting or input via user.'),
572 'size' => CRM_Utils_Type
::FOUR
,
574 'where' => 'civicrm_contribution.currency',
575 'headerPattern' => '/cur(rency)?/i',
576 'dataPattern' => '/^[A-Z]{3}$/i',
579 'table_name' => 'civicrm_contribution',
580 'entity' => 'Contribution',
581 'bao' => 'CRM_Contribute_BAO_Contribution',
586 'pseudoconstant' => [
587 'table' => 'civicrm_currency',
588 'keyColumn' => 'name',
589 'labelColumn' => 'full_name',
590 'nameColumn' => 'name',
591 'abbrColumn' => 'symbol',
595 'contribution_cancel_date' => [
596 'name' => 'cancel_date',
597 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
598 'title' => ts('Cancelled / Refunded Date'),
599 'description' => ts('when was gift cancelled'),
601 'where' => 'civicrm_contribution.cancel_date',
602 'headerPattern' => '/cancel(.?date)?/i',
603 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
605 'table_name' => 'civicrm_contribution',
606 'entity' => 'Contribution',
607 'bao' => 'CRM_Contribute_BAO_Contribution',
610 'type' => 'Select Date',
611 'formatType' => 'activityDateTime',
616 'name' => 'cancel_reason',
617 'type' => CRM_Utils_Type
::T_TEXT
,
618 'title' => ts('Cancellation / Refund Reason'),
620 'where' => 'civicrm_contribution.cancel_reason',
621 'headerPattern' => '/(cancel.?)?reason/i',
623 'table_name' => 'civicrm_contribution',
624 'entity' => 'Contribution',
625 'bao' => 'CRM_Contribute_BAO_Contribution',
633 'name' => 'receipt_date',
634 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
635 'title' => ts('Receipt Date'),
636 'description' => ts('when (if) receipt was sent. populated automatically for online donations w/ automatic receipting'),
638 'where' => 'civicrm_contribution.receipt_date',
639 'headerPattern' => '/receipt(.?date)?/i',
640 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
642 'table_name' => 'civicrm_contribution',
643 'entity' => 'Contribution',
644 'bao' => 'CRM_Contribute_BAO_Contribution',
647 'type' => 'Select Date',
648 'formatType' => 'activityDateTime',
653 'name' => 'thankyou_date',
654 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
655 'title' => ts('Thank-you Date'),
656 'description' => ts('when (if) was donor thanked'),
658 'where' => 'civicrm_contribution.thankyou_date',
659 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
660 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
662 'table_name' => 'civicrm_contribution',
663 'entity' => 'Contribution',
664 'bao' => 'CRM_Contribute_BAO_Contribution',
667 'type' => 'Select Date',
668 'formatType' => 'activityDateTime',
672 'contribution_source' => [
674 'type' => CRM_Utils_Type
::T_STRING
,
675 'title' => ts('Contribution Source'),
676 'description' => ts('Origin of this Contribution.'),
678 'size' => CRM_Utils_Type
::HUGE
,
680 'where' => 'civicrm_contribution.source',
681 'headerPattern' => '/source/i',
683 'table_name' => 'civicrm_contribution',
684 'entity' => 'Contribution',
685 'bao' => 'CRM_Contribute_BAO_Contribution',
693 'name' => 'amount_level',
694 'type' => CRM_Utils_Type
::T_TEXT
,
695 'title' => ts('Amount Label'),
697 'where' => 'civicrm_contribution.amount_level',
699 'table_name' => 'civicrm_contribution',
700 'entity' => 'Contribution',
701 'bao' => 'CRM_Contribute_BAO_Contribution',
708 'contribution_recur_id' => [
709 'name' => 'contribution_recur_id',
710 'type' => CRM_Utils_Type
::T_INT
,
711 'title' => ts('Recurring Contribution ID'),
712 'description' => ts('Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.'),
713 'where' => 'civicrm_contribution.contribution_recur_id',
715 'table_name' => 'civicrm_contribution',
716 'entity' => 'Contribution',
717 'bao' => 'CRM_Contribute_BAO_Contribution',
719 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
724 'type' => CRM_Utils_Type
::T_BOOLEAN
,
725 'title' => ts('Test'),
727 'where' => 'civicrm_contribution.is_test',
730 'table_name' => 'civicrm_contribution',
731 'entity' => 'Contribution',
732 'bao' => 'CRM_Contribute_BAO_Contribution',
735 'type' => 'CheckBox',
740 'name' => 'is_pay_later',
741 'type' => CRM_Utils_Type
::T_BOOLEAN
,
742 'title' => ts('Is Pay Later'),
744 'where' => 'civicrm_contribution.is_pay_later',
747 'table_name' => 'civicrm_contribution',
748 'entity' => 'Contribution',
749 'bao' => 'CRM_Contribute_BAO_Contribution',
752 'type' => 'CheckBox',
756 'contribution_status_id' => [
757 'name' => 'contribution_status_id',
758 'type' => CRM_Utils_Type
::T_INT
,
759 'title' => ts('Contribution Status ID'),
761 'where' => 'civicrm_contribution.contribution_status_id',
762 'headerPattern' => '/status/i',
765 'table_name' => 'civicrm_contribution',
766 'entity' => 'Contribution',
767 'bao' => 'CRM_Contribute_BAO_Contribution',
772 'pseudoconstant' => [
773 'optionGroupName' => 'contribution_status',
774 'optionEditPath' => 'civicrm/admin/options/contribution_status',
778 'contribution_address_id' => [
779 'name' => 'address_id',
780 'type' => CRM_Utils_Type
::T_INT
,
781 'title' => ts('Contribution Address'),
782 'description' => ts('Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.'),
783 'where' => 'civicrm_contribution.address_id',
785 'table_name' => 'civicrm_contribution',
786 'entity' => 'Contribution',
787 'bao' => 'CRM_Contribute_BAO_Contribution',
789 'FKClassName' => 'CRM_Core_DAO_Address',
792 'contribution_check_number' => [
793 'name' => 'check_number',
794 'type' => CRM_Utils_Type
::T_STRING
,
795 'title' => ts('Check Number'),
799 'where' => 'civicrm_contribution.check_number',
800 'headerPattern' => '/check(.?number)?/i',
802 'table_name' => 'civicrm_contribution',
803 'entity' => 'Contribution',
804 'bao' => 'CRM_Contribute_BAO_Contribution',
811 'contribution_campaign_id' => [
812 'name' => 'campaign_id',
813 'type' => CRM_Utils_Type
::T_INT
,
814 'title' => ts('Campaign'),
815 'description' => ts('The campaign for which this contribution has been triggered.'),
817 'where' => 'civicrm_contribution.campaign_id',
819 'table_name' => 'civicrm_contribution',
820 'entity' => 'Contribution',
821 'bao' => 'CRM_Contribute_BAO_Contribution',
823 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
827 'pseudoconstant' => [
828 'table' => 'civicrm_campaign',
830 'labelColumn' => 'title',
835 'name' => 'creditnote_id',
836 'type' => CRM_Utils_Type
::T_STRING
,
837 'title' => ts('Credit Note ID'),
838 'description' => ts('unique credit note id, system generated or passed in'),
840 'size' => CRM_Utils_Type
::HUGE
,
842 'where' => 'civicrm_contribution.creditnote_id',
843 'headerPattern' => '/creditnote(.?id)?/i',
845 'table_name' => 'civicrm_contribution',
846 'entity' => 'Contribution',
847 'bao' => 'CRM_Contribute_BAO_Contribution',
855 'name' => 'tax_amount',
856 'type' => CRM_Utils_Type
::T_MONEY
,
857 'title' => ts('Tax Amount'),
858 'description' => ts('Total tax amount of this contribution.'),
864 'where' => 'civicrm_contribution.tax_amount',
865 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
866 'dataPattern' => '/^\d+(\.\d{2})?$/',
868 'table_name' => 'civicrm_contribution',
869 'entity' => 'Contribution',
870 'bao' => 'CRM_Contribute_BAO_Contribution',
877 'revenue_recognition_date' => [
878 'name' => 'revenue_recognition_date',
879 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
880 'title' => ts('Revenue Recognition Date'),
881 'description' => ts('Stores the date when revenue should be recognized.'),
883 'where' => 'civicrm_contribution.revenue_recognition_date',
884 'headerPattern' => '/revenue(.?date)?/i',
885 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
887 'table_name' => 'civicrm_contribution',
888 'entity' => 'Contribution',
889 'bao' => 'CRM_Contribute_BAO_Contribution',
892 'type' => 'Select Date',
893 'formatType' => 'activityDateTime',
898 'name' => 'is_template',
899 'type' => CRM_Utils_Type
::T_BOOLEAN
,
900 'title' => ts('Is a Template Contribution'),
901 'description' => ts('Shows this is a template for recurring contributions.'),
903 'where' => 'civicrm_contribution.is_template',
906 'table_name' => 'civicrm_contribution',
907 'entity' => 'Contribution',
908 'bao' => 'CRM_Contribute_BAO_Contribution',
911 'type' => 'CheckBox',
916 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
918 return Civi
::$statics[__CLASS__
]['fields'];
922 * Return a mapping from field-name to the corresponding key (as used in fields()).
925 * Array(string $name => string $uniqueName).
927 public static function &fieldKeys() {
928 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
929 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
931 return Civi
::$statics[__CLASS__
]['fieldKeys'];
935 * Returns the names of this table
939 public static function getTableName() {
940 return self
::$_tableName;
944 * Returns if this table needs to be logged
948 public function getLog() {
953 * Returns the list of fields that can be imported
955 * @param bool $prefix
959 public static function &import($prefix = FALSE) {
960 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, []);
965 * Returns the list of fields that can be exported
967 * @param bool $prefix
971 public static function &export($prefix = FALSE) {
972 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, []);
977 * Returns the list of indices
979 * @param bool $localize
983 public static function indices($localize = TRUE) {
985 'UI_contrib_payment_instrument_id' => [
986 'name' => 'UI_contrib_payment_instrument_id',
988 0 => 'payment_instrument_id',
990 'localizable' => FALSE,
991 'sig' => 'civicrm_contribution::0::payment_instrument_id',
993 'index_total_amount_receive_date' => [
994 'name' => 'index_total_amount_receive_date',
999 'localizable' => FALSE,
1000 'sig' => 'civicrm_contribution::0::total_amount::receive_date',
1003 'name' => 'index_source',
1007 'localizable' => FALSE,
1008 'sig' => 'civicrm_contribution::0::source',
1010 'UI_contrib_trxn_id' => [
1011 'name' => 'UI_contrib_trxn_id',
1015 'localizable' => FALSE,
1017 'sig' => 'civicrm_contribution::1::trxn_id',
1019 'UI_contrib_invoice_id' => [
1020 'name' => 'UI_contrib_invoice_id',
1024 'localizable' => FALSE,
1026 'sig' => 'civicrm_contribution::1::invoice_id',
1028 'index_contribution_status' => [
1029 'name' => 'index_contribution_status',
1031 0 => 'contribution_status_id',
1033 'localizable' => FALSE,
1034 'sig' => 'civicrm_contribution::0::contribution_status_id',
1036 'received_date' => [
1037 'name' => 'received_date',
1039 0 => 'receive_date',
1041 'localizable' => FALSE,
1042 'sig' => 'civicrm_contribution::0::receive_date',
1045 'name' => 'check_number',
1047 0 => 'check_number',
1049 'localizable' => FALSE,
1050 'sig' => 'civicrm_contribution::0::check_number',
1052 'index_creditnote_id' => [
1053 'name' => 'index_creditnote_id',
1055 0 => 'creditnote_id',
1057 'localizable' => FALSE,
1058 'sig' => 'civicrm_contribution::0::creditnote_id',
1061 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;