3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2017 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
29 * @copyright CiviCRM LLC (c) 2004-2017
31 * Generated from xml/schema/CRM/Contribute/Contribution.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:bff397bf9cf2dc2fef96d7c5ab560158)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
38 * CRM_Contribute_DAO_Contribution constructor.
40 class CRM_Contribute_DAO_Contribution
extends CRM_Core_DAO
{
42 * Static instance to hold the table name.
46 static $_tableName = 'civicrm_contribution';
48 * Should CiviCRM log any modifications to this table in the civicrm_log table.
66 * FK to Financial Type for (total_amount - non_deductible_amount).
70 public $financial_type_id;
72 * The Contribution Page which triggered this contribution
76 public $contribution_page_id;
78 * FK to Payment Instrument
82 public $payment_instrument_id;
84 * Date contribution was received - not necessarily the creation date of the record
90 * Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
94 public $non_deductible_amount;
96 * Total amount of this contribution. Use market value for non-monetary gifts.
100 public $total_amount;
102 * actual processor fee if known - may be 0.
108 * actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
114 * unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
120 * unique invoice id, system generated or passed in
126 * 3 character string, value from config setting or input via user.
132 * when was gift cancelled
141 public $cancel_reason;
143 * when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
147 public $receipt_date;
149 * when (if) was donor thanked
153 public $thankyou_date;
155 * Origin of this Contribution.
164 public $amount_level;
166 * 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.
170 public $contribution_recur_id;
180 public $is_pay_later;
185 public $contribution_status_id;
187 * Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
196 public $check_number;
198 * The campaign for which this contribution has been triggered.
204 * unique credit note id, system generated or passed in
208 public $creditnote_id;
210 * Total tax amount of this contribution.
216 * Stores the date when revenue should be recognized.
220 public $revenue_recognition_date;
224 function __construct() {
225 $this->__table
= 'civicrm_contribution';
226 parent
::__construct();
229 * Returns foreign keys and entity references.
232 * [CRM_Core_Reference_Interface]
234 static function getReferenceColumns() {
235 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
236 Civi
::$statics[__CLASS__
]['links'] = static ::createReferenceColumns(__CLASS__
);
237 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'contact_id', 'civicrm_contact', 'id');
238 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'financial_type_id', 'civicrm_financial_type', 'id');
239 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'contribution_page_id', 'civicrm_contribution_page', 'id');
240 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'contribution_recur_id', 'civicrm_contribution_recur', 'id');
241 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'address_id', 'civicrm_address', 'id');
242 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName() , 'campaign_id', 'civicrm_campaign', 'id');
243 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
245 return Civi
::$statics[__CLASS__
]['links'];
248 * Returns all the column names of this table
252 static function &fields() {
253 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
254 Civi
::$statics[__CLASS__
]['fields'] = array(
255 'contribution_id' => array(
257 'type' => CRM_Utils_Type
::T_INT
,
258 'title' => ts('Contribution ID') ,
259 'description' => 'Contribution ID',
262 'where' => 'civicrm_contribution.id',
263 'headerPattern' => '',
266 'table_name' => 'civicrm_contribution',
267 'entity' => 'Contribution',
268 'bao' => 'CRM_Contribute_BAO_Contribution',
271 'contribution_contact_id' => array(
272 'name' => 'contact_id',
273 'type' => CRM_Utils_Type
::T_INT
,
274 'title' => ts('Contact ID') ,
275 'description' => 'FK to Contact ID',
278 'where' => 'civicrm_contribution.contact_id',
279 'headerPattern' => '/contact(.?id)?/i',
280 'dataPattern' => '/^\d+$/',
282 'table_name' => 'civicrm_contribution',
283 'entity' => 'Contribution',
284 'bao' => 'CRM_Contribute_BAO_Contribution',
286 'FKClassName' => 'CRM_Contact_DAO_Contact',
288 'type' => 'EntityRef',
291 'financial_type_id' => array(
292 'name' => 'financial_type_id',
293 'type' => CRM_Utils_Type
::T_INT
,
294 'title' => ts('Financial Type') ,
295 'description' => 'FK to Financial Type for (total_amount - non_deductible_amount).',
297 'where' => 'civicrm_contribution.financial_type_id',
298 'headerPattern' => '',
300 'table_name' => 'civicrm_contribution',
301 'entity' => 'Contribution',
302 'bao' => 'CRM_Contribute_BAO_Contribution',
304 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
308 'pseudoconstant' => array(
309 'table' => 'civicrm_financial_type',
311 'labelColumn' => 'name',
314 'contribution_page_id' => array(
315 'name' => 'contribution_page_id',
316 'type' => CRM_Utils_Type
::T_INT
,
317 'title' => ts('Contribution Page ID') ,
318 'description' => 'The Contribution Page which triggered this contribution',
320 'where' => 'civicrm_contribution.contribution_page_id',
321 'headerPattern' => '',
324 'table_name' => 'civicrm_contribution',
325 'entity' => 'Contribution',
326 'bao' => 'CRM_Contribute_BAO_Contribution',
328 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage',
332 'pseudoconstant' => array(
333 'table' => 'civicrm_contribution_page',
335 'labelColumn' => 'title',
338 'payment_instrument_id' => array(
339 'name' => 'payment_instrument_id',
340 'type' => CRM_Utils_Type
::T_INT
,
341 'title' => ts('Payment Method ID') ,
342 'description' => 'FK to Payment Instrument',
344 'where' => 'civicrm_contribution.payment_instrument_id',
345 'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
347 'table_name' => 'civicrm_contribution',
348 'entity' => 'Contribution',
349 'bao' => 'CRM_Contribute_BAO_Contribution',
354 'pseudoconstant' => array(
355 'optionGroupName' => 'payment_instrument',
356 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
359 'receive_date' => array(
360 'name' => 'receive_date',
361 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
362 'title' => ts('Date Received') ,
363 'description' => 'Date contribution was received - not necessarily the creation date of the record',
365 'where' => 'civicrm_contribution.receive_date',
366 'headerPattern' => '/receive(.?date)?/i',
367 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
369 'table_name' => 'civicrm_contribution',
370 'entity' => 'Contribution',
371 'bao' => 'CRM_Contribute_BAO_Contribution',
374 'type' => 'Select Date',
375 'formatType' => 'activityDateTime',
378 'non_deductible_amount' => array(
379 'name' => 'non_deductible_amount',
380 'type' => CRM_Utils_Type
::T_MONEY
,
381 'title' => ts('Non-deductible Amount') ,
382 'description' => 'Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.',
383 'precision' => array(
388 'where' => 'civicrm_contribution.non_deductible_amount',
389 'headerPattern' => '/non?.?deduct/i',
390 'dataPattern' => '/^\d+(\.\d{2})?$/',
392 'table_name' => 'civicrm_contribution',
393 'entity' => 'Contribution',
394 'bao' => 'CRM_Contribute_BAO_Contribution',
400 'total_amount' => array(
401 'name' => 'total_amount',
402 'type' => CRM_Utils_Type
::T_MONEY
,
403 'title' => ts('Total Amount') ,
404 'description' => 'Total amount of this contribution. Use market value for non-monetary gifts.',
406 'precision' => array(
411 'where' => 'civicrm_contribution.total_amount',
412 'headerPattern' => '/^total|(.?^am(ou)?nt)/i',
413 'dataPattern' => '/^\d+(\.\d{2})?$/',
415 'table_name' => 'civicrm_contribution',
416 'entity' => 'Contribution',
417 'bao' => 'CRM_Contribute_BAO_Contribution',
423 'fee_amount' => array(
424 'name' => 'fee_amount',
425 'type' => CRM_Utils_Type
::T_MONEY
,
426 'title' => ts('Fee Amount') ,
427 'description' => 'actual processor fee if known - may be 0.',
428 'precision' => array(
433 'where' => 'civicrm_contribution.fee_amount',
434 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
435 'dataPattern' => '/^\d+(\.\d{2})?$/',
437 'table_name' => 'civicrm_contribution',
438 'entity' => 'Contribution',
439 'bao' => 'CRM_Contribute_BAO_Contribution',
445 'net_amount' => array(
446 'name' => 'net_amount',
447 'type' => CRM_Utils_Type
::T_MONEY
,
448 'title' => ts('Net Amount') ,
449 'description' => 'actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.',
450 'precision' => array(
455 'where' => 'civicrm_contribution.net_amount',
456 'headerPattern' => '/net(.?am(ou)?nt)?/i',
457 'dataPattern' => '/^\d+(\.\d{2})?$/',
459 'table_name' => 'civicrm_contribution',
460 'entity' => 'Contribution',
461 'bao' => 'CRM_Contribute_BAO_Contribution',
469 'type' => CRM_Utils_Type
::T_STRING
,
470 'title' => ts('Transaction ID') ,
471 'description' => 'unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method',
473 'size' => CRM_Utils_Type
::HUGE
,
475 'where' => 'civicrm_contribution.trxn_id',
476 'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
479 'table_name' => 'civicrm_contribution',
480 'entity' => 'Contribution',
481 'bao' => 'CRM_Contribute_BAO_Contribution',
487 'invoice_id' => array(
488 'name' => 'invoice_id',
489 'type' => CRM_Utils_Type
::T_STRING
,
490 'title' => ts('Invoice ID') ,
491 'description' => 'unique invoice id, system generated or passed in',
493 'size' => CRM_Utils_Type
::HUGE
,
495 'where' => 'civicrm_contribution.invoice_id',
496 'headerPattern' => '/invoice(.?id)?/i',
499 'table_name' => 'civicrm_contribution',
500 'entity' => 'Contribution',
501 'bao' => 'CRM_Contribute_BAO_Contribution',
508 'name' => 'currency',
509 'type' => CRM_Utils_Type
::T_STRING
,
510 'title' => ts('Currency') ,
511 'description' => '3 character string, value from config setting or input via user.',
513 'size' => CRM_Utils_Type
::FOUR
,
515 'where' => 'civicrm_contribution.currency',
516 'headerPattern' => '/cur(rency)?/i',
517 'dataPattern' => '/^[A-Z]{3}$/i',
520 'table_name' => 'civicrm_contribution',
521 'entity' => 'Contribution',
522 'bao' => 'CRM_Contribute_BAO_Contribution',
527 'pseudoconstant' => array(
528 'table' => 'civicrm_currency',
529 'keyColumn' => 'name',
530 'labelColumn' => 'full_name',
531 'nameColumn' => 'name',
534 'cancel_date' => array(
535 'name' => 'cancel_date',
536 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
537 'title' => ts('Cancel Date') ,
538 'description' => 'when was gift cancelled',
540 'where' => 'civicrm_contribution.cancel_date',
541 'headerPattern' => '/cancel(.?date)?/i',
542 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
544 'table_name' => 'civicrm_contribution',
545 'entity' => 'Contribution',
546 'bao' => 'CRM_Contribute_BAO_Contribution',
549 'type' => 'Select Date',
550 'formatType' => 'activityDateTime',
553 'cancel_reason' => array(
554 'name' => 'cancel_reason',
555 'type' => CRM_Utils_Type
::T_TEXT
,
556 'title' => ts('Cancel Reason') ,
558 'where' => 'civicrm_contribution.cancel_reason',
559 'headerPattern' => '/(cancel.?)?reason/i',
562 'table_name' => 'civicrm_contribution',
563 'entity' => 'Contribution',
564 'bao' => 'CRM_Contribute_BAO_Contribution',
570 'receipt_date' => array(
571 'name' => 'receipt_date',
572 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
573 'title' => ts('Receipt Date') ,
574 'description' => 'when (if) receipt was sent. populated automatically for online donations w/ automatic receipting',
576 'where' => 'civicrm_contribution.receipt_date',
577 'headerPattern' => '/receipt(.?date)?/i',
578 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
580 'table_name' => 'civicrm_contribution',
581 'entity' => 'Contribution',
582 'bao' => 'CRM_Contribute_BAO_Contribution',
585 'type' => 'Select Date',
586 'formatType' => 'activityDateTime',
589 'thankyou_date' => array(
590 'name' => 'thankyou_date',
591 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
592 'title' => ts('Thank-you Date') ,
593 'description' => 'when (if) was donor thanked',
595 'where' => 'civicrm_contribution.thankyou_date',
596 'headerPattern' => '/thank(s|(.?you))?(.?date)?/i',
597 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
599 'table_name' => 'civicrm_contribution',
600 'entity' => 'Contribution',
601 'bao' => 'CRM_Contribute_BAO_Contribution',
604 'type' => 'Select Date',
605 'formatType' => 'activityDateTime',
608 'contribution_source' => array(
610 'type' => CRM_Utils_Type
::T_STRING
,
611 'title' => ts('Contribution Source') ,
612 'description' => 'Origin of this Contribution.',
614 'size' => CRM_Utils_Type
::HUGE
,
616 'where' => 'civicrm_contribution.source',
617 'headerPattern' => '/source/i',
620 'table_name' => 'civicrm_contribution',
621 'entity' => 'Contribution',
622 'bao' => 'CRM_Contribute_BAO_Contribution',
628 'amount_level' => array(
629 'name' => 'amount_level',
630 'type' => CRM_Utils_Type
::T_TEXT
,
631 'title' => ts('Amount Label') ,
633 'where' => 'civicrm_contribution.amount_level',
634 'headerPattern' => '',
637 'table_name' => 'civicrm_contribution',
638 'entity' => 'Contribution',
639 'bao' => 'CRM_Contribute_BAO_Contribution',
645 'contribution_recur_id' => array(
646 'name' => 'contribution_recur_id',
647 'type' => CRM_Utils_Type
::T_INT
,
648 'title' => ts('Recurring Contribution ID') ,
649 'description' => '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.',
651 'where' => 'civicrm_contribution.contribution_recur_id',
652 'headerPattern' => '',
654 'table_name' => 'civicrm_contribution',
655 'entity' => 'Contribution',
656 'bao' => 'CRM_Contribute_BAO_Contribution',
658 'FKClassName' => 'CRM_Contribute_DAO_ContributionRecur',
662 'type' => CRM_Utils_Type
::T_BOOLEAN
,
663 'title' => ts('Test') ,
665 'where' => 'civicrm_contribution.is_test',
666 'headerPattern' => '',
669 'table_name' => 'civicrm_contribution',
670 'entity' => 'Contribution',
671 'bao' => 'CRM_Contribute_BAO_Contribution',
674 'type' => 'CheckBox',
677 'is_pay_later' => array(
678 'name' => 'is_pay_later',
679 'type' => CRM_Utils_Type
::T_BOOLEAN
,
680 'title' => ts('Is Pay Later') ,
682 'where' => 'civicrm_contribution.is_pay_later',
683 'headerPattern' => '',
686 'table_name' => 'civicrm_contribution',
687 'entity' => 'Contribution',
688 'bao' => 'CRM_Contribute_BAO_Contribution',
691 'type' => 'CheckBox',
694 'contribution_status_id' => array(
695 'name' => 'contribution_status_id',
696 'type' => CRM_Utils_Type
::T_INT
,
697 'title' => ts('Contribution Status ID') ,
699 'where' => 'civicrm_contribution.contribution_status_id',
700 'headerPattern' => '/status/i',
704 'table_name' => 'civicrm_contribution',
705 'entity' => 'Contribution',
706 'bao' => 'CRM_Contribute_BAO_Contribution',
711 'pseudoconstant' => array(
712 'optionGroupName' => 'contribution_status',
713 'optionEditPath' => 'civicrm/admin/options/contribution_status',
716 'contribution_address_id' => array(
717 'name' => 'address_id',
718 'type' => CRM_Utils_Type
::T_INT
,
719 'title' => ts('Contribution Address') ,
720 'description' => 'Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.',
722 'where' => 'civicrm_contribution.address_id',
723 'headerPattern' => '',
725 'table_name' => 'civicrm_contribution',
726 'entity' => 'Contribution',
727 'bao' => 'CRM_Contribute_BAO_Contribution',
729 'FKClassName' => 'CRM_Core_DAO_Address',
731 'contribution_check_number' => array(
732 'name' => 'check_number',
733 'type' => CRM_Utils_Type
::T_STRING
,
734 'title' => ts('Check Number') ,
738 'where' => 'civicrm_contribution.check_number',
739 'headerPattern' => '/check(.?number)?/i',
742 'table_name' => 'civicrm_contribution',
743 'entity' => 'Contribution',
744 'bao' => 'CRM_Contribute_BAO_Contribution',
750 'contribution_campaign_id' => array(
751 'name' => 'campaign_id',
752 'type' => CRM_Utils_Type
::T_INT
,
753 'title' => ts('Campaign') ,
754 'description' => 'The campaign for which this contribution has been triggered.',
756 'where' => 'civicrm_contribution.campaign_id',
757 'headerPattern' => '',
760 'table_name' => 'civicrm_contribution',
761 'entity' => 'Contribution',
762 'bao' => 'CRM_Contribute_BAO_Contribution',
764 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
768 'pseudoconstant' => array(
769 'table' => 'civicrm_campaign',
771 'labelColumn' => 'title',
774 'creditnote_id' => array(
775 'name' => 'creditnote_id',
776 'type' => CRM_Utils_Type
::T_STRING
,
777 'title' => ts('Credit Note ID') ,
778 'description' => 'unique credit note id, system generated or passed in',
780 'size' => CRM_Utils_Type
::HUGE
,
782 'where' => 'civicrm_contribution.creditnote_id',
783 'headerPattern' => '/creditnote(.?id)?/i',
786 'table_name' => 'civicrm_contribution',
787 'entity' => 'Contribution',
788 'bao' => 'CRM_Contribute_BAO_Contribution',
794 'tax_amount' => array(
795 'name' => 'tax_amount',
796 'type' => CRM_Utils_Type
::T_MONEY
,
797 'title' => ts('Tax Amount') ,
798 'description' => 'Total tax amount of this contribution.',
799 'precision' => array(
804 'where' => 'civicrm_contribution.tax_amount',
805 'headerPattern' => '/tax(.?am(ou)?nt)?/i',
806 'dataPattern' => '/^\d+(\.\d{2})?$/',
808 'table_name' => 'civicrm_contribution',
809 'entity' => 'Contribution',
810 'bao' => 'CRM_Contribute_BAO_Contribution',
816 'revenue_recognition_date' => array(
817 'name' => 'revenue_recognition_date',
818 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
819 'title' => ts('Revenue Recognition Date') ,
820 'description' => 'Stores the date when revenue should be recognized.',
822 'where' => 'civicrm_contribution.revenue_recognition_date',
823 'headerPattern' => '/revenue(.?date)?/i',
824 'dataPattern' => '/^\d{4}-?\d{2}-?\d{2} ?(\d{2}:?\d{2}:?(\d{2})?)?$/',
826 'table_name' => 'civicrm_contribution',
827 'entity' => 'Contribution',
828 'bao' => 'CRM_Contribute_BAO_Contribution',
831 'type' => 'Select Date',
832 'formatType' => 'activityDateTime',
836 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
838 return Civi
::$statics[__CLASS__
]['fields'];
841 * Return a mapping from field-name to the corresponding key (as used in fields()).
844 * Array(string $name => string $uniqueName).
846 static function &fieldKeys() {
847 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
848 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
850 return Civi
::$statics[__CLASS__
]['fieldKeys'];
853 * Returns the names of this table
857 static function getTableName() {
858 return self
::$_tableName;
861 * Returns if this table needs to be logged
869 * Returns the list of fields that can be imported
871 * @param bool $prefix
875 static function &import($prefix = false) {
876 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution', $prefix, array());
880 * Returns the list of fields that can be exported
882 * @param bool $prefix
886 static function &export($prefix = false) {
887 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution', $prefix, array());