Commit | Line | Data |
---|---|---|
e501603b | 1 | <?php |
c3fc2621 | 2 | |
e501603b TO |
3 | /** |
4 | * @package CRM | |
ca5cec67 | 5 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
e501603b TO |
6 | * |
7 | * Generated from xml/schema/CRM/Contribute/ContributionPage.xml | |
8 | * DO NOT EDIT. Generated by CRM_Core_CodeGen | |
8ab43c93 | 9 | * (GenCodeChecksum:958ef76562a951e9f80b8e6f16afd6ee) |
e501603b | 10 | */ |
c3fc2621 | 11 | |
f41f0342 | 12 | /** |
c3fc2621 | 13 | * Database access object for the ContributionPage entity. |
f41f0342 | 14 | */ |
e501603b | 15 | class CRM_Contribute_DAO_ContributionPage extends CRM_Core_DAO { |
929a1c14 CW |
16 | const EXT = 'civicrm'; |
17 | const TABLE_ADDED = '1.3'; | |
d31fb4e3 | 18 | const COMPONENT = 'CiviContribute'; |
c3fc2621 | 19 | |
e501603b | 20 | /** |
f41f0342 | 21 | * Static instance to hold the table name. |
e501603b TO |
22 | * |
23 | * @var string | |
24 | */ | |
fa45b5b9 | 25 | public static $_tableName = 'civicrm_contribution_page'; |
c3fc2621 | 26 | |
8ab43c93 CW |
27 | /** |
28 | * Field to show when displaying a record. | |
29 | * | |
30 | * @var string | |
31 | */ | |
32 | public static $_labelField = 'title'; | |
33 | ||
e501603b | 34 | /** |
f41f0342 | 35 | * Should CiviCRM log any modifications to this table in the civicrm_log table. |
e501603b | 36 | * |
c3fc2621 | 37 | * @var bool |
e501603b | 38 | */ |
fa45b5b9 | 39 | public static $_log = TRUE; |
c3fc2621 | 40 | |
e501603b TO |
41 | /** |
42 | * Contribution Id | |
43 | * | |
e6ca0a57 | 44 | * @var int |
e501603b TO |
45 | */ |
46 | public $id; | |
c3fc2621 | 47 | |
e501603b TO |
48 | /** |
49 | * Contribution Page title. For top of page display | |
50 | * | |
51 | * @var string | |
52 | */ | |
53 | public $title; | |
c3fc2621 | 54 | |
e501603b TO |
55 | /** |
56 | * Text and html allowed. Displayed below title. | |
57 | * | |
58 | * @var text | |
59 | */ | |
60 | public $intro_text; | |
c3fc2621 | 61 | |
e501603b TO |
62 | /** |
63 | * default financial type assigned to contributions submitted via this page, e.g. Contribution, Campaign Contribution | |
64 | * | |
e6ca0a57 | 65 | * @var int |
e501603b TO |
66 | */ |
67 | public $financial_type_id; | |
c3fc2621 | 68 | |
e501603b TO |
69 | /** |
70 | * Payment Processors configured for this contribution Page | |
71 | * | |
72 | * @var string | |
73 | */ | |
74 | public $payment_processor; | |
c3fc2621 | 75 | |
e501603b TO |
76 | /** |
77 | * if true - processing logic must reject transaction at confirmation stage if pay method != credit card | |
78 | * | |
e6ca0a57 | 79 | * @var bool |
e501603b TO |
80 | */ |
81 | public $is_credit_card_only; | |
c3fc2621 | 82 | |
e501603b TO |
83 | /** |
84 | * if true - allows real-time monetary transactions otherwise non-monetary transactions | |
85 | * | |
e6ca0a57 | 86 | * @var bool |
e501603b TO |
87 | */ |
88 | public $is_monetary; | |
c3fc2621 | 89 | |
e501603b TO |
90 | /** |
91 | * if true - allows recurring contributions, valid only for PayPal_Standard | |
92 | * | |
e6ca0a57 | 93 | * @var bool |
e501603b TO |
94 | */ |
95 | public $is_recur; | |
c3fc2621 | 96 | |
e501603b TO |
97 | /** |
98 | * if false, the confirm page in contribution pages gets skipped | |
99 | * | |
e6ca0a57 | 100 | * @var bool |
e501603b TO |
101 | */ |
102 | public $is_confirm_enabled; | |
c3fc2621 | 103 | |
e501603b TO |
104 | /** |
105 | * Supported recurring frequency units. | |
106 | * | |
107 | * @var string | |
108 | */ | |
109 | public $recur_frequency_unit; | |
c3fc2621 | 110 | |
e501603b TO |
111 | /** |
112 | * if true - supports recurring intervals | |
113 | * | |
e6ca0a57 | 114 | * @var bool |
e501603b TO |
115 | */ |
116 | public $is_recur_interval; | |
c3fc2621 | 117 | |
e501603b TO |
118 | /** |
119 | * if true - asks user for recurring installments | |
120 | * | |
e6ca0a57 | 121 | * @var bool |
e501603b TO |
122 | */ |
123 | public $is_recur_installments; | |
c3fc2621 | 124 | |
e501603b TO |
125 | /** |
126 | * if true - user is able to adjust payment start date | |
127 | * | |
e6ca0a57 | 128 | * @var bool |
e501603b TO |
129 | */ |
130 | public $adjust_recur_start_date; | |
c3fc2621 | 131 | |
e501603b TO |
132 | /** |
133 | * if true - allows the user to send payment directly to the org later | |
134 | * | |
e6ca0a57 | 135 | * @var bool |
e501603b TO |
136 | */ |
137 | public $is_pay_later; | |
c3fc2621 | 138 | |
e501603b TO |
139 | /** |
140 | * The text displayed to the user in the main form | |
141 | * | |
142 | * @var text | |
143 | */ | |
144 | public $pay_later_text; | |
c3fc2621 | 145 | |
e501603b TO |
146 | /** |
147 | * The receipt sent to the user instead of the normal receipt text | |
148 | * | |
149 | * @var text | |
150 | */ | |
151 | public $pay_later_receipt; | |
c3fc2621 | 152 | |
e501603b TO |
153 | /** |
154 | * is partial payment enabled for this online contribution page | |
155 | * | |
e6ca0a57 | 156 | * @var bool |
e501603b TO |
157 | */ |
158 | public $is_partial_payment; | |
c3fc2621 | 159 | |
e501603b TO |
160 | /** |
161 | * Initial amount label for partial payment | |
162 | * | |
163 | * @var string | |
164 | */ | |
165 | public $initial_amount_label; | |
c3fc2621 | 166 | |
e501603b TO |
167 | /** |
168 | * Initial amount help text for partial payment | |
169 | * | |
170 | * @var text | |
171 | */ | |
172 | public $initial_amount_help_text; | |
c3fc2621 | 173 | |
e501603b TO |
174 | /** |
175 | * Minimum initial amount for partial payment | |
176 | * | |
177 | * @var float | |
178 | */ | |
179 | public $min_initial_amount; | |
c3fc2621 | 180 | |
e501603b TO |
181 | /** |
182 | * if true, page will include an input text field where user can enter their own amount | |
183 | * | |
e6ca0a57 | 184 | * @var bool |
e501603b TO |
185 | */ |
186 | public $is_allow_other_amount; | |
c3fc2621 | 187 | |
e501603b TO |
188 | /** |
189 | * FK to civicrm_option_value. | |
190 | * | |
e6ca0a57 | 191 | * @var int |
e501603b TO |
192 | */ |
193 | public $default_amount_id; | |
c3fc2621 | 194 | |
e501603b TO |
195 | /** |
196 | * if other amounts allowed, user can configure minimum allowed. | |
197 | * | |
198 | * @var float | |
199 | */ | |
200 | public $min_amount; | |
c3fc2621 | 201 | |
e501603b TO |
202 | /** |
203 | * if other amounts allowed, user can configure maximum allowed. | |
204 | * | |
205 | * @var float | |
206 | */ | |
207 | public $max_amount; | |
c3fc2621 | 208 | |
e501603b TO |
209 | /** |
210 | * The target goal for this page, allows people to build a goal meter | |
211 | * | |
212 | * @var float | |
213 | */ | |
214 | public $goal_amount; | |
c3fc2621 | 215 | |
e501603b TO |
216 | /** |
217 | * Title for Thank-you page (header title tag, and display at the top of the page). | |
218 | * | |
219 | * @var string | |
220 | */ | |
221 | public $thankyou_title; | |
c3fc2621 | 222 | |
e501603b TO |
223 | /** |
224 | * text and html allowed. displayed above result on success page | |
225 | * | |
226 | * @var text | |
227 | */ | |
228 | public $thankyou_text; | |
c3fc2621 | 229 | |
e501603b TO |
230 | /** |
231 | * 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. | |
232 | * | |
233 | * @var text | |
234 | */ | |
235 | public $thankyou_footer; | |
c3fc2621 | 236 | |
e501603b TO |
237 | /** |
238 | * if true, receipt is automatically emailed to contact on success | |
239 | * | |
e6ca0a57 | 240 | * @var bool |
e501603b TO |
241 | */ |
242 | public $is_email_receipt; | |
c3fc2621 | 243 | |
e501603b TO |
244 | /** |
245 | * FROM email name used for receipts generated by contributions to this contribution page. | |
246 | * | |
247 | * @var string | |
248 | */ | |
249 | public $receipt_from_name; | |
c3fc2621 | 250 | |
e501603b TO |
251 | /** |
252 | * FROM email address used for receipts generated by contributions to this contribution page. | |
253 | * | |
254 | * @var string | |
255 | */ | |
256 | public $receipt_from_email; | |
c3fc2621 | 257 | |
e501603b TO |
258 | /** |
259 | * comma-separated list of email addresses to cc each time a receipt is sent | |
260 | * | |
261 | * @var string | |
262 | */ | |
263 | public $cc_receipt; | |
c3fc2621 | 264 | |
e501603b TO |
265 | /** |
266 | * comma-separated list of email addresses to bcc each time a receipt is sent | |
267 | * | |
268 | * @var string | |
269 | */ | |
270 | public $bcc_receipt; | |
c3fc2621 | 271 | |
e501603b TO |
272 | /** |
273 | * text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now | |
274 | * | |
275 | * @var text | |
276 | */ | |
277 | public $receipt_text; | |
c3fc2621 | 278 | |
e501603b TO |
279 | /** |
280 | * Is this property active? | |
281 | * | |
e6ca0a57 | 282 | * @var bool |
e501603b TO |
283 | */ |
284 | public $is_active; | |
c3fc2621 | 285 | |
e501603b TO |
286 | /** |
287 | * Text and html allowed. Displayed at the bottom of the first page of the contribution wizard. | |
288 | * | |
289 | * @var text | |
290 | */ | |
291 | public $footer_text; | |
c3fc2621 | 292 | |
e501603b TO |
293 | /** |
294 | * Is this property active? | |
295 | * | |
e6ca0a57 | 296 | * @var bool |
e501603b TO |
297 | */ |
298 | public $amount_block_is_active; | |
c3fc2621 | 299 | |
e501603b TO |
300 | /** |
301 | * Date and time that this page starts. | |
302 | * | |
303 | * @var datetime | |
304 | */ | |
305 | public $start_date; | |
c3fc2621 | 306 | |
e501603b TO |
307 | /** |
308 | * Date and time that this page ends. May be NULL if no defined end date/time | |
309 | * | |
310 | * @var datetime | |
311 | */ | |
312 | public $end_date; | |
c3fc2621 | 313 | |
e501603b TO |
314 | /** |
315 | * FK to civicrm_contact, who created this contribution page | |
316 | * | |
e6ca0a57 | 317 | * @var int |
e501603b TO |
318 | */ |
319 | public $created_id; | |
c3fc2621 | 320 | |
e501603b TO |
321 | /** |
322 | * Date and time that contribution page was created. | |
323 | * | |
324 | * @var datetime | |
325 | */ | |
326 | public $created_date; | |
c3fc2621 | 327 | |
e501603b TO |
328 | /** |
329 | * 3 character string, value from config setting or input via user. | |
330 | * | |
331 | * @var string | |
332 | */ | |
333 | public $currency; | |
c3fc2621 | 334 | |
e501603b TO |
335 | /** |
336 | * The campaign for which we are collecting contributions with this page. | |
337 | * | |
e6ca0a57 | 338 | * @var int |
e501603b TO |
339 | */ |
340 | public $campaign_id; | |
c3fc2621 | 341 | |
e501603b TO |
342 | /** |
343 | * Can people share the contribution page through social media? | |
344 | * | |
e6ca0a57 | 345 | * @var bool |
e501603b TO |
346 | */ |
347 | public $is_share; | |
c3fc2621 | 348 | |
e501603b TO |
349 | /** |
350 | * if true - billing block is required for online contribution page | |
351 | * | |
e6ca0a57 | 352 | * @var bool |
e501603b TO |
353 | */ |
354 | public $is_billing_required; | |
c3fc2621 | 355 | |
6489e3de SL |
356 | /** |
357 | * Contribution Page Public title | |
358 | * | |
359 | * @var string | |
360 | */ | |
361 | public $frontend_title; | |
362 | ||
e501603b | 363 | /** |
f41f0342 | 364 | * Class constructor. |
e501603b | 365 | */ |
c3fc2621 | 366 | public function __construct() { |
e501603b TO |
367 | $this->__table = 'civicrm_contribution_page'; |
368 | parent::__construct(); | |
369 | } | |
c3fc2621 | 370 | |
449c4e6b CW |
371 | /** |
372 | * Returns localized title of this entity. | |
7b66c3b5 AH |
373 | * |
374 | * @param bool $plural | |
375 | * Whether to return the plural version of the title. | |
449c4e6b | 376 | */ |
7b66c3b5 AH |
377 | public static function getEntityTitle($plural = FALSE) { |
378 | return $plural ? ts('Contribution Pages') : ts('Contribution Page'); | |
449c4e6b CW |
379 | } |
380 | ||
e501603b | 381 | /** |
f41f0342 | 382 | * Returns foreign keys and entity references. |
e501603b TO |
383 | * |
384 | * @return array | |
385 | * [CRM_Core_Reference_Interface] | |
386 | */ | |
c3fc2621 | 387 | public static function getReferenceColumns() { |
346aaaba | 388 | if (!isset(Civi::$statics[__CLASS__]['links'])) { |
fa45b5b9 | 389 | Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); |
c3fc2621 CW |
390 | Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'financial_type_id', 'civicrm_financial_type', 'id'); |
391 | Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id'); | |
392 | Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id'); | |
346aaaba | 393 | CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); |
e501603b | 394 | } |
346aaaba | 395 | return Civi::$statics[__CLASS__]['links']; |
e501603b | 396 | } |
c3fc2621 | 397 | |
e501603b TO |
398 | /** |
399 | * Returns all the column names of this table | |
400 | * | |
401 | * @return array | |
402 | */ | |
c3fc2621 | 403 | public static function &fields() { |
346aaaba | 404 | if (!isset(Civi::$statics[__CLASS__]['fields'])) { |
c3fc2621 CW |
405 | Civi::$statics[__CLASS__]['fields'] = [ |
406 | 'id' => [ | |
e501603b TO |
407 | 'name' => 'id', |
408 | 'type' => CRM_Utils_Type::T_INT, | |
c3fc2621 | 409 | 'title' => ts('Contribution Page ID'), |
215b423e | 410 | 'description' => ts('Contribution Id'), |
c3fc2621 | 411 | 'required' => TRUE, |
a36434b9 | 412 | 'where' => 'civicrm_contribution_page.id', |
522a26c9 | 413 | 'table_name' => 'civicrm_contribution_page', |
414 | 'entity' => 'ContributionPage', | |
415 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 416 | 'localizable' => 0, |
a9d0587b | 417 | 'add' => '1.3', |
c3fc2621 CW |
418 | ], |
419 | 'title' => [ | |
e501603b TO |
420 | 'name' => 'title', |
421 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 422 | 'title' => ts('Contribution Page Title'), |
215b423e | 423 | 'description' => ts('Contribution Page title. For top of page display'), |
e501603b TO |
424 | 'maxlength' => 255, |
425 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 426 | 'where' => 'civicrm_contribution_page.title', |
522a26c9 | 427 | 'table_name' => 'civicrm_contribution_page', |
428 | 'entity' => 'ContributionPage', | |
429 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 430 | 'localizable' => 1, |
a9d0587b | 431 | 'add' => '1.3', |
c3fc2621 CW |
432 | ], |
433 | 'intro_text' => [ | |
e501603b TO |
434 | 'name' => 'intro_text', |
435 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 436 | 'title' => ts('Contribution Page Introduction Text'), |
215b423e | 437 | 'description' => ts('Text and html allowed. Displayed below title.'), |
e501603b TO |
438 | 'rows' => 6, |
439 | 'cols' => 50, | |
a36434b9 | 440 | 'where' => 'civicrm_contribution_page.intro_text', |
522a26c9 | 441 | 'table_name' => 'civicrm_contribution_page', |
442 | 'entity' => 'ContributionPage', | |
443 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 444 | 'localizable' => 1, |
c3fc2621 | 445 | 'html' => [ |
e501603b | 446 | 'type' => 'RichTextEditor', |
c3fc2621 | 447 | ], |
a9d0587b | 448 | 'add' => '1.3', |
c3fc2621 CW |
449 | ], |
450 | 'financial_type_id' => [ | |
e501603b TO |
451 | 'name' => 'financial_type_id', |
452 | 'type' => CRM_Utils_Type::T_INT, | |
c3fc2621 | 453 | 'title' => ts('Financial Type'), |
215b423e | 454 | 'description' => ts('default financial type assigned to contributions submitted via this page, e.g. Contribution, Campaign Contribution'), |
a36434b9 | 455 | 'where' => 'civicrm_contribution_page.financial_type_id', |
522a26c9 | 456 | 'table_name' => 'civicrm_contribution_page', |
457 | 'entity' => 'ContributionPage', | |
458 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 459 | 'localizable' => 0, |
e501603b | 460 | 'FKClassName' => 'CRM_Financial_DAO_FinancialType', |
c3fc2621 | 461 | 'html' => [ |
e501603b | 462 | 'type' => 'Select', |
c3fc2621 CW |
463 | ], |
464 | 'pseudoconstant' => [ | |
e501603b TO |
465 | 'table' => 'civicrm_financial_type', |
466 | 'keyColumn' => 'id', | |
467 | 'labelColumn' => 'name', | |
e6ca0a57 | 468 | ], |
a9d0587b | 469 | 'add' => '4.3', |
c3fc2621 CW |
470 | ], |
471 | 'payment_processor' => [ | |
e501603b TO |
472 | 'name' => 'payment_processor', |
473 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 474 | 'title' => ts('Payment Processor'), |
215b423e | 475 | 'description' => ts('Payment Processors configured for this contribution Page'), |
e501603b TO |
476 | 'maxlength' => 128, |
477 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 478 | 'where' => 'civicrm_contribution_page.payment_processor', |
522a26c9 | 479 | 'table_name' => 'civicrm_contribution_page', |
480 | 'entity' => 'ContributionPage', | |
481 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 482 | 'localizable' => 0, |
476627e4 | 483 | 'serialize' => self::SERIALIZE_SEPARATOR_TRIMMED, |
c3fc2621 | 484 | 'html' => [ |
e501603b | 485 | 'type' => 'Select', |
c3fc2621 CW |
486 | ], |
487 | 'pseudoconstant' => [ | |
e501603b TO |
488 | 'table' => 'civicrm_payment_processor', |
489 | 'keyColumn' => 'id', | |
490 | 'labelColumn' => 'name', | |
e6ca0a57 | 491 | ], |
a9d0587b | 492 | 'add' => '1.8', |
c3fc2621 CW |
493 | ], |
494 | 'is_credit_card_only' => [ | |
e501603b TO |
495 | 'name' => 'is_credit_card_only', |
496 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 497 | 'title' => ts('Is Credit Card Only?'), |
215b423e | 498 | 'description' => ts('if true - processing logic must reject transaction at confirmation stage if pay method != credit card'), |
a36434b9 | 499 | 'where' => 'civicrm_contribution_page.is_credit_card_only', |
45a83e42 | 500 | 'default' => '0', |
522a26c9 | 501 | 'table_name' => 'civicrm_contribution_page', |
502 | 'entity' => 'ContributionPage', | |
503 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 504 | 'localizable' => 0, |
a9d0587b | 505 | 'add' => '1.3', |
c3fc2621 CW |
506 | ], |
507 | 'is_monetary' => [ | |
e501603b TO |
508 | 'name' => 'is_monetary', |
509 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 510 | 'title' => ts('Is Monetary'), |
215b423e | 511 | 'description' => ts('if true - allows real-time monetary transactions otherwise non-monetary transactions'), |
a36434b9 | 512 | 'where' => 'civicrm_contribution_page.is_monetary', |
e501603b | 513 | 'default' => '1', |
522a26c9 | 514 | 'table_name' => 'civicrm_contribution_page', |
515 | 'entity' => 'ContributionPage', | |
516 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 517 | 'localizable' => 0, |
a9d0587b | 518 | 'add' => '1.6', |
c3fc2621 CW |
519 | ], |
520 | 'is_recur' => [ | |
e501603b TO |
521 | 'name' => 'is_recur', |
522 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 523 | 'title' => ts('Is Recurring'), |
215b423e | 524 | 'description' => ts('if true - allows recurring contributions, valid only for PayPal_Standard'), |
a36434b9 | 525 | 'where' => 'civicrm_contribution_page.is_recur', |
45a83e42 | 526 | 'default' => '0', |
522a26c9 | 527 | 'table_name' => 'civicrm_contribution_page', |
528 | 'entity' => 'ContributionPage', | |
529 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 530 | 'localizable' => 0, |
a9d0587b | 531 | 'add' => '1.6', |
c3fc2621 CW |
532 | ], |
533 | 'is_confirm_enabled' => [ | |
e501603b TO |
534 | 'name' => 'is_confirm_enabled', |
535 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 536 | 'title' => ts('Confirmation Page?'), |
215b423e | 537 | 'description' => ts('if false, the confirm page in contribution pages gets skipped'), |
a36434b9 | 538 | 'where' => 'civicrm_contribution_page.is_confirm_enabled', |
e501603b | 539 | 'default' => '1', |
522a26c9 | 540 | 'table_name' => 'civicrm_contribution_page', |
541 | 'entity' => 'ContributionPage', | |
542 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 543 | 'localizable' => 0, |
a9d0587b | 544 | 'add' => '4.2', |
c3fc2621 CW |
545 | ], |
546 | 'recur_frequency_unit' => [ | |
e501603b TO |
547 | 'name' => 'recur_frequency_unit', |
548 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 549 | 'title' => ts('Recurring Frequency'), |
215b423e | 550 | 'description' => ts('Supported recurring frequency units.'), |
e501603b TO |
551 | 'maxlength' => 128, |
552 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 553 | 'where' => 'civicrm_contribution_page.recur_frequency_unit', |
522a26c9 | 554 | 'table_name' => 'civicrm_contribution_page', |
555 | 'entity' => 'ContributionPage', | |
556 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 557 | 'localizable' => 0, |
2a5c9b4d | 558 | 'serialize' => self::SERIALIZE_SEPARATOR_TRIMMED, |
c3fc2621 | 559 | 'html' => [ |
2a5c9b4d | 560 | 'type' => 'Select', |
c3fc2621 CW |
561 | ], |
562 | 'pseudoconstant' => [ | |
2a5c9b4d CW |
563 | 'optionGroupName' => 'recur_frequency_units', |
564 | 'keyColumn' => 'name', | |
565 | 'optionEditPath' => 'civicrm/admin/options/recur_frequency_units', | |
e6ca0a57 | 566 | ], |
a9d0587b | 567 | 'add' => '2.1', |
c3fc2621 CW |
568 | ], |
569 | 'is_recur_interval' => [ | |
e501603b TO |
570 | 'name' => 'is_recur_interval', |
571 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 572 | 'title' => ts('Support Recurring Intervals'), |
215b423e | 573 | 'description' => ts('if true - supports recurring intervals'), |
a36434b9 | 574 | 'where' => 'civicrm_contribution_page.is_recur_interval', |
45a83e42 | 575 | 'default' => '0', |
522a26c9 | 576 | 'table_name' => 'civicrm_contribution_page', |
577 | 'entity' => 'ContributionPage', | |
578 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 579 | 'localizable' => 0, |
a9d0587b | 580 | 'add' => '2.1', |
c3fc2621 CW |
581 | ], |
582 | 'is_recur_installments' => [ | |
e501603b TO |
583 | 'name' => 'is_recur_installments', |
584 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 585 | 'title' => ts('Recurring Installments?'), |
215b423e | 586 | 'description' => ts('if true - asks user for recurring installments'), |
a36434b9 | 587 | 'where' => 'civicrm_contribution_page.is_recur_installments', |
45a83e42 | 588 | 'default' => '0', |
522a26c9 | 589 | 'table_name' => 'civicrm_contribution_page', |
590 | 'entity' => 'ContributionPage', | |
591 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 592 | 'localizable' => 0, |
a9d0587b | 593 | 'add' => '4.3', |
c3fc2621 CW |
594 | ], |
595 | 'adjust_recur_start_date' => [ | |
e501603b TO |
596 | 'name' => 'adjust_recur_start_date', |
597 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 598 | 'title' => ts('Adjust Recurring Start Date'), |
215b423e | 599 | 'description' => ts('if true - user is able to adjust payment start date'), |
a36434b9 | 600 | 'where' => 'civicrm_contribution_page.adjust_recur_start_date', |
45a83e42 | 601 | 'default' => '0', |
522a26c9 | 602 | 'table_name' => 'civicrm_contribution_page', |
603 | 'entity' => 'ContributionPage', | |
604 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 605 | 'localizable' => 0, |
a9d0587b | 606 | 'add' => '4.7', |
c3fc2621 CW |
607 | ], |
608 | 'is_pay_later' => [ | |
e501603b TO |
609 | 'name' => 'is_pay_later', |
610 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 611 | 'title' => ts('Pay Later'), |
215b423e | 612 | 'description' => ts('if true - allows the user to send payment directly to the org later'), |
a36434b9 | 613 | 'where' => 'civicrm_contribution_page.is_pay_later', |
45a83e42 | 614 | 'default' => '0', |
522a26c9 | 615 | 'table_name' => 'civicrm_contribution_page', |
616 | 'entity' => 'ContributionPage', | |
617 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 618 | 'localizable' => 0, |
a9d0587b | 619 | 'add' => '2.0', |
c3fc2621 CW |
620 | ], |
621 | 'pay_later_text' => [ | |
e501603b TO |
622 | 'name' => 'pay_later_text', |
623 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 624 | 'title' => ts('Pay Later Text'), |
215b423e | 625 | 'description' => ts('The text displayed to the user in the main form'), |
a36434b9 | 626 | 'where' => 'civicrm_contribution_page.pay_later_text', |
522a26c9 | 627 | 'table_name' => 'civicrm_contribution_page', |
628 | 'entity' => 'ContributionPage', | |
629 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 630 | 'localizable' => 1, |
a9d0587b | 631 | 'add' => '2.0', |
c3fc2621 CW |
632 | ], |
633 | 'pay_later_receipt' => [ | |
e501603b TO |
634 | 'name' => 'pay_later_receipt', |
635 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 636 | 'title' => ts('Pay Later Receipt'), |
215b423e | 637 | 'description' => ts('The receipt sent to the user instead of the normal receipt text'), |
a36434b9 | 638 | 'where' => 'civicrm_contribution_page.pay_later_receipt', |
522a26c9 | 639 | 'table_name' => 'civicrm_contribution_page', |
640 | 'entity' => 'ContributionPage', | |
641 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 642 | 'localizable' => 1, |
a9d0587b | 643 | 'add' => '2.0', |
c3fc2621 CW |
644 | ], |
645 | 'is_partial_payment' => [ | |
e501603b TO |
646 | 'name' => 'is_partial_payment', |
647 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 648 | 'title' => ts('Allow Partial Payment'), |
215b423e | 649 | 'description' => ts('is partial payment enabled for this online contribution page'), |
a36434b9 | 650 | 'where' => 'civicrm_contribution_page.is_partial_payment', |
45a83e42 | 651 | 'default' => '0', |
522a26c9 | 652 | 'table_name' => 'civicrm_contribution_page', |
653 | 'entity' => 'ContributionPage', | |
654 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 655 | 'localizable' => 0, |
a9d0587b | 656 | 'add' => '4.3', |
c3fc2621 CW |
657 | ], |
658 | 'initial_amount_label' => [ | |
e501603b TO |
659 | 'name' => 'initial_amount_label', |
660 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 661 | 'title' => ts('Initial Amount Label'), |
215b423e | 662 | 'description' => ts('Initial amount label for partial payment'), |
e501603b TO |
663 | 'maxlength' => 255, |
664 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 665 | 'where' => 'civicrm_contribution_page.initial_amount_label', |
522a26c9 | 666 | 'table_name' => 'civicrm_contribution_page', |
667 | 'entity' => 'ContributionPage', | |
668 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 669 | 'localizable' => 1, |
a9d0587b | 670 | 'add' => '4.3', |
c3fc2621 CW |
671 | ], |
672 | 'initial_amount_help_text' => [ | |
e501603b TO |
673 | 'name' => 'initial_amount_help_text', |
674 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 675 | 'title' => ts('Initial Amount Help Text'), |
215b423e | 676 | 'description' => ts('Initial amount help text for partial payment'), |
a36434b9 | 677 | 'where' => 'civicrm_contribution_page.initial_amount_help_text', |
522a26c9 | 678 | 'table_name' => 'civicrm_contribution_page', |
679 | 'entity' => 'ContributionPage', | |
680 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 681 | 'localizable' => 1, |
a9d0587b | 682 | 'add' => '4.3', |
c3fc2621 CW |
683 | ], |
684 | 'min_initial_amount' => [ | |
e501603b TO |
685 | 'name' => 'min_initial_amount', |
686 | 'type' => CRM_Utils_Type::T_MONEY, | |
c3fc2621 | 687 | 'title' => ts('Min Initial Amount'), |
215b423e | 688 | 'description' => ts('Minimum initial amount for partial payment'), |
c3fc2621 | 689 | 'precision' => [ |
e501603b | 690 | 20, |
fb607354 | 691 | 2, |
c3fc2621 | 692 | ], |
a36434b9 | 693 | 'where' => 'civicrm_contribution_page.min_initial_amount', |
522a26c9 | 694 | 'table_name' => 'civicrm_contribution_page', |
695 | 'entity' => 'ContributionPage', | |
696 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 697 | 'localizable' => 0, |
a9d0587b | 698 | 'add' => '4.3', |
c3fc2621 CW |
699 | ], |
700 | 'is_allow_other_amount' => [ | |
e501603b TO |
701 | 'name' => 'is_allow_other_amount', |
702 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 703 | 'title' => ts('Allow Other Amounts'), |
215b423e | 704 | 'description' => ts('if true, page will include an input text field where user can enter their own amount'), |
a36434b9 | 705 | 'where' => 'civicrm_contribution_page.is_allow_other_amount', |
45a83e42 | 706 | 'default' => '0', |
522a26c9 | 707 | 'table_name' => 'civicrm_contribution_page', |
708 | 'entity' => 'ContributionPage', | |
709 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 710 | 'localizable' => 0, |
a9d0587b | 711 | 'add' => '1.3', |
c3fc2621 CW |
712 | ], |
713 | 'default_amount_id' => [ | |
e501603b TO |
714 | 'name' => 'default_amount_id', |
715 | 'type' => CRM_Utils_Type::T_INT, | |
c3fc2621 | 716 | 'title' => ts('Default Amount'), |
215b423e | 717 | 'description' => ts('FK to civicrm_option_value.'), |
a36434b9 | 718 | 'where' => 'civicrm_contribution_page.default_amount_id', |
522a26c9 | 719 | 'table_name' => 'civicrm_contribution_page', |
720 | 'entity' => 'ContributionPage', | |
721 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 722 | 'localizable' => 0, |
a9d0587b | 723 | 'add' => '1.7', |
c3fc2621 CW |
724 | ], |
725 | 'min_amount' => [ | |
e501603b TO |
726 | 'name' => 'min_amount', |
727 | 'type' => CRM_Utils_Type::T_MONEY, | |
c3fc2621 | 728 | 'title' => ts('Minimum Amount'), |
215b423e | 729 | 'description' => ts('if other amounts allowed, user can configure minimum allowed.'), |
c3fc2621 | 730 | 'precision' => [ |
e501603b | 731 | 20, |
fb607354 | 732 | 2, |
c3fc2621 | 733 | ], |
a36434b9 | 734 | 'where' => 'civicrm_contribution_page.min_amount', |
522a26c9 | 735 | 'table_name' => 'civicrm_contribution_page', |
736 | 'entity' => 'ContributionPage', | |
737 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 738 | 'localizable' => 0, |
a9d0587b | 739 | 'add' => '1.3', |
c3fc2621 CW |
740 | ], |
741 | 'max_amount' => [ | |
e501603b TO |
742 | 'name' => 'max_amount', |
743 | 'type' => CRM_Utils_Type::T_MONEY, | |
c3fc2621 | 744 | 'title' => ts('Maximum Amount'), |
215b423e | 745 | 'description' => ts('if other amounts allowed, user can configure maximum allowed.'), |
c3fc2621 | 746 | 'precision' => [ |
e501603b | 747 | 20, |
fb607354 | 748 | 2, |
c3fc2621 | 749 | ], |
a36434b9 | 750 | 'where' => 'civicrm_contribution_page.max_amount', |
522a26c9 | 751 | 'table_name' => 'civicrm_contribution_page', |
752 | 'entity' => 'ContributionPage', | |
753 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 754 | 'localizable' => 0, |
a9d0587b | 755 | 'add' => '1.3', |
c3fc2621 CW |
756 | ], |
757 | 'goal_amount' => [ | |
e501603b TO |
758 | 'name' => 'goal_amount', |
759 | 'type' => CRM_Utils_Type::T_MONEY, | |
c3fc2621 | 760 | 'title' => ts('Goal Amount'), |
215b423e | 761 | 'description' => ts('The target goal for this page, allows people to build a goal meter'), |
c3fc2621 | 762 | 'precision' => [ |
e501603b | 763 | 20, |
fb607354 | 764 | 2, |
c3fc2621 | 765 | ], |
a36434b9 | 766 | 'where' => 'civicrm_contribution_page.goal_amount', |
522a26c9 | 767 | 'table_name' => 'civicrm_contribution_page', |
768 | 'entity' => 'ContributionPage', | |
769 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 770 | 'localizable' => 0, |
a9d0587b | 771 | 'add' => '1.5', |
c3fc2621 CW |
772 | ], |
773 | 'thankyou_title' => [ | |
e501603b TO |
774 | 'name' => 'thankyou_title', |
775 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 776 | 'title' => ts('Thank-you Title'), |
215b423e | 777 | 'description' => ts('Title for Thank-you page (header title tag, and display at the top of the page).'), |
e501603b TO |
778 | 'maxlength' => 255, |
779 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 780 | 'where' => 'civicrm_contribution_page.thankyou_title', |
522a26c9 | 781 | 'table_name' => 'civicrm_contribution_page', |
782 | 'entity' => 'ContributionPage', | |
783 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 784 | 'localizable' => 1, |
a9d0587b | 785 | 'add' => '1.3', |
c3fc2621 CW |
786 | ], |
787 | 'thankyou_text' => [ | |
e501603b TO |
788 | 'name' => 'thankyou_text', |
789 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 790 | 'title' => ts('Thank-you Text'), |
215b423e | 791 | 'description' => ts('text and html allowed. displayed above result on success page'), |
e501603b TO |
792 | 'rows' => 8, |
793 | 'cols' => 60, | |
a36434b9 | 794 | 'where' => 'civicrm_contribution_page.thankyou_text', |
522a26c9 | 795 | 'table_name' => 'civicrm_contribution_page', |
796 | 'entity' => 'ContributionPage', | |
797 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 798 | 'localizable' => 1, |
c3fc2621 | 799 | 'html' => [ |
e501603b | 800 | 'type' => 'RichTextEditor', |
c3fc2621 | 801 | ], |
a9d0587b | 802 | 'add' => '1.3', |
c3fc2621 CW |
803 | ], |
804 | 'thankyou_footer' => [ | |
e501603b TO |
805 | 'name' => 'thankyou_footer', |
806 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 807 | 'title' => ts('Thank-you Footer'), |
215b423e | 808 | '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.'), |
e501603b TO |
809 | 'rows' => 8, |
810 | 'cols' => 60, | |
a36434b9 | 811 | 'where' => 'civicrm_contribution_page.thankyou_footer', |
522a26c9 | 812 | 'table_name' => 'civicrm_contribution_page', |
813 | 'entity' => 'ContributionPage', | |
814 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 815 | 'localizable' => 1, |
c3fc2621 | 816 | 'html' => [ |
e501603b | 817 | 'type' => 'RichTextEditor', |
c3fc2621 | 818 | ], |
a9d0587b | 819 | 'add' => '1.3', |
c3fc2621 CW |
820 | ], |
821 | 'is_email_receipt' => [ | |
e501603b TO |
822 | 'name' => 'is_email_receipt', |
823 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 824 | 'title' => ts('Send email Receipt'), |
215b423e | 825 | 'description' => ts('if true, receipt is automatically emailed to contact on success'), |
a36434b9 | 826 | 'where' => 'civicrm_contribution_page.is_email_receipt', |
45a83e42 | 827 | 'default' => '0', |
522a26c9 | 828 | 'table_name' => 'civicrm_contribution_page', |
829 | 'entity' => 'ContributionPage', | |
830 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 831 | 'localizable' => 0, |
a9d0587b | 832 | 'add' => '1.3', |
c3fc2621 CW |
833 | ], |
834 | 'receipt_from_name' => [ | |
e501603b TO |
835 | 'name' => 'receipt_from_name', |
836 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 837 | 'title' => ts('Receipt From'), |
215b423e | 838 | 'description' => ts('FROM email name used for receipts generated by contributions to this contribution page.'), |
e501603b TO |
839 | 'maxlength' => 255, |
840 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 841 | 'where' => 'civicrm_contribution_page.receipt_from_name', |
522a26c9 | 842 | 'table_name' => 'civicrm_contribution_page', |
843 | 'entity' => 'ContributionPage', | |
844 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 845 | 'localizable' => 1, |
a9d0587b | 846 | 'add' => '1.3', |
c3fc2621 CW |
847 | ], |
848 | 'receipt_from_email' => [ | |
e501603b TO |
849 | 'name' => 'receipt_from_email', |
850 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 851 | 'title' => ts('Receipt From email'), |
215b423e | 852 | 'description' => ts('FROM email address used for receipts generated by contributions to this contribution page.'), |
e501603b TO |
853 | 'maxlength' => 255, |
854 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 855 | 'where' => 'civicrm_contribution_page.receipt_from_email', |
522a26c9 | 856 | 'table_name' => 'civicrm_contribution_page', |
857 | 'entity' => 'ContributionPage', | |
858 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 859 | 'localizable' => 0, |
a9d0587b | 860 | 'add' => '1.3', |
c3fc2621 CW |
861 | ], |
862 | 'cc_receipt' => [ | |
e501603b TO |
863 | 'name' => 'cc_receipt', |
864 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 865 | 'title' => ts('Receipt cc'), |
215b423e | 866 | 'description' => ts('comma-separated list of email addresses to cc each time a receipt is sent'), |
e501603b TO |
867 | 'maxlength' => 255, |
868 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 869 | 'where' => 'civicrm_contribution_page.cc_receipt', |
522a26c9 | 870 | 'table_name' => 'civicrm_contribution_page', |
871 | 'entity' => 'ContributionPage', | |
872 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 873 | 'localizable' => 0, |
a9d0587b | 874 | 'add' => '1.3', |
c3fc2621 CW |
875 | ], |
876 | 'bcc_receipt' => [ | |
e501603b TO |
877 | 'name' => 'bcc_receipt', |
878 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 879 | 'title' => ts('Receipt bcc'), |
215b423e | 880 | 'description' => ts('comma-separated list of email addresses to bcc each time a receipt is sent'), |
e501603b TO |
881 | 'maxlength' => 255, |
882 | 'size' => CRM_Utils_Type::HUGE, | |
a36434b9 | 883 | 'where' => 'civicrm_contribution_page.bcc_receipt', |
522a26c9 | 884 | 'table_name' => 'civicrm_contribution_page', |
885 | 'entity' => 'ContributionPage', | |
886 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 887 | 'localizable' => 0, |
a9d0587b | 888 | 'add' => '1.3', |
c3fc2621 CW |
889 | ], |
890 | 'receipt_text' => [ | |
e501603b TO |
891 | 'name' => 'receipt_text', |
892 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 893 | 'title' => ts('Receipt Text'), |
215b423e | 894 | 'description' => ts('text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now'), |
e501603b TO |
895 | 'rows' => 6, |
896 | 'cols' => 50, | |
a36434b9 | 897 | 'where' => 'civicrm_contribution_page.receipt_text', |
522a26c9 | 898 | 'table_name' => 'civicrm_contribution_page', |
899 | 'entity' => 'ContributionPage', | |
900 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 901 | 'localizable' => 1, |
c3fc2621 | 902 | 'html' => [ |
e501603b | 903 | 'type' => 'TextArea', |
c3fc2621 | 904 | ], |
a9d0587b | 905 | 'add' => '1.3', |
c3fc2621 CW |
906 | ], |
907 | 'is_active' => [ | |
e501603b TO |
908 | 'name' => 'is_active', |
909 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 910 | 'title' => ts('Is Page Active?'), |
215b423e | 911 | 'description' => ts('Is this property active?'), |
a36434b9 | 912 | 'where' => 'civicrm_contribution_page.is_active', |
522a26c9 | 913 | 'table_name' => 'civicrm_contribution_page', |
914 | 'entity' => 'ContributionPage', | |
915 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 916 | 'localizable' => 0, |
a9d0587b | 917 | 'add' => '1.3', |
c3fc2621 CW |
918 | ], |
919 | 'footer_text' => [ | |
e501603b TO |
920 | 'name' => 'footer_text', |
921 | 'type' => CRM_Utils_Type::T_TEXT, | |
c3fc2621 | 922 | 'title' => ts('Footer Text'), |
215b423e | 923 | 'description' => ts('Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.'), |
e501603b TO |
924 | 'rows' => 6, |
925 | 'cols' => 50, | |
a36434b9 | 926 | 'where' => 'civicrm_contribution_page.footer_text', |
522a26c9 | 927 | 'table_name' => 'civicrm_contribution_page', |
928 | 'entity' => 'ContributionPage', | |
929 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 930 | 'localizable' => 1, |
c3fc2621 | 931 | 'html' => [ |
e501603b | 932 | 'type' => 'RichTextEditor', |
c3fc2621 | 933 | ], |
a9d0587b | 934 | 'add' => '1.4', |
c3fc2621 CW |
935 | ], |
936 | 'amount_block_is_active' => [ | |
e501603b TO |
937 | 'name' => 'amount_block_is_active', |
938 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 939 | 'title' => ts('Is Amount Block Active?'), |
215b423e | 940 | 'description' => ts('Is this property active?'), |
a36434b9 | 941 | 'where' => 'civicrm_contribution_page.amount_block_is_active', |
e501603b | 942 | 'default' => '1', |
522a26c9 | 943 | 'table_name' => 'civicrm_contribution_page', |
944 | 'entity' => 'ContributionPage', | |
945 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 946 | 'localizable' => 0, |
a9d0587b | 947 | 'add' => '1.5', |
c3fc2621 CW |
948 | ], |
949 | 'start_date' => [ | |
e501603b TO |
950 | 'name' => 'start_date', |
951 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
c3fc2621 | 952 | 'title' => ts('Contribution Page Start Date'), |
215b423e | 953 | 'description' => ts('Date and time that this page starts.'), |
a36434b9 | 954 | 'where' => 'civicrm_contribution_page.start_date', |
522a26c9 | 955 | 'table_name' => 'civicrm_contribution_page', |
956 | 'entity' => 'ContributionPage', | |
957 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 958 | 'localizable' => 0, |
a9d0587b | 959 | 'add' => '1.8', |
c3fc2621 CW |
960 | ], |
961 | 'end_date' => [ | |
e501603b TO |
962 | 'name' => 'end_date', |
963 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
c3fc2621 | 964 | 'title' => ts('Contribution Page End Date'), |
215b423e | 965 | 'description' => ts('Date and time that this page ends. May be NULL if no defined end date/time'), |
a36434b9 | 966 | 'where' => 'civicrm_contribution_page.end_date', |
522a26c9 | 967 | 'table_name' => 'civicrm_contribution_page', |
968 | 'entity' => 'ContributionPage', | |
969 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 970 | 'localizable' => 0, |
a9d0587b | 971 | 'add' => '1.8', |
c3fc2621 CW |
972 | ], |
973 | 'created_id' => [ | |
e501603b TO |
974 | 'name' => 'created_id', |
975 | 'type' => CRM_Utils_Type::T_INT, | |
c3fc2621 | 976 | 'title' => ts('Contribution Page Created By'), |
215b423e | 977 | 'description' => ts('FK to civicrm_contact, who created this contribution page'), |
a36434b9 | 978 | 'where' => 'civicrm_contribution_page.created_id', |
522a26c9 | 979 | 'table_name' => 'civicrm_contribution_page', |
980 | 'entity' => 'ContributionPage', | |
981 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 982 | 'localizable' => 0, |
e501603b | 983 | 'FKClassName' => 'CRM_Contact_DAO_Contact', |
a9d0587b | 984 | 'add' => '3.0', |
c3fc2621 CW |
985 | ], |
986 | 'created_date' => [ | |
e501603b TO |
987 | 'name' => 'created_date', |
988 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
c3fc2621 | 989 | 'title' => ts('Contribution Page Created Date'), |
215b423e | 990 | 'description' => ts('Date and time that contribution page was created.'), |
a36434b9 | 991 | 'where' => 'civicrm_contribution_page.created_date', |
522a26c9 | 992 | 'table_name' => 'civicrm_contribution_page', |
993 | 'entity' => 'ContributionPage', | |
994 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 995 | 'localizable' => 0, |
a9d0587b | 996 | 'add' => '3.0', |
c3fc2621 CW |
997 | ], |
998 | 'currency' => [ | |
e501603b TO |
999 | 'name' => 'currency', |
1000 | 'type' => CRM_Utils_Type::T_STRING, | |
c3fc2621 | 1001 | 'title' => ts('Contribution Page Currency'), |
215b423e | 1002 | 'description' => ts('3 character string, value from config setting or input via user.'), |
e501603b TO |
1003 | 'maxlength' => 3, |
1004 | 'size' => CRM_Utils_Type::FOUR, | |
a36434b9 | 1005 | 'where' => 'civicrm_contribution_page.currency', |
1006 | 'headerPattern' => '/cur(rency)?/i', | |
1007 | 'dataPattern' => '/^[A-Z]{3}$/i', | |
e501603b | 1008 | 'default' => 'NULL', |
522a26c9 | 1009 | 'table_name' => 'civicrm_contribution_page', |
1010 | 'entity' => 'ContributionPage', | |
1011 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 1012 | 'localizable' => 0, |
c3fc2621 | 1013 | 'html' => [ |
e501603b | 1014 | 'type' => 'Select', |
c3fc2621 CW |
1015 | ], |
1016 | 'pseudoconstant' => [ | |
e501603b TO |
1017 | 'table' => 'civicrm_currency', |
1018 | 'keyColumn' => 'name', | |
1019 | 'labelColumn' => 'full_name', | |
1020 | 'nameColumn' => 'name', | |
a8fdb24e | 1021 | 'abbrColumn' => 'symbol', |
e6ca0a57 | 1022 | ], |
a9d0587b | 1023 | 'add' => '3.3', |
c3fc2621 CW |
1024 | ], |
1025 | 'campaign_id' => [ | |
e501603b TO |
1026 | 'name' => 'campaign_id', |
1027 | 'type' => CRM_Utils_Type::T_INT, | |
c3fc2621 | 1028 | 'title' => ts('Contribution Page Campaign ID'), |
215b423e | 1029 | 'description' => ts('The campaign for which we are collecting contributions with this page.'), |
a36434b9 | 1030 | 'where' => 'civicrm_contribution_page.campaign_id', |
522a26c9 | 1031 | 'table_name' => 'civicrm_contribution_page', |
1032 | 'entity' => 'ContributionPage', | |
1033 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 1034 | 'localizable' => 0, |
e501603b | 1035 | 'FKClassName' => 'CRM_Campaign_DAO_Campaign', |
c3fc2621 | 1036 | 'pseudoconstant' => [ |
e501603b TO |
1037 | 'table' => 'civicrm_campaign', |
1038 | 'keyColumn' => 'id', | |
1039 | 'labelColumn' => 'title', | |
e6ca0a57 | 1040 | ], |
a9d0587b | 1041 | 'add' => '3.4', |
c3fc2621 CW |
1042 | ], |
1043 | 'is_share' => [ | |
e501603b TO |
1044 | 'name' => 'is_share', |
1045 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 1046 | 'title' => ts('Is Contribution Page Shared?'), |
215b423e | 1047 | 'description' => ts('Can people share the contribution page through social media?'), |
a36434b9 | 1048 | 'where' => 'civicrm_contribution_page.is_share', |
e501603b | 1049 | 'default' => '1', |
522a26c9 | 1050 | 'table_name' => 'civicrm_contribution_page', |
1051 | 'entity' => 'ContributionPage', | |
1052 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 1053 | 'localizable' => 0, |
a9d0587b | 1054 | 'add' => '4.1', |
c3fc2621 CW |
1055 | ], |
1056 | 'is_billing_required' => [ | |
e501603b TO |
1057 | 'name' => 'is_billing_required', |
1058 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
c3fc2621 | 1059 | 'title' => ts('Is billing block required'), |
215b423e | 1060 | 'description' => ts('if true - billing block is required for online contribution page'), |
a36434b9 | 1061 | 'where' => 'civicrm_contribution_page.is_billing_required', |
45a83e42 | 1062 | 'default' => '0', |
522a26c9 | 1063 | 'table_name' => 'civicrm_contribution_page', |
1064 | 'entity' => 'ContributionPage', | |
1065 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
6a7e5e5d | 1066 | 'localizable' => 0, |
a9d0587b | 1067 | 'add' => '4.6', |
c3fc2621 | 1068 | ], |
6489e3de SL |
1069 | 'contribution_page_frontend_title' => [ |
1070 | 'name' => 'frontend_title', | |
1071 | 'type' => CRM_Utils_Type::T_STRING, | |
1072 | 'title' => ts('Public Title'), | |
1073 | 'description' => ts('Contribution Page Public title'), | |
1074 | 'maxlength' => 255, | |
1075 | 'size' => CRM_Utils_Type::HUGE, | |
1076 | 'where' => 'civicrm_contribution_page.frontend_title', | |
1077 | 'default' => 'NULL', | |
1078 | 'table_name' => 'civicrm_contribution_page', | |
1079 | 'entity' => 'ContributionPage', | |
1080 | 'bao' => 'CRM_Contribute_BAO_ContributionPage', | |
1081 | 'localizable' => 1, | |
1082 | 'html' => [ | |
1083 | 'type' => 'Text', | |
1084 | ], | |
a9d0587b | 1085 | 'add' => '5.20', |
6489e3de | 1086 | ], |
c3fc2621 | 1087 | ]; |
346aaaba | 1088 | CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); |
e501603b | 1089 | } |
346aaaba | 1090 | return Civi::$statics[__CLASS__]['fields']; |
e501603b | 1091 | } |
c3fc2621 | 1092 | |
e501603b | 1093 | /** |
bd8e0b14 | 1094 | * Return a mapping from field-name to the corresponding key (as used in fields()). |
e501603b TO |
1095 | * |
1096 | * @return array | |
bd8e0b14 | 1097 | * Array(string $name => string $uniqueName). |
e501603b | 1098 | */ |
c3fc2621 | 1099 | public static function &fieldKeys() { |
bd8e0b14 TO |
1100 | if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) { |
1101 | Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields())); | |
e501603b | 1102 | } |
bd8e0b14 | 1103 | return Civi::$statics[__CLASS__]['fieldKeys']; |
e501603b | 1104 | } |
c3fc2621 | 1105 | |
e501603b TO |
1106 | /** |
1107 | * Returns the names of this table | |
1108 | * | |
1109 | * @return string | |
1110 | */ | |
c3fc2621 | 1111 | public static function getTableName() { |
e501603b TO |
1112 | return CRM_Core_DAO::getLocaleTableName(self::$_tableName); |
1113 | } | |
c3fc2621 | 1114 | |
e501603b TO |
1115 | /** |
1116 | * Returns if this table needs to be logged | |
1117 | * | |
c3fc2621 | 1118 | * @return bool |
e501603b | 1119 | */ |
c3fc2621 | 1120 | public function getLog() { |
e501603b TO |
1121 | return self::$_log; |
1122 | } | |
c3fc2621 | 1123 | |
e501603b TO |
1124 | /** |
1125 | * Returns the list of fields that can be imported | |
1126 | * | |
1127 | * @param bool $prefix | |
1128 | * | |
1129 | * @return array | |
1130 | */ | |
c3fc2621 CW |
1131 | public static function &import($prefix = FALSE) { |
1132 | $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'contribution_page', $prefix, []); | |
60808919 | 1133 | return $r; |
e501603b | 1134 | } |
c3fc2621 | 1135 | |
e501603b TO |
1136 | /** |
1137 | * Returns the list of fields that can be exported | |
1138 | * | |
1139 | * @param bool $prefix | |
1140 | * | |
1141 | * @return array | |
1142 | */ | |
c3fc2621 CW |
1143 | public static function &export($prefix = FALSE) { |
1144 | $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'contribution_page', $prefix, []); | |
60808919 | 1145 | return $r; |
e501603b | 1146 | } |
c3fc2621 | 1147 | |
e7a6b91a AS |
1148 | /** |
1149 | * Returns the list of indices | |
c3fc2621 CW |
1150 | * |
1151 | * @param bool $localize | |
1152 | * | |
1153 | * @return array | |
e7a6b91a AS |
1154 | */ |
1155 | public static function indices($localize = TRUE) { | |
c3fc2621 | 1156 | $indices = []; |
e7a6b91a AS |
1157 | return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; |
1158 | } | |
c3fc2621 | 1159 | |
e501603b | 1160 | } |