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