5 * @copyright CiviCRM LLC (c) 2004-2018
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' => ts('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' => ts('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' => ts('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' => ts('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' => ts('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' => ts('if true - processing logic must reject transaction at confirmation stage if pay method != credit card'),
462 'table_name' => 'civicrm_contribution_page',
463 'entity' => 'ContributionPage',
464 'bao' => 'CRM_Contribute_BAO_ContributionPage',
468 'name' => 'is_monetary',
469 'type' => CRM_Utils_Type
::T_BOOLEAN
,
470 'title' => ts('Is Monetary'),
471 'description' => ts('if true - allows real-time monetary transactions otherwise non-monetary transactions'),
473 'table_name' => 'civicrm_contribution_page',
474 'entity' => 'ContributionPage',
475 'bao' => 'CRM_Contribute_BAO_ContributionPage',
479 'name' => 'is_recur',
480 'type' => CRM_Utils_Type
::T_BOOLEAN
,
481 'title' => ts('Is Recurring'),
482 'description' => ts('if true - allows recurring contributions, valid only for PayPal_Standard'),
484 'table_name' => 'civicrm_contribution_page',
485 'entity' => 'ContributionPage',
486 'bao' => 'CRM_Contribute_BAO_ContributionPage',
489 'is_confirm_enabled' => [
490 'name' => 'is_confirm_enabled',
491 'type' => CRM_Utils_Type
::T_BOOLEAN
,
492 'title' => ts('Confirmation Page?'),
493 'description' => ts('if false, the confirm page in contribution pages gets skipped'),
495 'table_name' => 'civicrm_contribution_page',
496 'entity' => 'ContributionPage',
497 'bao' => 'CRM_Contribute_BAO_ContributionPage',
500 'recur_frequency_unit' => [
501 'name' => 'recur_frequency_unit',
502 'type' => CRM_Utils_Type
::T_STRING
,
503 'title' => ts('Recurring Frequency'),
504 'description' => ts('Supported recurring frequency units.'),
506 'size' => CRM_Utils_Type
::HUGE
,
507 'table_name' => 'civicrm_contribution_page',
508 'entity' => 'ContributionPage',
509 'bao' => 'CRM_Contribute_BAO_ContributionPage',
511 'serialize' => self
::SERIALIZE_SEPARATOR_TRIMMED
,
515 'pseudoconstant' => [
516 'optionGroupName' => 'recur_frequency_units',
517 'keyColumn' => 'name',
518 'optionEditPath' => 'civicrm/admin/options/recur_frequency_units',
521 'is_recur_interval' => [
522 'name' => 'is_recur_interval',
523 'type' => CRM_Utils_Type
::T_BOOLEAN
,
524 'title' => ts('Support Recurring Intervals'),
525 'description' => ts('if true - supports recurring intervals'),
527 'table_name' => 'civicrm_contribution_page',
528 'entity' => 'ContributionPage',
529 'bao' => 'CRM_Contribute_BAO_ContributionPage',
532 'is_recur_installments' => [
533 'name' => 'is_recur_installments',
534 'type' => CRM_Utils_Type
::T_BOOLEAN
,
535 'title' => ts('Recurring Installments?'),
536 'description' => ts('if true - asks user for recurring installments'),
538 'table_name' => 'civicrm_contribution_page',
539 'entity' => 'ContributionPage',
540 'bao' => 'CRM_Contribute_BAO_ContributionPage',
543 'adjust_recur_start_date' => [
544 'name' => 'adjust_recur_start_date',
545 'type' => CRM_Utils_Type
::T_BOOLEAN
,
546 'title' => ts('Adjust Recurring Start Date'),
547 'description' => ts('if true - user is able to adjust payment start date'),
549 'table_name' => 'civicrm_contribution_page',
550 'entity' => 'ContributionPage',
551 'bao' => 'CRM_Contribute_BAO_ContributionPage',
555 'name' => 'is_pay_later',
556 'type' => CRM_Utils_Type
::T_BOOLEAN
,
557 'title' => ts('Pay Later'),
558 'description' => ts('if true - allows the user to send payment directly to the org later'),
560 'table_name' => 'civicrm_contribution_page',
561 'entity' => 'ContributionPage',
562 'bao' => 'CRM_Contribute_BAO_ContributionPage',
565 'pay_later_text' => [
566 'name' => 'pay_later_text',
567 'type' => CRM_Utils_Type
::T_TEXT
,
568 'title' => ts('Pay Later Text'),
569 'description' => ts('The text displayed to the user in the main form'),
570 'table_name' => 'civicrm_contribution_page',
571 'entity' => 'ContributionPage',
572 'bao' => 'CRM_Contribute_BAO_ContributionPage',
575 'pay_later_receipt' => [
576 'name' => 'pay_later_receipt',
577 'type' => CRM_Utils_Type
::T_TEXT
,
578 'title' => ts('Pay Later Receipt'),
579 'description' => ts('The receipt sent to the user instead of the normal receipt text'),
580 'table_name' => 'civicrm_contribution_page',
581 'entity' => 'ContributionPage',
582 'bao' => 'CRM_Contribute_BAO_ContributionPage',
585 'is_partial_payment' => [
586 'name' => 'is_partial_payment',
587 'type' => CRM_Utils_Type
::T_BOOLEAN
,
588 'title' => ts('Allow Partial Payment'),
589 'description' => ts('is partial payment enabled for this online contribution page'),
591 'table_name' => 'civicrm_contribution_page',
592 'entity' => 'ContributionPage',
593 'bao' => 'CRM_Contribute_BAO_ContributionPage',
596 'initial_amount_label' => [
597 'name' => 'initial_amount_label',
598 'type' => CRM_Utils_Type
::T_STRING
,
599 'title' => ts('Initial Amount Label'),
600 'description' => ts('Initial amount label for partial payment'),
602 'size' => CRM_Utils_Type
::HUGE
,
603 'table_name' => 'civicrm_contribution_page',
604 'entity' => 'ContributionPage',
605 'bao' => 'CRM_Contribute_BAO_ContributionPage',
608 'initial_amount_help_text' => [
609 'name' => 'initial_amount_help_text',
610 'type' => CRM_Utils_Type
::T_TEXT
,
611 'title' => ts('Initial Amount Help Text'),
612 'description' => ts('Initial amount help text for partial payment'),
613 'table_name' => 'civicrm_contribution_page',
614 'entity' => 'ContributionPage',
615 'bao' => 'CRM_Contribute_BAO_ContributionPage',
618 'min_initial_amount' => [
619 'name' => 'min_initial_amount',
620 'type' => CRM_Utils_Type
::T_MONEY
,
621 'title' => ts('Min Initial Amount'),
622 'description' => ts('Minimum initial amount for partial payment'),
627 'table_name' => 'civicrm_contribution_page',
628 'entity' => 'ContributionPage',
629 'bao' => 'CRM_Contribute_BAO_ContributionPage',
632 'is_allow_other_amount' => [
633 'name' => 'is_allow_other_amount',
634 'type' => CRM_Utils_Type
::T_BOOLEAN
,
635 'title' => ts('Allow Other Amounts'),
636 'description' => ts('if true, page will include an input text field where user can enter their own amount'),
638 'table_name' => 'civicrm_contribution_page',
639 'entity' => 'ContributionPage',
640 'bao' => 'CRM_Contribute_BAO_ContributionPage',
643 'default_amount_id' => [
644 'name' => 'default_amount_id',
645 'type' => CRM_Utils_Type
::T_INT
,
646 'title' => ts('Default Amount'),
647 'description' => ts('FK to civicrm_option_value.'),
648 'table_name' => 'civicrm_contribution_page',
649 'entity' => 'ContributionPage',
650 'bao' => 'CRM_Contribute_BAO_ContributionPage',
654 'name' => 'min_amount',
655 'type' => CRM_Utils_Type
::T_MONEY
,
656 'title' => ts('Minimum Amount'),
657 'description' => ts('if other amounts allowed, user can configure minimum allowed.'),
662 'table_name' => 'civicrm_contribution_page',
663 'entity' => 'ContributionPage',
664 'bao' => 'CRM_Contribute_BAO_ContributionPage',
668 'name' => 'max_amount',
669 'type' => CRM_Utils_Type
::T_MONEY
,
670 'title' => ts('Maximum Amount'),
671 'description' => ts('if other amounts allowed, user can configure maximum allowed.'),
676 'table_name' => 'civicrm_contribution_page',
677 'entity' => 'ContributionPage',
678 'bao' => 'CRM_Contribute_BAO_ContributionPage',
682 'name' => 'goal_amount',
683 'type' => CRM_Utils_Type
::T_MONEY
,
684 'title' => ts('Goal Amount'),
685 'description' => ts('The target goal for this page, allows people to build a goal meter'),
690 'table_name' => 'civicrm_contribution_page',
691 'entity' => 'ContributionPage',
692 'bao' => 'CRM_Contribute_BAO_ContributionPage',
695 'thankyou_title' => [
696 'name' => 'thankyou_title',
697 'type' => CRM_Utils_Type
::T_STRING
,
698 'title' => ts('Thank-you Title'),
699 'description' => ts('Title for Thank-you page (header title tag, and display at the top of the page).'),
701 'size' => CRM_Utils_Type
::HUGE
,
702 'table_name' => 'civicrm_contribution_page',
703 'entity' => 'ContributionPage',
704 'bao' => 'CRM_Contribute_BAO_ContributionPage',
708 'name' => 'thankyou_text',
709 'type' => CRM_Utils_Type
::T_TEXT
,
710 'title' => ts('Thank-you Text'),
711 'description' => ts('text and html allowed. displayed above result on success page'),
714 'table_name' => 'civicrm_contribution_page',
715 'entity' => 'ContributionPage',
716 'bao' => 'CRM_Contribute_BAO_ContributionPage',
719 'type' => 'RichTextEditor',
722 'thankyou_footer' => [
723 'name' => 'thankyou_footer',
724 'type' => CRM_Utils_Type
::T_TEXT
,
725 'title' => ts('Thank-you Footer'),
726 'description' => ts('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.'),
729 'table_name' => 'civicrm_contribution_page',
730 'entity' => 'ContributionPage',
731 'bao' => 'CRM_Contribute_BAO_ContributionPage',
734 'type' => 'RichTextEditor',
737 'is_email_receipt' => [
738 'name' => 'is_email_receipt',
739 'type' => CRM_Utils_Type
::T_BOOLEAN
,
740 'title' => ts('Send email Receipt'),
741 'description' => ts('if true, receipt is automatically emailed to contact on success'),
743 'table_name' => 'civicrm_contribution_page',
744 'entity' => 'ContributionPage',
745 'bao' => 'CRM_Contribute_BAO_ContributionPage',
748 'receipt_from_name' => [
749 'name' => 'receipt_from_name',
750 'type' => CRM_Utils_Type
::T_STRING
,
751 'title' => ts('Receipt From'),
752 'description' => ts('FROM email name used for receipts generated by contributions to this contribution page.'),
754 'size' => CRM_Utils_Type
::HUGE
,
755 'table_name' => 'civicrm_contribution_page',
756 'entity' => 'ContributionPage',
757 'bao' => 'CRM_Contribute_BAO_ContributionPage',
760 'receipt_from_email' => [
761 'name' => 'receipt_from_email',
762 'type' => CRM_Utils_Type
::T_STRING
,
763 'title' => ts('Receipt From email'),
764 'description' => ts('FROM email address used for receipts generated by contributions to this contribution page.'),
766 'size' => CRM_Utils_Type
::HUGE
,
767 'table_name' => 'civicrm_contribution_page',
768 'entity' => 'ContributionPage',
769 'bao' => 'CRM_Contribute_BAO_ContributionPage',
773 'name' => 'cc_receipt',
774 'type' => CRM_Utils_Type
::T_STRING
,
775 'title' => ts('Receipt cc'),
776 'description' => ts('comma-separated list of email addresses to cc each time a receipt is sent'),
778 'size' => CRM_Utils_Type
::HUGE
,
779 'table_name' => 'civicrm_contribution_page',
780 'entity' => 'ContributionPage',
781 'bao' => 'CRM_Contribute_BAO_ContributionPage',
785 'name' => 'bcc_receipt',
786 'type' => CRM_Utils_Type
::T_STRING
,
787 'title' => ts('Receipt bcc'),
788 'description' => ts('comma-separated list of email addresses to bcc each time a receipt is sent'),
790 'size' => CRM_Utils_Type
::HUGE
,
791 'table_name' => 'civicrm_contribution_page',
792 'entity' => 'ContributionPage',
793 'bao' => 'CRM_Contribute_BAO_ContributionPage',
797 'name' => 'receipt_text',
798 'type' => CRM_Utils_Type
::T_TEXT
,
799 'title' => ts('Receipt Text'),
800 'description' => ts('text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now'),
803 'table_name' => 'civicrm_contribution_page',
804 'entity' => 'ContributionPage',
805 'bao' => 'CRM_Contribute_BAO_ContributionPage',
808 'type' => 'TextArea',
812 'name' => 'is_active',
813 'type' => CRM_Utils_Type
::T_BOOLEAN
,
814 'title' => ts('Is Page Active?'),
815 'description' => ts('Is this property active?'),
816 'table_name' => 'civicrm_contribution_page',
817 'entity' => 'ContributionPage',
818 'bao' => 'CRM_Contribute_BAO_ContributionPage',
822 'name' => 'footer_text',
823 'type' => CRM_Utils_Type
::T_TEXT
,
824 'title' => ts('Footer Text'),
825 'description' => ts('Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.'),
828 'table_name' => 'civicrm_contribution_page',
829 'entity' => 'ContributionPage',
830 'bao' => 'CRM_Contribute_BAO_ContributionPage',
833 'type' => 'RichTextEditor',
836 'amount_block_is_active' => [
837 'name' => 'amount_block_is_active',
838 'type' => CRM_Utils_Type
::T_BOOLEAN
,
839 'title' => ts('Is Amount Block Active?'),
840 'description' => ts('Is this property active?'),
842 'table_name' => 'civicrm_contribution_page',
843 'entity' => 'ContributionPage',
844 'bao' => 'CRM_Contribute_BAO_ContributionPage',
848 'name' => 'start_date',
849 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
850 'title' => ts('Contribution Page Start Date'),
851 'description' => ts('Date and time that this page starts.'),
852 'table_name' => 'civicrm_contribution_page',
853 'entity' => 'ContributionPage',
854 'bao' => 'CRM_Contribute_BAO_ContributionPage',
858 'name' => 'end_date',
859 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
860 'title' => ts('Contribution Page End Date'),
861 'description' => ts('Date and time that this page ends. May be NULL if no defined end date/time'),
862 'table_name' => 'civicrm_contribution_page',
863 'entity' => 'ContributionPage',
864 'bao' => 'CRM_Contribute_BAO_ContributionPage',
868 'name' => 'created_id',
869 'type' => CRM_Utils_Type
::T_INT
,
870 'title' => ts('Contribution Page Created By'),
871 'description' => ts('FK to civicrm_contact, who created this contribution page'),
872 'table_name' => 'civicrm_contribution_page',
873 'entity' => 'ContributionPage',
874 'bao' => 'CRM_Contribute_BAO_ContributionPage',
876 'FKClassName' => 'CRM_Contact_DAO_Contact',
879 'name' => 'created_date',
880 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
881 'title' => ts('Contribution Page Created Date'),
882 'description' => ts('Date and time that contribution page was created.'),
883 'table_name' => 'civicrm_contribution_page',
884 'entity' => 'ContributionPage',
885 'bao' => 'CRM_Contribute_BAO_ContributionPage',
889 'name' => 'currency',
890 'type' => CRM_Utils_Type
::T_STRING
,
891 'title' => ts('Contribution Page Currency'),
892 'description' => ts('3 character string, value from config setting or input via user.'),
894 'size' => CRM_Utils_Type
::FOUR
,
896 'table_name' => 'civicrm_contribution_page',
897 'entity' => 'ContributionPage',
898 'bao' => 'CRM_Contribute_BAO_ContributionPage',
903 'pseudoconstant' => [
904 'table' => 'civicrm_currency',
905 'keyColumn' => 'name',
906 'labelColumn' => 'full_name',
907 'nameColumn' => 'name',
911 'name' => 'campaign_id',
912 'type' => CRM_Utils_Type
::T_INT
,
913 'title' => ts('Contribution Page Campaign ID'),
914 'description' => ts('The campaign for which we are collecting contributions with this page.'),
915 'table_name' => 'civicrm_contribution_page',
916 'entity' => 'ContributionPage',
917 'bao' => 'CRM_Contribute_BAO_ContributionPage',
919 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
920 'pseudoconstant' => [
921 'table' => 'civicrm_campaign',
923 'labelColumn' => 'title',
927 'name' => 'is_share',
928 'type' => CRM_Utils_Type
::T_BOOLEAN
,
929 'title' => ts('Is Contribution Page Shared?'),
930 'description' => ts('Can people share the contribution page through social media?'),
932 'table_name' => 'civicrm_contribution_page',
933 'entity' => 'ContributionPage',
934 'bao' => 'CRM_Contribute_BAO_ContributionPage',
937 'is_billing_required' => [
938 'name' => 'is_billing_required',
939 'type' => CRM_Utils_Type
::T_BOOLEAN
,
940 'title' => ts('Is billing block required'),
941 'description' => ts('if true - billing block is required for online contribution page'),
943 'table_name' => 'civicrm_contribution_page',
944 'entity' => 'ContributionPage',
945 'bao' => 'CRM_Contribute_BAO_ContributionPage',
949 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
951 return Civi
::$statics[__CLASS__
]['fields'];
955 * Return a mapping from field-name to the corresponding key (as used in fields()).
958 * Array(string $name => string $uniqueName).
960 public static function &fieldKeys() {
961 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
962 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
964 return Civi
::$statics[__CLASS__
]['fieldKeys'];
968 * Returns the names of this table
972 public static function getTableName() {
973 return CRM_Core_DAO
::getLocaleTableName(self
::$_tableName);
977 * Returns if this table needs to be logged
981 public function getLog() {
986 * Returns the list of fields that can be imported
988 * @param bool $prefix
992 public static function &import($prefix = FALSE) {
993 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'contribution_page', $prefix, []);
998 * Returns the list of fields that can be exported
1000 * @param bool $prefix
1004 public static function &export($prefix = FALSE) {
1005 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'contribution_page', $prefix, []);
1010 * Returns the list of indices
1012 * @param bool $localize
1016 public static function indices($localize = TRUE) {
1018 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;