5 * @copyright CiviCRM LLC (c) 2004-2017
7 * Generated from xml/schema/CRM/Contribute/ContributionPage.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:2bc7d9380c552fe9995f8403f757cd09)
13 * Database access object for the ContributionPage entity.
15 class CRM_Contribute_DAO_ContributionPage
extends CRM_Core_DAO
{
18 * Static instance to hold the table name.
22 static $_tableName = 'civicrm_contribution_page';
25 * Should CiviCRM log any modifications to this table in the civicrm_log table.
39 * Contribution Page title. For top of page display
46 * Text and html allowed. Displayed below title.
53 * default financial type assigned to contributions submitted via this page, e.g. Contribution, Campaign Contribution
57 public $financial_type_id;
60 * Payment Processors configured for this contribution Page
64 public $payment_processor;
67 * if true - processing logic must reject transaction at confirmation stage if pay method != credit card
71 public $is_credit_card_only;
74 * if true - allows real-time monetary transactions otherwise non-monetary transactions
81 * if true - allows recurring contributions, valid only for PayPal_Standard
88 * if false, the confirm page in contribution pages gets skipped
92 public $is_confirm_enabled;
95 * Supported recurring frequency units.
99 public $recur_frequency_unit;
102 * if true - supports recurring intervals
106 public $is_recur_interval;
109 * if true - asks user for recurring installments
113 public $is_recur_installments;
116 * if true - user is able to adjust payment start date
120 public $adjust_recur_start_date;
123 * if true - allows the user to send payment directly to the org later
127 public $is_pay_later;
130 * The text displayed to the user in the main form
134 public $pay_later_text;
137 * The receipt sent to the user instead of the normal receipt text
141 public $pay_later_receipt;
144 * is partial payment enabled for this online contribution page
148 public $is_partial_payment;
151 * Initial amount label for partial payment
155 public $initial_amount_label;
158 * Initial amount help text for partial payment
162 public $initial_amount_help_text;
165 * Minimum initial amount for partial payment
169 public $min_initial_amount;
172 * if true, page will include an input text field where user can enter their own amount
176 public $is_allow_other_amount;
179 * FK to civicrm_option_value.
183 public $default_amount_id;
186 * if other amounts allowed, user can configure minimum allowed.
193 * if other amounts allowed, user can configure maximum allowed.
200 * The target goal for this page, allows people to build a goal meter
207 * Title for Thank-you page (header title tag, and display at the top of the page).
211 public $thankyou_title;
214 * text and html allowed. displayed above result on success page
218 public $thankyou_text;
221 * Text and html allowed. displayed at the bottom of the success page. Common usage is to include link(s) to other pages such as tell-a-friend, etc.
225 public $thankyou_footer;
228 * if true, receipt is automatically emailed to contact on success
232 public $is_email_receipt;
235 * FROM email name used for receipts generated by contributions to this contribution page.
239 public $receipt_from_name;
242 * FROM email address used for receipts generated by contributions to this contribution page.
246 public $receipt_from_email;
249 * comma-separated list of email addresses to cc each time a receipt is sent
256 * comma-separated list of email addresses to bcc each time a receipt is sent
263 * text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now
267 public $receipt_text;
270 * Is this property active?
277 * Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.
284 * Is this property active?
288 public $amount_block_is_active;
291 * Date and time that this page starts.
298 * Date and time that this page ends. May be NULL if no defined end date/time
305 * FK to civicrm_contact, who created this contribution page
312 * Date and time that contribution page was created.
316 public $created_date;
319 * 3 character string, value from config setting or input via user.
326 * The campaign for which we are collecting contributions with this page.
333 * Can people share the contribution page through social media?
340 * if true - billing block is required for online contribution page
344 public $is_billing_required;
349 public function __construct() {
350 $this->__table
= 'civicrm_contribution_page';
351 parent
::__construct();
355 * Returns foreign keys and entity references.
358 * [CRM_Core_Reference_Interface]
360 public static function getReferenceColumns() {
361 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
362 Civi
::$statics[__CLASS__
]['links'] = static ::createReferenceColumns(__CLASS__
);
363 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id');
364 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'created_id', 'civicrm_contact', 'id');
365 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
366 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
368 return Civi
::$statics[__CLASS__
]['links'];
372 * Returns all the column names of this table
376 public static function &fields() {
377 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
378 Civi
::$statics[__CLASS__
]['fields'] = [
381 'type' => CRM_Utils_Type
::T_INT
,
382 'title' => ts('Contribution Page ID'),
383 'description' => 'Contribution Id',
385 'table_name' => 'civicrm_contribution_page',
386 'entity' => 'ContributionPage',
387 'bao' => 'CRM_Contribute_BAO_ContributionPage',
392 'type' => CRM_Utils_Type
::T_STRING
,
393 'title' => ts('Contribution Page Title'),
394 'description' => 'Contribution Page title. For top of page display',
396 'size' => CRM_Utils_Type
::HUGE
,
397 'table_name' => 'civicrm_contribution_page',
398 'entity' => 'ContributionPage',
399 'bao' => 'CRM_Contribute_BAO_ContributionPage',
403 'name' => 'intro_text',
404 'type' => CRM_Utils_Type
::T_TEXT
,
405 'title' => ts('Contribution Page Introduction Text'),
406 'description' => 'Text and html allowed. Displayed below title.',
409 'table_name' => 'civicrm_contribution_page',
410 'entity' => 'ContributionPage',
411 'bao' => 'CRM_Contribute_BAO_ContributionPage',
414 'type' => 'RichTextEditor',
417 'financial_type_id' => [
418 'name' => 'financial_type_id',
419 'type' => CRM_Utils_Type
::T_INT
,
420 'title' => ts('Financial Type'),
421 'description' => 'default financial type assigned to contributions submitted via this page, e.g. Contribution, Campaign Contribution',
422 'table_name' => 'civicrm_contribution_page',
423 'entity' => 'ContributionPage',
424 'bao' => 'CRM_Contribute_BAO_ContributionPage',
426 'FKClassName' => 'CRM_Financial_DAO_FinancialType',
430 'pseudoconstant' => [
431 'table' => 'civicrm_financial_type',
433 'labelColumn' => 'name',
436 'payment_processor' => [
437 'name' => 'payment_processor',
438 'type' => CRM_Utils_Type
::T_STRING
,
439 'title' => ts('Payment Processor'),
440 'description' => 'Payment Processors configured for this contribution Page',
442 'size' => CRM_Utils_Type
::HUGE
,
443 'table_name' => 'civicrm_contribution_page',
444 'entity' => 'ContributionPage',
445 'bao' => 'CRM_Contribute_BAO_ContributionPage',
450 'pseudoconstant' => [
451 'table' => 'civicrm_payment_processor',
453 'labelColumn' => 'name',
456 'is_credit_card_only' => [
457 'name' => 'is_credit_card_only',
458 'type' => CRM_Utils_Type
::T_BOOLEAN
,
459 'title' => ts('Is Credit Card Only?'),
460 'description' => 'if true - processing logic must reject transaction at confirmation stage if pay method != credit card',
461 'table_name' => 'civicrm_contribution_page',
462 'entity' => 'ContributionPage',
463 'bao' => 'CRM_Contribute_BAO_ContributionPage',
467 'name' => 'is_monetary',
468 'type' => CRM_Utils_Type
::T_BOOLEAN
,
469 'title' => ts('Is Monetary'),
470 'description' => 'if true - allows real-time monetary transactions otherwise non-monetary transactions',
472 'table_name' => 'civicrm_contribution_page',
473 'entity' => 'ContributionPage',
474 'bao' => 'CRM_Contribute_BAO_ContributionPage',
478 'name' => 'is_recur',
479 'type' => CRM_Utils_Type
::T_BOOLEAN
,
480 'title' => ts('Is Recurring'),
481 'description' => 'if true - allows recurring contributions, valid only for PayPal_Standard',
482 'table_name' => 'civicrm_contribution_page',
483 'entity' => 'ContributionPage',
484 'bao' => 'CRM_Contribute_BAO_ContributionPage',
487 'is_confirm_enabled' => [
488 'name' => 'is_confirm_enabled',
489 'type' => CRM_Utils_Type
::T_BOOLEAN
,
490 'title' => ts('Confirmation Page?'),
491 'description' => 'if false, the confirm page in contribution pages gets skipped',
493 'table_name' => 'civicrm_contribution_page',
494 'entity' => 'ContributionPage',
495 'bao' => 'CRM_Contribute_BAO_ContributionPage',
498 'recur_frequency_unit' => [
499 'name' => 'recur_frequency_unit',
500 'type' => CRM_Utils_Type
::T_STRING
,
501 'title' => ts('Recurring Frequency'),
502 'description' => 'Supported recurring frequency units.',
504 'size' => CRM_Utils_Type
::HUGE
,
505 'table_name' => 'civicrm_contribution_page',
506 'entity' => 'ContributionPage',
507 'bao' => 'CRM_Contribute_BAO_ContributionPage',
509 'serialize' => self
::SERIALIZE_SEPARATOR_TRIMMED
,
513 'pseudoconstant' => [
514 'optionGroupName' => 'recur_frequency_units',
515 'keyColumn' => 'name',
516 'optionEditPath' => 'civicrm/admin/options/recur_frequency_units',
519 'is_recur_interval' => [
520 'name' => 'is_recur_interval',
521 'type' => CRM_Utils_Type
::T_BOOLEAN
,
522 'title' => ts('Support Recurring Intervals'),
523 'description' => 'if true - supports recurring intervals',
524 'table_name' => 'civicrm_contribution_page',
525 'entity' => 'ContributionPage',
526 'bao' => 'CRM_Contribute_BAO_ContributionPage',
529 'is_recur_installments' => [
530 'name' => 'is_recur_installments',
531 'type' => CRM_Utils_Type
::T_BOOLEAN
,
532 'title' => ts('Recurring Installments?'),
533 'description' => 'if true - asks user for recurring installments',
534 'table_name' => 'civicrm_contribution_page',
535 'entity' => 'ContributionPage',
536 'bao' => 'CRM_Contribute_BAO_ContributionPage',
539 'adjust_recur_start_date' => [
540 'name' => 'adjust_recur_start_date',
541 'type' => CRM_Utils_Type
::T_BOOLEAN
,
542 'title' => ts('Adjust Recurring Start Date'),
543 'description' => 'if true - user is able to adjust payment start date',
544 'table_name' => 'civicrm_contribution_page',
545 'entity' => 'ContributionPage',
546 'bao' => 'CRM_Contribute_BAO_ContributionPage',
550 'name' => 'is_pay_later',
551 'type' => CRM_Utils_Type
::T_BOOLEAN
,
552 'title' => ts('Pay Later'),
553 'description' => 'if true - allows the user to send payment directly to the org later',
554 'table_name' => 'civicrm_contribution_page',
555 'entity' => 'ContributionPage',
556 'bao' => 'CRM_Contribute_BAO_ContributionPage',
559 'pay_later_text' => [
560 'name' => 'pay_later_text',
561 'type' => CRM_Utils_Type
::T_TEXT
,
562 'title' => ts('Pay Later Text'),
563 'description' => 'The text displayed to the user in the main form',
564 'table_name' => 'civicrm_contribution_page',
565 'entity' => 'ContributionPage',
566 'bao' => 'CRM_Contribute_BAO_ContributionPage',
569 'pay_later_receipt' => [
570 'name' => 'pay_later_receipt',
571 'type' => CRM_Utils_Type
::T_TEXT
,
572 'title' => ts('Pay Later Receipt'),
573 'description' => 'The receipt sent to the user instead of the normal receipt text',
574 'table_name' => 'civicrm_contribution_page',
575 'entity' => 'ContributionPage',
576 'bao' => 'CRM_Contribute_BAO_ContributionPage',
579 'is_partial_payment' => [
580 'name' => 'is_partial_payment',
581 'type' => CRM_Utils_Type
::T_BOOLEAN
,
582 'title' => ts('Allow Partial Payment'),
583 'description' => 'is partial payment enabled for this online contribution page',
584 'table_name' => 'civicrm_contribution_page',
585 'entity' => 'ContributionPage',
586 'bao' => 'CRM_Contribute_BAO_ContributionPage',
589 'initial_amount_label' => [
590 'name' => 'initial_amount_label',
591 'type' => CRM_Utils_Type
::T_STRING
,
592 'title' => ts('Initial Amount Label'),
593 'description' => 'Initial amount label for partial payment',
595 'size' => CRM_Utils_Type
::HUGE
,
596 'table_name' => 'civicrm_contribution_page',
597 'entity' => 'ContributionPage',
598 'bao' => 'CRM_Contribute_BAO_ContributionPage',
601 'initial_amount_help_text' => [
602 'name' => 'initial_amount_help_text',
603 'type' => CRM_Utils_Type
::T_TEXT
,
604 'title' => ts('Initial Amount Help Text'),
605 'description' => 'Initial amount help text for partial payment',
606 'table_name' => 'civicrm_contribution_page',
607 'entity' => 'ContributionPage',
608 'bao' => 'CRM_Contribute_BAO_ContributionPage',
611 'min_initial_amount' => [
612 'name' => 'min_initial_amount',
613 'type' => CRM_Utils_Type
::T_MONEY
,
614 'title' => ts('Min Initial Amount'),
615 'description' => 'Minimum initial amount for partial payment',
620 'table_name' => 'civicrm_contribution_page',
621 'entity' => 'ContributionPage',
622 'bao' => 'CRM_Contribute_BAO_ContributionPage',
625 'is_allow_other_amount' => [
626 'name' => 'is_allow_other_amount',
627 'type' => CRM_Utils_Type
::T_BOOLEAN
,
628 'title' => ts('Allow Other Amounts'),
629 'description' => 'if true, page will include an input text field where user can enter their own amount',
630 'table_name' => 'civicrm_contribution_page',
631 'entity' => 'ContributionPage',
632 'bao' => 'CRM_Contribute_BAO_ContributionPage',
635 'default_amount_id' => [
636 'name' => 'default_amount_id',
637 'type' => CRM_Utils_Type
::T_INT
,
638 'title' => ts('Default Amount'),
639 'description' => 'FK to civicrm_option_value.',
640 'table_name' => 'civicrm_contribution_page',
641 'entity' => 'ContributionPage',
642 'bao' => 'CRM_Contribute_BAO_ContributionPage',
646 'name' => 'min_amount',
647 'type' => CRM_Utils_Type
::T_MONEY
,
648 'title' => ts('Minimum Amount'),
649 'description' => 'if other amounts allowed, user can configure minimum allowed.',
654 'table_name' => 'civicrm_contribution_page',
655 'entity' => 'ContributionPage',
656 'bao' => 'CRM_Contribute_BAO_ContributionPage',
660 'name' => 'max_amount',
661 'type' => CRM_Utils_Type
::T_MONEY
,
662 'title' => ts('Maximum Amount'),
663 'description' => 'if other amounts allowed, user can configure maximum allowed.',
668 'table_name' => 'civicrm_contribution_page',
669 'entity' => 'ContributionPage',
670 'bao' => 'CRM_Contribute_BAO_ContributionPage',
674 'name' => 'goal_amount',
675 'type' => CRM_Utils_Type
::T_MONEY
,
676 'title' => ts('Goal Amount'),
677 'description' => 'The target goal for this page, allows people to build a goal meter',
682 'table_name' => 'civicrm_contribution_page',
683 'entity' => 'ContributionPage',
684 'bao' => 'CRM_Contribute_BAO_ContributionPage',
687 'thankyou_title' => [
688 'name' => 'thankyou_title',
689 'type' => CRM_Utils_Type
::T_STRING
,
690 'title' => ts('Thank-you Title'),
691 'description' => 'Title for Thank-you page (header title tag, and display at the top of the page).',
693 'size' => CRM_Utils_Type
::HUGE
,
694 'table_name' => 'civicrm_contribution_page',
695 'entity' => 'ContributionPage',
696 'bao' => 'CRM_Contribute_BAO_ContributionPage',
700 'name' => 'thankyou_text',
701 'type' => CRM_Utils_Type
::T_TEXT
,
702 'title' => ts('Thank-you Text'),
703 'description' => 'text and html allowed. displayed above result on success page',
706 'table_name' => 'civicrm_contribution_page',
707 'entity' => 'ContributionPage',
708 'bao' => 'CRM_Contribute_BAO_ContributionPage',
711 'type' => 'RichTextEditor',
714 'thankyou_footer' => [
715 'name' => 'thankyou_footer',
716 'type' => CRM_Utils_Type
::T_TEXT
,
717 'title' => ts('Thank-you Footer'),
718 'description' => 'Text and html allowed. displayed at the bottom of the success page. Common usage is to include link(s) to other pages such as tell-a-friend, etc.',
721 'table_name' => 'civicrm_contribution_page',
722 'entity' => 'ContributionPage',
723 'bao' => 'CRM_Contribute_BAO_ContributionPage',
726 'type' => 'RichTextEditor',
729 'is_email_receipt' => [
730 'name' => 'is_email_receipt',
731 'type' => CRM_Utils_Type
::T_BOOLEAN
,
732 'title' => ts('Send email Receipt'),
733 'description' => 'if true, receipt is automatically emailed to contact on success',
734 'table_name' => 'civicrm_contribution_page',
735 'entity' => 'ContributionPage',
736 'bao' => 'CRM_Contribute_BAO_ContributionPage',
739 'receipt_from_name' => [
740 'name' => 'receipt_from_name',
741 'type' => CRM_Utils_Type
::T_STRING
,
742 'title' => ts('Receipt From'),
743 'description' => 'FROM email name used for receipts generated by contributions to this contribution page.',
745 'size' => CRM_Utils_Type
::HUGE
,
746 'table_name' => 'civicrm_contribution_page',
747 'entity' => 'ContributionPage',
748 'bao' => 'CRM_Contribute_BAO_ContributionPage',
751 'receipt_from_email' => [
752 'name' => 'receipt_from_email',
753 'type' => CRM_Utils_Type
::T_STRING
,
754 'title' => ts('Receipt From email'),
755 'description' => 'FROM email address used for receipts generated by contributions to this contribution page.',
757 'size' => CRM_Utils_Type
::HUGE
,
758 'table_name' => 'civicrm_contribution_page',
759 'entity' => 'ContributionPage',
760 'bao' => 'CRM_Contribute_BAO_ContributionPage',
764 'name' => 'cc_receipt',
765 'type' => CRM_Utils_Type
::T_STRING
,
766 'title' => ts('Receipt cc'),
767 'description' => 'comma-separated list of email addresses to cc each time a receipt is sent',
769 'size' => CRM_Utils_Type
::HUGE
,
770 'table_name' => 'civicrm_contribution_page',
771 'entity' => 'ContributionPage',
772 'bao' => 'CRM_Contribute_BAO_ContributionPage',
776 'name' => 'bcc_receipt',
777 'type' => CRM_Utils_Type
::T_STRING
,
778 'title' => ts('Receipt bcc'),
779 'description' => 'comma-separated list of email addresses to bcc each time a receipt is sent',
781 'size' => CRM_Utils_Type
::HUGE
,
782 'table_name' => 'civicrm_contribution_page',
783 'entity' => 'ContributionPage',
784 'bao' => 'CRM_Contribute_BAO_ContributionPage',
788 'name' => 'receipt_text',
789 'type' => CRM_Utils_Type
::T_TEXT
,
790 'title' => ts('Receipt Text'),
791 'description' => 'text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now',
794 'table_name' => 'civicrm_contribution_page',
795 'entity' => 'ContributionPage',
796 'bao' => 'CRM_Contribute_BAO_ContributionPage',
799 'type' => 'TextArea',
803 'name' => 'is_active',
804 'type' => CRM_Utils_Type
::T_BOOLEAN
,
805 'title' => ts('Is Page Active?'),
806 'description' => 'Is this property active?',
807 'table_name' => 'civicrm_contribution_page',
808 'entity' => 'ContributionPage',
809 'bao' => 'CRM_Contribute_BAO_ContributionPage',
813 'name' => 'footer_text',
814 'type' => CRM_Utils_Type
::T_TEXT
,
815 'title' => ts('Footer Text'),
816 'description' => 'Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.',
819 'table_name' => 'civicrm_contribution_page',
820 'entity' => 'ContributionPage',
821 'bao' => 'CRM_Contribute_BAO_ContributionPage',
824 'type' => 'RichTextEditor',
827 'amount_block_is_active' => [
828 'name' => 'amount_block_is_active',
829 'type' => CRM_Utils_Type
::T_BOOLEAN
,
830 'title' => ts('Is Amount Block Active?'),
831 'description' => 'Is this property active?',
833 'table_name' => 'civicrm_contribution_page',
834 'entity' => 'ContributionPage',
835 'bao' => 'CRM_Contribute_BAO_ContributionPage',
839 'name' => 'start_date',
840 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
841 'title' => ts('Contribution Page Start Date'),
842 'description' => 'Date and time that this page starts.',
843 'table_name' => 'civicrm_contribution_page',
844 'entity' => 'ContributionPage',
845 'bao' => 'CRM_Contribute_BAO_ContributionPage',
849 'name' => 'end_date',
850 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
851 'title' => ts('Contribution Page End Date'),
852 'description' => 'Date and time that this page ends. May be NULL if no defined end date/time',
853 'table_name' => 'civicrm_contribution_page',
854 'entity' => 'ContributionPage',
855 'bao' => 'CRM_Contribute_BAO_ContributionPage',
859 'name' => 'created_id',
860 'type' => CRM_Utils_Type
::T_INT
,
861 'title' => ts('Contribution Page Created By'),
862 'description' => 'FK to civicrm_contact, who created this contribution page',
863 'table_name' => 'civicrm_contribution_page',
864 'entity' => 'ContributionPage',
865 'bao' => 'CRM_Contribute_BAO_ContributionPage',
867 'FKClassName' => 'CRM_Contact_DAO_Contact',
870 'name' => 'created_date',
871 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
872 'title' => ts('Contribution Page Created Date'),
873 'description' => 'Date and time that contribution page was created.',
874 'table_name' => 'civicrm_contribution_page',
875 'entity' => 'ContributionPage',
876 'bao' => 'CRM_Contribute_BAO_ContributionPage',
880 'name' => 'currency',
881 'type' => CRM_Utils_Type
::T_STRING
,
882 'title' => ts('Contribution Page Currency'),
883 'description' => '3 character string, value from config setting or input via user.',
885 'size' => CRM_Utils_Type
::FOUR
,
887 'table_name' => 'civicrm_contribution_page',
888 'entity' => 'ContributionPage',
889 'bao' => 'CRM_Contribute_BAO_ContributionPage',
894 'pseudoconstant' => [
895 'table' => 'civicrm_currency',
896 'keyColumn' => 'name',
897 'labelColumn' => 'full_name',
898 'nameColumn' => 'name',
902 'name' => 'campaign_id',
903 'type' => CRM_Utils_Type
::T_INT
,
904 'title' => ts('Contribution Page Campaign ID'),
905 'description' => 'The campaign for which we are collecting contributions with this page.',
906 'table_name' => 'civicrm_contribution_page',
907 'entity' => 'ContributionPage',
908 'bao' => 'CRM_Contribute_BAO_ContributionPage',
910 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
911 'pseudoconstant' => [
912 'table' => 'civicrm_campaign',
914 'labelColumn' => 'title',
918 'name' => 'is_share',
919 'type' => CRM_Utils_Type
::T_BOOLEAN
,
920 'title' => ts('Is Contribution Page Shared?'),
921 'description' => 'Can people share the contribution page through social media?',
923 'table_name' => 'civicrm_contribution_page',
924 'entity' => 'ContributionPage',
925 'bao' => 'CRM_Contribute_BAO_ContributionPage',
928 'is_billing_required' => [
929 'name' => 'is_billing_required',
930 'type' => CRM_Utils_Type
::T_BOOLEAN
,
931 'title' => ts('Is billing block required'),
932 'description' => 'if true - billing block is required for online contribution page',
933 'table_name' => 'civicrm_contribution_page',
934 'entity' => 'ContributionPage',
935 'bao' => 'CRM_Contribute_BAO_ContributionPage',
939 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
941 return Civi
::$statics[__CLASS__
]['fields'];
945 * Return a mapping from field-name to the corresponding key (as used in fields()).
948 * Array(string $name => string $uniqueName).
950 public static function &fieldKeys() {
951 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
952 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
954 return Civi
::$statics[__CLASS__
]['fieldKeys'];
958 * Returns the names of this table
962 public static function getTableName() {
963 return CRM_Core_DAO
::getLocaleTableName(self
::$_tableName);
967 * Returns if this table needs to be logged
971 public function getLog() {
976 * Returns the list of fields that can be imported
978 * @param bool $prefix
982 public static function &import($prefix = FALSE) {
983 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution_page', $prefix, []);
988 * Returns the list of fields that can be exported
990 * @param bool $prefix
994 public static function &export($prefix = FALSE) {
995 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution_page', $prefix, []);
1000 * Returns the list of indices
1002 * @param bool $localize
1006 public static function indices($localize = TRUE) {
1008 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;