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