Commit | Line | Data |
---|---|---|
e501603b TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
4 | | CiviCRM version 4.7 | | |
5 | +--------------------------------------------------------------------+ | |
0f03f337 | 6 | | Copyright CiviCRM LLC (c) 2004-2017 | |
e501603b TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
26 | */ | |
27 | /** | |
28 | * @package CRM | |
0f03f337 | 29 | * @copyright CiviCRM LLC (c) 2004-2017 |
e501603b TO |
30 | * |
31 | * Generated from xml/schema/CRM/Event/Event.xml | |
32 | * DO NOT EDIT. Generated by CRM_Core_CodeGen | |
6a7e5e5d | 33 | * (GenCodeChecksum:d83e7e01c63245b818500f9eb0e98502) |
e501603b TO |
34 | */ |
35 | require_once 'CRM/Core/DAO.php'; | |
36 | require_once 'CRM/Utils/Type.php'; | |
f41f0342 | 37 | /** |
38 | * CRM_Event_DAO_Event constructor. | |
39 | */ | |
e501603b TO |
40 | class CRM_Event_DAO_Event extends CRM_Core_DAO { |
41 | /** | |
f41f0342 | 42 | * Static instance to hold the table name. |
e501603b TO |
43 | * |
44 | * @var string | |
45 | */ | |
46 | static $_tableName = 'civicrm_event'; | |
e501603b | 47 | /** |
f41f0342 | 48 | * Should CiviCRM log any modifications to this table in the civicrm_log table. |
e501603b TO |
49 | * |
50 | * @var boolean | |
51 | */ | |
52 | static $_log = true; | |
53 | /** | |
54 | * Event | |
55 | * | |
56 | * @var int unsigned | |
57 | */ | |
58 | public $id; | |
59 | /** | |
60 | * Event Title (e.g. Fall Fundraiser Dinner) | |
61 | * | |
62 | * @var string | |
63 | */ | |
64 | public $title; | |
65 | /** | |
66 | * Brief summary of event. Text and html allowed. Displayed on Event Registration form and can be used on other CMS pages which need an event summary. | |
67 | * | |
68 | * @var text | |
69 | */ | |
70 | public $summary; | |
71 | /** | |
72 | * Full description of event. Text and html allowed. Displayed on built-in Event Information screens. | |
73 | * | |
74 | * @var text | |
75 | */ | |
76 | public $description; | |
77 | /** | |
78 | * Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type. | |
79 | * | |
80 | * @var int unsigned | |
81 | */ | |
82 | public $event_type_id; | |
83 | /** | |
84 | * Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing. | |
85 | * | |
86 | * @var int unsigned | |
87 | */ | |
88 | public $participant_listing_id; | |
89 | /** | |
90 | * Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs. | |
91 | * | |
92 | * @var boolean | |
93 | */ | |
94 | public $is_public; | |
95 | /** | |
96 | * Date and time that event starts. | |
97 | * | |
98 | * @var datetime | |
99 | */ | |
100 | public $start_date; | |
101 | /** | |
102 | * Date and time that event ends. May be NULL if no defined end date/time | |
103 | * | |
104 | * @var datetime | |
105 | */ | |
106 | public $end_date; | |
107 | /** | |
108 | * If true, include registration link on Event Info page. | |
109 | * | |
110 | * @var boolean | |
111 | */ | |
112 | public $is_online_registration; | |
113 | /** | |
114 | * Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true. | |
115 | * | |
116 | * @var string | |
117 | */ | |
118 | public $registration_link_text; | |
119 | /** | |
120 | * Date and time that online registration starts. | |
121 | * | |
122 | * @var datetime | |
123 | */ | |
124 | public $registration_start_date; | |
125 | /** | |
126 | * Date and time that online registration ends. | |
127 | * | |
128 | * @var datetime | |
129 | */ | |
130 | public $registration_end_date; | |
131 | /** | |
132 | * Maximum number of registered participants to allow. After max is reached, a custom Event Full message is displayed. If NULL, allow unlimited number of participants. | |
133 | * | |
134 | * @var int unsigned | |
135 | */ | |
136 | public $max_participants; | |
137 | /** | |
138 | * Message to display on Event Information page and INSTEAD OF Event Registration form if maximum participants are signed up. Can include email address/info about getting on a waiting list, etc. Text and html allowed. | |
139 | * | |
140 | * @var text | |
141 | */ | |
142 | public $event_full_text; | |
143 | /** | |
144 | * If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration. | |
145 | * | |
146 | * @var boolean | |
147 | */ | |
148 | public $is_monetary; | |
149 | /** | |
150 | * Financial type assigned to paid event registrations for this event. Required if is_monetary is true. | |
151 | * | |
152 | * @var int unsigned | |
153 | */ | |
154 | public $financial_type_id; | |
155 | /** | |
156 | * Payment Processors configured for this Event (if is_monetary is true) | |
157 | * | |
158 | * @var string | |
159 | */ | |
160 | public $payment_processor; | |
161 | /** | |
162 | * Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified? | |
163 | * | |
164 | * @var boolean | |
165 | */ | |
166 | public $is_map; | |
167 | /** | |
168 | * Is this Event enabled or disabled/cancelled? | |
169 | * | |
170 | * @var boolean | |
171 | */ | |
172 | public $is_active; | |
173 | /** | |
174 | * | |
175 | * @var string | |
176 | */ | |
177 | public $fee_label; | |
178 | /** | |
179 | * If true, show event location. | |
180 | * | |
181 | * @var boolean | |
182 | */ | |
183 | public $is_show_location; | |
184 | /** | |
185 | * FK to Location Block ID | |
186 | * | |
187 | * @var int unsigned | |
188 | */ | |
189 | public $loc_block_id; | |
190 | /** | |
191 | * Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role. | |
192 | * | |
193 | * @var int unsigned | |
194 | */ | |
195 | public $default_role_id; | |
196 | /** | |
197 | * Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form. | |
198 | * | |
199 | * @var text | |
200 | */ | |
201 | public $intro_text; | |
202 | /** | |
203 | * Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form. | |
204 | * | |
205 | * @var text | |
206 | */ | |
207 | public $footer_text; | |
208 | /** | |
209 | * Title for Confirmation page. | |
210 | * | |
211 | * @var string | |
212 | */ | |
213 | public $confirm_title; | |
214 | /** | |
215 | * Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form. | |
216 | * | |
217 | * @var text | |
218 | */ | |
219 | public $confirm_text; | |
220 | /** | |
221 | * Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form. | |
222 | * | |
223 | * @var text | |
224 | */ | |
225 | public $confirm_footer_text; | |
226 | /** | |
227 | * If true, confirmation is automatically emailed to contact on successful registration. | |
228 | * | |
229 | * @var boolean | |
230 | */ | |
231 | public $is_email_confirm; | |
232 | /** | |
233 | * text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now | |
234 | * | |
235 | * @var text | |
236 | */ | |
237 | public $confirm_email_text; | |
238 | /** | |
239 | * FROM email name used for confirmation emails. | |
240 | * | |
241 | * @var string | |
242 | */ | |
243 | public $confirm_from_name; | |
244 | /** | |
245 | * FROM email address used for confirmation emails. | |
246 | * | |
247 | * @var string | |
248 | */ | |
249 | public $confirm_from_email; | |
250 | /** | |
251 | * comma-separated list of email addresses to cc each time a confirmation is sent | |
252 | * | |
253 | * @var string | |
254 | */ | |
255 | public $cc_confirm; | |
256 | /** | |
257 | * comma-separated list of email addresses to bcc each time a confirmation is sent | |
258 | * | |
259 | * @var string | |
260 | */ | |
261 | public $bcc_confirm; | |
262 | /** | |
263 | * FK to civicrm_option_value. | |
264 | * | |
265 | * @var int unsigned | |
266 | */ | |
267 | public $default_fee_id; | |
268 | /** | |
269 | * FK to civicrm_option_value. | |
270 | * | |
271 | * @var int unsigned | |
272 | */ | |
273 | public $default_discount_fee_id; | |
274 | /** | |
275 | * Title for ThankYou page. | |
276 | * | |
277 | * @var string | |
278 | */ | |
279 | public $thankyou_title; | |
280 | /** | |
281 | * ThankYou Text. | |
282 | * | |
283 | * @var text | |
284 | */ | |
285 | public $thankyou_text; | |
286 | /** | |
287 | * Footer message. | |
288 | * | |
289 | * @var text | |
290 | */ | |
291 | public $thankyou_footer_text; | |
292 | /** | |
293 | * if true - allows the user to send payment directly to the org later | |
294 | * | |
295 | * @var boolean | |
296 | */ | |
297 | public $is_pay_later; | |
298 | /** | |
299 | * The text displayed to the user in the main form | |
300 | * | |
301 | * @var text | |
302 | */ | |
303 | public $pay_later_text; | |
304 | /** | |
305 | * The receipt sent to the user instead of the normal receipt text | |
306 | * | |
307 | * @var text | |
308 | */ | |
309 | public $pay_later_receipt; | |
310 | /** | |
311 | * is partial payment enabled for this event | |
312 | * | |
313 | * @var boolean | |
314 | */ | |
315 | public $is_partial_payment; | |
316 | /** | |
317 | * Initial amount label for partial payment | |
318 | * | |
319 | * @var string | |
320 | */ | |
321 | public $initial_amount_label; | |
322 | /** | |
323 | * Initial amount help text for partial payment | |
324 | * | |
325 | * @var text | |
326 | */ | |
327 | public $initial_amount_help_text; | |
328 | /** | |
329 | * Minimum initial amount for partial payment | |
330 | * | |
331 | * @var float | |
332 | */ | |
333 | public $min_initial_amount; | |
334 | /** | |
335 | * if true - allows the user to register multiple participants for event | |
336 | * | |
337 | * @var boolean | |
338 | */ | |
339 | public $is_multiple_registrations; | |
340 | /** | |
341 | * Maximum number of additional participants that can be registered on a single booking | |
342 | * | |
343 | * @var int unsigned | |
344 | */ | |
345 | public $max_additional_participants; | |
346 | /** | |
347 | * if true - allows the user to register multiple registrations from same email address. | |
348 | * | |
349 | * @var boolean | |
350 | */ | |
351 | public $allow_same_participant_emails; | |
352 | /** | |
353 | * Whether the event has waitlist support. | |
354 | * | |
355 | * @var boolean | |
356 | */ | |
357 | public $has_waitlist; | |
358 | /** | |
359 | * Whether participants require approval before they can finish registering. | |
360 | * | |
361 | * @var boolean | |
362 | */ | |
363 | public $requires_approval; | |
364 | /** | |
365 | * Expire pending but unconfirmed registrations after this many hours. | |
366 | * | |
367 | * @var int unsigned | |
368 | */ | |
369 | public $expiration_time; | |
370 | /** | |
371 | * Allow self service cancellation or transfer for event? | |
372 | * | |
373 | * @var boolean | |
374 | */ | |
375 | public $allow_selfcancelxfer; | |
376 | /** | |
377 | * Number of hours prior to event start date to allow self-service cancellation or transfer. | |
378 | * | |
379 | * @var int unsigned | |
380 | */ | |
381 | public $selfcancelxfer_time; | |
382 | /** | |
383 | * Text to display when the event is full, but participants can signup for a waitlist. | |
384 | * | |
385 | * @var text | |
386 | */ | |
387 | public $waitlist_text; | |
388 | /** | |
389 | * Text to display when the approval is required to complete registration for an event. | |
390 | * | |
391 | * @var text | |
392 | */ | |
393 | public $approval_req_text; | |
394 | /** | |
395 | * whether the event has template | |
396 | * | |
397 | * @var boolean | |
398 | */ | |
399 | public $is_template; | |
400 | /** | |
401 | * Event Template Title | |
402 | * | |
403 | * @var string | |
404 | */ | |
405 | public $template_title; | |
406 | /** | |
407 | * FK to civicrm_contact, who created this event | |
408 | * | |
409 | * @var int unsigned | |
410 | */ | |
411 | public $created_id; | |
412 | /** | |
413 | * Date and time that event was created. | |
414 | * | |
415 | * @var datetime | |
416 | */ | |
417 | public $created_date; | |
418 | /** | |
419 | * 3 character string, value from config setting or input via user. | |
420 | * | |
421 | * @var string | |
422 | */ | |
423 | public $currency; | |
424 | /** | |
425 | * The campaign for which this event has been created. | |
426 | * | |
427 | * @var int unsigned | |
428 | */ | |
429 | public $campaign_id; | |
430 | /** | |
431 | * Can people share the event through social media? | |
432 | * | |
433 | * @var boolean | |
434 | */ | |
435 | public $is_share; | |
436 | /** | |
437 | * If false, the event booking confirmation screen gets skipped | |
438 | * | |
439 | * @var boolean | |
440 | */ | |
441 | public $is_confirm_enabled; | |
442 | /** | |
443 | * Implicit FK to civicrm_event: parent event | |
444 | * | |
445 | * @var int unsigned | |
446 | */ | |
447 | public $parent_event_id; | |
448 | /** | |
449 | * Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot. | |
450 | * | |
451 | * @var int unsigned | |
452 | */ | |
453 | public $slot_label_id; | |
454 | /** | |
455 | * Rule to use when matching registrations for this event | |
456 | * | |
457 | * @var int unsigned | |
458 | */ | |
459 | public $dedupe_rule_group_id; | |
460 | /** | |
461 | * if true than billing block is required this event | |
462 | * | |
463 | * @var boolean | |
464 | */ | |
465 | public $is_billing_required; | |
466 | /** | |
f41f0342 | 467 | * Class constructor. |
e501603b TO |
468 | */ |
469 | function __construct() { | |
470 | $this->__table = 'civicrm_event'; | |
471 | parent::__construct(); | |
472 | } | |
473 | /** | |
f41f0342 | 474 | * Returns foreign keys and entity references. |
e501603b TO |
475 | * |
476 | * @return array | |
477 | * [CRM_Core_Reference_Interface] | |
478 | */ | |
479 | static function getReferenceColumns() { | |
346aaaba TO |
480 | if (!isset(Civi::$statics[__CLASS__]['links'])) { |
481 | Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__); | |
482 | Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName() , 'loc_block_id', 'civicrm_loc_block', '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'); | |
485 | Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName() , 'dedupe_rule_group_id', 'civicrm_dedupe_rule_group', 'id'); | |
486 | CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']); | |
e501603b | 487 | } |
346aaaba | 488 | return Civi::$statics[__CLASS__]['links']; |
e501603b TO |
489 | } |
490 | /** | |
491 | * Returns all the column names of this table | |
492 | * | |
493 | * @return array | |
494 | */ | |
495 | static function &fields() { | |
346aaaba TO |
496 | if (!isset(Civi::$statics[__CLASS__]['fields'])) { |
497 | Civi::$statics[__CLASS__]['fields'] = array( | |
e501603b TO |
498 | 'id' => array( |
499 | 'name' => 'id', | |
500 | 'type' => CRM_Utils_Type::T_INT, | |
501 | 'title' => ts('Event ID') , | |
502 | 'description' => 'Event', | |
503 | 'required' => true, | |
522a26c9 | 504 | 'table_name' => 'civicrm_event', |
505 | 'entity' => 'Event', | |
506 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 507 | 'localizable' => 0, |
e501603b TO |
508 | ) , |
509 | 'event_title' => array( | |
510 | 'name' => 'title', | |
511 | 'type' => CRM_Utils_Type::T_STRING, | |
512 | 'title' => ts('Event Title') , | |
513 | 'description' => 'Event Title (e.g. Fall Fundraiser Dinner)', | |
514 | 'maxlength' => 255, | |
515 | 'size' => CRM_Utils_Type::HUGE, | |
516 | 'import' => true, | |
517 | 'where' => 'civicrm_event.title', | |
518 | 'headerPattern' => '/(event.)?title$/i', | |
519 | 'dataPattern' => '', | |
520 | 'export' => true, | |
522a26c9 | 521 | 'table_name' => 'civicrm_event', |
522 | 'entity' => 'Event', | |
523 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 524 | 'localizable' => 1, |
e501603b TO |
525 | 'html' => array( |
526 | 'type' => 'Text', | |
527 | ) , | |
528 | ) , | |
529 | 'summary' => array( | |
530 | 'name' => 'summary', | |
531 | 'type' => CRM_Utils_Type::T_TEXT, | |
532 | 'title' => ts('Event Summary') , | |
533 | 'description' => 'Brief summary of event. Text and html allowed. Displayed on Event Registration form and can be used on other CMS pages which need an event summary.', | |
534 | 'rows' => 4, | |
535 | 'cols' => 60, | |
522a26c9 | 536 | 'table_name' => 'civicrm_event', |
537 | 'entity' => 'Event', | |
538 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 539 | 'localizable' => 1, |
e501603b TO |
540 | 'html' => array( |
541 | 'type' => 'TextArea', | |
542 | ) , | |
543 | ) , | |
544 | 'event_description' => array( | |
545 | 'name' => 'description', | |
546 | 'type' => CRM_Utils_Type::T_TEXT, | |
547 | 'title' => ts('Event Description') , | |
548 | 'description' => 'Full description of event. Text and html allowed. Displayed on built-in Event Information screens.', | |
549 | 'rows' => 8, | |
550 | 'cols' => 60, | |
522a26c9 | 551 | 'table_name' => 'civicrm_event', |
552 | 'entity' => 'Event', | |
553 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 554 | 'localizable' => 1, |
e501603b TO |
555 | 'html' => array( |
556 | 'type' => 'TextArea', | |
557 | ) , | |
558 | ) , | |
559 | 'event_type_id' => array( | |
560 | 'name' => 'event_type_id', | |
561 | 'type' => CRM_Utils_Type::T_INT, | |
562 | 'title' => ts('Event Type') , | |
563 | 'description' => 'Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.', | |
522a26c9 | 564 | 'table_name' => 'civicrm_event', |
565 | 'entity' => 'Event', | |
566 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 567 | 'localizable' => 0, |
e501603b TO |
568 | 'html' => array( |
569 | 'type' => 'Select', | |
570 | ) , | |
571 | 'pseudoconstant' => array( | |
572 | 'optionGroupName' => 'event_type', | |
573 | 'optionEditPath' => 'civicrm/admin/options/event_type', | |
574 | ) | |
575 | ) , | |
576 | 'participant_listing_id' => array( | |
577 | 'name' => 'participant_listing_id', | |
578 | 'type' => CRM_Utils_Type::T_INT, | |
579 | 'title' => ts('Participant Listing') , | |
580 | 'description' => 'Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.', | |
522a26c9 | 581 | 'table_name' => 'civicrm_event', |
582 | 'entity' => 'Event', | |
583 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 584 | 'localizable' => 0, |
e501603b TO |
585 | 'html' => array( |
586 | 'type' => 'Select', | |
587 | ) , | |
588 | 'pseudoconstant' => array( | |
589 | 'optionGroupName' => 'participant_listing', | |
590 | 'optionEditPath' => 'civicrm/admin/options/participant_listing', | |
591 | ) | |
592 | ) , | |
593 | 'is_public' => array( | |
594 | 'name' => 'is_public', | |
595 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
596 | 'title' => ts('Is Event Public') , | |
597 | 'description' => 'Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs.', | |
598 | 'default' => '1', | |
522a26c9 | 599 | 'table_name' => 'civicrm_event', |
600 | 'entity' => 'Event', | |
601 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 602 | 'localizable' => 0, |
e501603b TO |
603 | 'html' => array( |
604 | 'type' => 'CheckBox', | |
605 | ) , | |
606 | ) , | |
607 | 'event_start_date' => array( | |
608 | 'name' => 'start_date', | |
609 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
610 | 'title' => ts('Event Start Date') , | |
611 | 'description' => 'Date and time that event starts.', | |
612 | 'import' => true, | |
613 | 'where' => 'civicrm_event.start_date', | |
614 | 'headerPattern' => '/^start|(s(tart\s)?date)$/i', | |
615 | 'dataPattern' => '', | |
616 | 'export' => true, | |
522a26c9 | 617 | 'table_name' => 'civicrm_event', |
618 | 'entity' => 'Event', | |
619 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 620 | 'localizable' => 0, |
e501603b TO |
621 | 'html' => array( |
622 | 'type' => 'Select Date', | |
623 | ) , | |
624 | ) , | |
625 | 'event_end_date' => array( | |
626 | 'name' => 'end_date', | |
627 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
628 | 'title' => ts('Event End Date') , | |
629 | 'description' => 'Date and time that event ends. May be NULL if no defined end date/time', | |
630 | 'import' => true, | |
631 | 'where' => 'civicrm_event.end_date', | |
632 | 'headerPattern' => '/^end|(e(nd\s)?date)$/i', | |
633 | 'dataPattern' => '', | |
634 | 'export' => true, | |
522a26c9 | 635 | 'table_name' => 'civicrm_event', |
636 | 'entity' => 'Event', | |
637 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 638 | 'localizable' => 0, |
e501603b TO |
639 | 'html' => array( |
640 | 'type' => 'Select Date', | |
641 | ) , | |
642 | ) , | |
643 | 'is_online_registration' => array( | |
644 | 'name' => 'is_online_registration', | |
645 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
646 | 'title' => ts('Is Online Registration') , | |
647 | 'description' => 'If true, include registration link on Event Info page.', | |
522a26c9 | 648 | 'table_name' => 'civicrm_event', |
649 | 'entity' => 'Event', | |
650 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 651 | 'localizable' => 0, |
e501603b TO |
652 | 'html' => array( |
653 | 'type' => 'CheckBox', | |
654 | ) , | |
655 | ) , | |
656 | 'registration_link_text' => array( | |
657 | 'name' => 'registration_link_text', | |
658 | 'type' => CRM_Utils_Type::T_STRING, | |
659 | 'title' => ts('Event Registration Link Text') , | |
660 | 'description' => 'Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true.', | |
661 | 'maxlength' => 255, | |
662 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 663 | 'table_name' => 'civicrm_event', |
664 | 'entity' => 'Event', | |
665 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 666 | 'localizable' => 1, |
e501603b TO |
667 | 'html' => array( |
668 | 'type' => 'Text', | |
669 | ) , | |
670 | ) , | |
671 | 'registration_start_date' => array( | |
672 | 'name' => 'registration_start_date', | |
673 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
674 | 'title' => ts('Registration Start Date') , | |
675 | 'description' => 'Date and time that online registration starts.', | |
522a26c9 | 676 | 'table_name' => 'civicrm_event', |
677 | 'entity' => 'Event', | |
678 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 679 | 'localizable' => 0, |
e501603b TO |
680 | 'html' => array( |
681 | 'type' => 'Select Date', | |
682 | ) , | |
683 | ) , | |
684 | 'registration_end_date' => array( | |
685 | 'name' => 'registration_end_date', | |
686 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
687 | 'title' => ts('Registration End Date') , | |
688 | 'description' => 'Date and time that online registration ends.', | |
522a26c9 | 689 | 'table_name' => 'civicrm_event', |
690 | 'entity' => 'Event', | |
691 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 692 | 'localizable' => 0, |
e501603b TO |
693 | 'html' => array( |
694 | 'type' => 'Select Date', | |
695 | ) , | |
696 | ) , | |
697 | 'max_participants' => array( | |
698 | 'name' => 'max_participants', | |
699 | 'type' => CRM_Utils_Type::T_INT, | |
700 | 'title' => ts('Max Participants') , | |
701 | 'description' => 'Maximum number of registered participants to allow. After max is reached, a custom Event Full message is displayed. If NULL, allow unlimited number of participants.', | |
702 | 'default' => 'NULL', | |
522a26c9 | 703 | 'table_name' => 'civicrm_event', |
704 | 'entity' => 'Event', | |
705 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 706 | 'localizable' => 0, |
e501603b TO |
707 | 'html' => array( |
708 | 'type' => 'Text', | |
709 | ) , | |
710 | ) , | |
711 | 'event_full_text' => array( | |
712 | 'name' => 'event_full_text', | |
713 | 'type' => CRM_Utils_Type::T_TEXT, | |
714 | 'title' => ts('Event Information') , | |
715 | 'description' => 'Message to display on Event Information page and INSTEAD OF Event Registration form if maximum participants are signed up. Can include email address/info about getting on a waiting list, etc. Text and html allowed.', | |
716 | 'rows' => 4, | |
717 | 'cols' => 60, | |
522a26c9 | 718 | 'table_name' => 'civicrm_event', |
719 | 'entity' => 'Event', | |
720 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 721 | 'localizable' => 1, |
e501603b TO |
722 | 'html' => array( |
723 | 'type' => 'TextArea', | |
724 | ) , | |
725 | ) , | |
726 | 'is_monetary' => array( | |
727 | 'name' => 'is_monetary', | |
728 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
729 | 'title' => ts('Is this a PAID event?') , | |
730 | 'description' => 'If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.', | |
522a26c9 | 731 | 'table_name' => 'civicrm_event', |
732 | 'entity' => 'Event', | |
733 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 734 | 'localizable' => 0, |
e501603b TO |
735 | 'html' => array( |
736 | 'type' => 'CheckBox', | |
737 | ) , | |
738 | ) , | |
739 | 'financial_type_id' => array( | |
740 | 'name' => 'financial_type_id', | |
741 | 'type' => CRM_Utils_Type::T_INT, | |
742 | 'title' => ts('Financial Type') , | |
743 | 'description' => 'Financial type assigned to paid event registrations for this event. Required if is_monetary is true.', | |
744 | 'default' => 'NULL', | |
522a26c9 | 745 | 'table_name' => 'civicrm_event', |
746 | 'entity' => 'Event', | |
747 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 748 | 'localizable' => 0, |
e501603b TO |
749 | 'html' => array( |
750 | 'type' => 'Select', | |
751 | ) , | |
752 | 'pseudoconstant' => array( | |
753 | 'table' => 'civicrm_financial_type', | |
754 | 'keyColumn' => 'id', | |
755 | 'labelColumn' => 'name', | |
756 | ) | |
757 | ) , | |
758 | 'payment_processor' => array( | |
759 | 'name' => 'payment_processor', | |
760 | 'type' => CRM_Utils_Type::T_STRING, | |
761 | 'title' => ts('Payment Processor') , | |
762 | 'description' => 'Payment Processors configured for this Event (if is_monetary is true)', | |
763 | 'maxlength' => 128, | |
764 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 765 | 'table_name' => 'civicrm_event', |
766 | 'entity' => 'Event', | |
767 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 768 | 'localizable' => 0, |
e501603b TO |
769 | 'html' => array( |
770 | 'type' => 'Select', | |
771 | ) , | |
772 | 'pseudoconstant' => array( | |
773 | 'table' => 'civicrm_payment_processor', | |
774 | 'keyColumn' => 'id', | |
775 | 'labelColumn' => 'name', | |
776 | ) | |
777 | ) , | |
778 | 'is_map' => array( | |
779 | 'name' => 'is_map', | |
780 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
781 | 'title' => ts('Map Enabled') , | |
782 | 'description' => 'Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified?', | |
522a26c9 | 783 | 'table_name' => 'civicrm_event', |
784 | 'entity' => 'Event', | |
785 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 786 | 'localizable' => 0, |
e501603b TO |
787 | 'html' => array( |
788 | 'type' => 'CheckBox', | |
789 | ) , | |
790 | ) , | |
791 | 'is_active' => array( | |
792 | 'name' => 'is_active', | |
793 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
794 | 'title' => ts('Is Active') , | |
795 | 'description' => 'Is this Event enabled or disabled/cancelled?', | |
522a26c9 | 796 | 'table_name' => 'civicrm_event', |
797 | 'entity' => 'Event', | |
798 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 799 | 'localizable' => 0, |
e501603b TO |
800 | 'html' => array( |
801 | 'type' => 'CheckBox', | |
802 | ) , | |
803 | ) , | |
804 | 'fee_label' => array( | |
805 | 'name' => 'fee_label', | |
806 | 'type' => CRM_Utils_Type::T_STRING, | |
807 | 'title' => ts('Fee Label') , | |
808 | 'maxlength' => 255, | |
809 | 'size' => CRM_Utils_Type::HUGE, | |
810 | 'import' => true, | |
811 | 'where' => 'civicrm_event.fee_label', | |
812 | 'headerPattern' => '/^fee|(f(ee\s)?label)$/i', | |
813 | 'dataPattern' => '', | |
814 | 'export' => true, | |
522a26c9 | 815 | 'table_name' => 'civicrm_event', |
816 | 'entity' => 'Event', | |
817 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 818 | 'localizable' => 1, |
e501603b TO |
819 | 'html' => array( |
820 | 'type' => 'Text', | |
821 | ) , | |
822 | ) , | |
823 | 'is_show_location' => array( | |
824 | 'name' => 'is_show_location', | |
825 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
826 | 'title' => ts('show location') , | |
827 | 'description' => 'If true, show event location.', | |
828 | 'default' => '1', | |
522a26c9 | 829 | 'table_name' => 'civicrm_event', |
830 | 'entity' => 'Event', | |
831 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 832 | 'localizable' => 0, |
e501603b TO |
833 | 'html' => array( |
834 | 'type' => 'CheckBox', | |
835 | ) , | |
836 | ) , | |
837 | 'loc_block_id' => array( | |
838 | 'name' => 'loc_block_id', | |
839 | 'type' => CRM_Utils_Type::T_INT, | |
840 | 'title' => ts('Location Block ID') , | |
841 | 'description' => 'FK to Location Block ID', | |
522a26c9 | 842 | 'table_name' => 'civicrm_event', |
843 | 'entity' => 'Event', | |
844 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 845 | 'localizable' => 0, |
e501603b TO |
846 | 'FKClassName' => 'CRM_Core_DAO_LocBlock', |
847 | ) , | |
848 | 'default_role_id' => array( | |
849 | 'name' => 'default_role_id', | |
850 | 'type' => CRM_Utils_Type::T_INT, | |
851 | 'title' => ts('Default Role') , | |
852 | 'description' => 'Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.', | |
853 | 'import' => true, | |
854 | 'where' => 'civicrm_event.default_role_id', | |
855 | 'headerPattern' => '', | |
856 | 'dataPattern' => '', | |
857 | 'export' => true, | |
858 | 'default' => '1', | |
522a26c9 | 859 | 'table_name' => 'civicrm_event', |
860 | 'entity' => 'Event', | |
861 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 862 | 'localizable' => 0, |
e501603b TO |
863 | 'html' => array( |
864 | 'type' => 'Select', | |
865 | ) , | |
866 | 'pseudoconstant' => array( | |
867 | 'optionGroupName' => 'participant_role', | |
868 | 'optionEditPath' => 'civicrm/admin/options/participant_role', | |
869 | ) | |
870 | ) , | |
871 | 'intro_text' => array( | |
872 | 'name' => 'intro_text', | |
873 | 'type' => CRM_Utils_Type::T_TEXT, | |
874 | 'title' => ts('Introductory Message') , | |
875 | 'description' => 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.', | |
876 | 'rows' => 6, | |
877 | 'cols' => 50, | |
522a26c9 | 878 | 'table_name' => 'civicrm_event', |
879 | 'entity' => 'Event', | |
880 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 881 | 'localizable' => 1, |
e501603b TO |
882 | 'html' => array( |
883 | 'type' => 'TextArea', | |
884 | ) , | |
885 | ) , | |
886 | 'footer_text' => array( | |
887 | 'name' => 'footer_text', | |
888 | 'type' => CRM_Utils_Type::T_TEXT, | |
889 | 'title' => ts('Footer Message') , | |
890 | 'description' => 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.', | |
891 | 'rows' => 6, | |
892 | 'cols' => 50, | |
522a26c9 | 893 | 'table_name' => 'civicrm_event', |
894 | 'entity' => 'Event', | |
895 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 896 | 'localizable' => 1, |
e501603b TO |
897 | 'html' => array( |
898 | 'type' => 'TextArea', | |
899 | ) , | |
900 | ) , | |
901 | 'confirm_title' => array( | |
902 | 'name' => 'confirm_title', | |
903 | 'type' => CRM_Utils_Type::T_STRING, | |
904 | 'title' => ts('Confirmation Title') , | |
905 | 'description' => 'Title for Confirmation page.', | |
906 | 'maxlength' => 255, | |
907 | 'size' => CRM_Utils_Type::HUGE, | |
908 | 'default' => 'NULL', | |
522a26c9 | 909 | 'table_name' => 'civicrm_event', |
910 | 'entity' => 'Event', | |
911 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 912 | 'localizable' => 1, |
e501603b TO |
913 | 'html' => array( |
914 | 'type' => 'Text', | |
915 | ) , | |
916 | ) , | |
917 | 'confirm_text' => array( | |
918 | 'name' => 'confirm_text', | |
919 | 'type' => CRM_Utils_Type::T_TEXT, | |
920 | 'title' => ts('Confirm Text') , | |
921 | 'description' => 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.', | |
922 | 'rows' => 6, | |
923 | 'cols' => 50, | |
522a26c9 | 924 | 'table_name' => 'civicrm_event', |
925 | 'entity' => 'Event', | |
926 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 927 | 'localizable' => 1, |
e501603b TO |
928 | 'html' => array( |
929 | 'type' => 'TextArea', | |
930 | ) , | |
931 | ) , | |
932 | 'confirm_footer_text' => array( | |
933 | 'name' => 'confirm_footer_text', | |
934 | 'type' => CRM_Utils_Type::T_TEXT, | |
935 | 'title' => ts('Footer Text') , | |
936 | 'description' => 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.', | |
937 | 'rows' => 6, | |
938 | 'cols' => 50, | |
522a26c9 | 939 | 'table_name' => 'civicrm_event', |
940 | 'entity' => 'Event', | |
941 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 942 | 'localizable' => 1, |
e501603b TO |
943 | 'html' => array( |
944 | 'type' => 'TextArea', | |
945 | ) , | |
946 | ) , | |
947 | 'is_email_confirm' => array( | |
948 | 'name' => 'is_email_confirm', | |
949 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
950 | 'title' => ts('Is confirm email') , | |
951 | 'description' => 'If true, confirmation is automatically emailed to contact on successful registration.', | |
522a26c9 | 952 | 'table_name' => 'civicrm_event', |
953 | 'entity' => 'Event', | |
954 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 955 | 'localizable' => 0, |
e501603b TO |
956 | 'html' => array( |
957 | 'type' => 'CheckBox', | |
958 | ) , | |
959 | ) , | |
960 | 'confirm_email_text' => array( | |
961 | 'name' => 'confirm_email_text', | |
962 | 'type' => CRM_Utils_Type::T_TEXT, | |
963 | 'title' => ts('Confirmation Email Text') , | |
964 | 'description' => 'text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now', | |
965 | 'rows' => 4, | |
966 | 'cols' => 50, | |
522a26c9 | 967 | 'table_name' => 'civicrm_event', |
968 | 'entity' => 'Event', | |
969 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 970 | 'localizable' => 1, |
e501603b TO |
971 | 'html' => array( |
972 | 'type' => 'TextArea', | |
973 | ) , | |
974 | ) , | |
975 | 'confirm_from_name' => array( | |
976 | 'name' => 'confirm_from_name', | |
977 | 'type' => CRM_Utils_Type::T_STRING, | |
978 | 'title' => ts('Confirm From Name') , | |
979 | 'description' => 'FROM email name used for confirmation emails.', | |
980 | 'maxlength' => 255, | |
981 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 982 | 'table_name' => 'civicrm_event', |
983 | 'entity' => 'Event', | |
984 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 985 | 'localizable' => 1, |
e501603b TO |
986 | 'html' => array( |
987 | 'type' => 'Text', | |
988 | ) , | |
989 | ) , | |
990 | 'confirm_from_email' => array( | |
991 | 'name' => 'confirm_from_email', | |
992 | 'type' => CRM_Utils_Type::T_STRING, | |
993 | 'title' => ts('Confirm From Email') , | |
994 | 'description' => 'FROM email address used for confirmation emails.', | |
995 | 'maxlength' => 255, | |
996 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 997 | 'table_name' => 'civicrm_event', |
998 | 'entity' => 'Event', | |
999 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1000 | 'localizable' => 0, |
e501603b TO |
1001 | 'html' => array( |
1002 | 'type' => 'Text', | |
1003 | ) , | |
1004 | ) , | |
1005 | 'cc_confirm' => array( | |
1006 | 'name' => 'cc_confirm', | |
1007 | 'type' => CRM_Utils_Type::T_STRING, | |
1008 | 'title' => ts('Cc Confirm') , | |
1009 | 'description' => 'comma-separated list of email addresses to cc each time a confirmation is sent', | |
1010 | 'maxlength' => 255, | |
1011 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 1012 | 'table_name' => 'civicrm_event', |
1013 | 'entity' => 'Event', | |
1014 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1015 | 'localizable' => 0, |
e501603b TO |
1016 | 'html' => array( |
1017 | 'type' => 'Text', | |
1018 | ) , | |
1019 | ) , | |
1020 | 'bcc_confirm' => array( | |
1021 | 'name' => 'bcc_confirm', | |
1022 | 'type' => CRM_Utils_Type::T_STRING, | |
1023 | 'title' => ts('Bcc Confirm') , | |
1024 | 'description' => 'comma-separated list of email addresses to bcc each time a confirmation is sent', | |
1025 | 'maxlength' => 255, | |
1026 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 1027 | 'table_name' => 'civicrm_event', |
1028 | 'entity' => 'Event', | |
1029 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1030 | 'localizable' => 0, |
e501603b TO |
1031 | 'html' => array( |
1032 | 'type' => 'Text', | |
1033 | ) , | |
1034 | ) , | |
1035 | 'default_fee_id' => array( | |
1036 | 'name' => 'default_fee_id', | |
1037 | 'type' => CRM_Utils_Type::T_INT, | |
1038 | 'title' => ts('Default Fee ID') , | |
1039 | 'description' => 'FK to civicrm_option_value.', | |
522a26c9 | 1040 | 'table_name' => 'civicrm_event', |
1041 | 'entity' => 'Event', | |
1042 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1043 | 'localizable' => 0, |
e501603b TO |
1044 | ) , |
1045 | 'default_discount_fee_id' => array( | |
1046 | 'name' => 'default_discount_fee_id', | |
1047 | 'type' => CRM_Utils_Type::T_INT, | |
1048 | 'title' => ts('Default Discount Fee ID') , | |
1049 | 'description' => 'FK to civicrm_option_value.', | |
522a26c9 | 1050 | 'table_name' => 'civicrm_event', |
1051 | 'entity' => 'Event', | |
1052 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1053 | 'localizable' => 0, |
e501603b TO |
1054 | ) , |
1055 | 'thankyou_title' => array( | |
1056 | 'name' => 'thankyou_title', | |
1057 | 'type' => CRM_Utils_Type::T_STRING, | |
1058 | 'title' => ts('ThankYou Title') , | |
1059 | 'description' => 'Title for ThankYou page.', | |
1060 | 'maxlength' => 255, | |
1061 | 'size' => CRM_Utils_Type::HUGE, | |
1062 | 'default' => 'NULL', | |
522a26c9 | 1063 | 'table_name' => 'civicrm_event', |
1064 | 'entity' => 'Event', | |
1065 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1066 | 'localizable' => 1, |
e501603b TO |
1067 | 'html' => array( |
1068 | 'type' => 'Text', | |
1069 | ) , | |
1070 | ) , | |
1071 | 'thankyou_text' => array( | |
1072 | 'name' => 'thankyou_text', | |
1073 | 'type' => CRM_Utils_Type::T_TEXT, | |
1074 | 'title' => ts('ThankYou Text') , | |
1075 | 'description' => 'ThankYou Text.', | |
1076 | 'rows' => 6, | |
1077 | 'cols' => 50, | |
522a26c9 | 1078 | 'table_name' => 'civicrm_event', |
1079 | 'entity' => 'Event', | |
1080 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1081 | 'localizable' => 1, |
e501603b TO |
1082 | 'html' => array( |
1083 | 'type' => 'TextArea', | |
1084 | ) , | |
1085 | ) , | |
1086 | 'thankyou_footer_text' => array( | |
1087 | 'name' => 'thankyou_footer_text', | |
1088 | 'type' => CRM_Utils_Type::T_TEXT, | |
1089 | 'title' => ts('Footer Text') , | |
1090 | 'description' => 'Footer message.', | |
1091 | 'rows' => 6, | |
1092 | 'cols' => 50, | |
522a26c9 | 1093 | 'table_name' => 'civicrm_event', |
1094 | 'entity' => 'Event', | |
1095 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1096 | 'localizable' => 1, |
e501603b TO |
1097 | 'html' => array( |
1098 | 'type' => 'TextArea', | |
1099 | ) , | |
1100 | ) , | |
1101 | 'is_pay_later' => array( | |
1102 | 'name' => 'is_pay_later', | |
1103 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1104 | 'title' => ts('Pay Later Allowed') , | |
1105 | 'description' => 'if true - allows the user to send payment directly to the org later', | |
522a26c9 | 1106 | 'table_name' => 'civicrm_event', |
1107 | 'entity' => 'Event', | |
1108 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1109 | 'localizable' => 0, |
e501603b TO |
1110 | 'html' => array( |
1111 | 'type' => 'CheckBox', | |
1112 | ) , | |
1113 | ) , | |
1114 | 'pay_later_text' => array( | |
1115 | 'name' => 'pay_later_text', | |
1116 | 'type' => CRM_Utils_Type::T_TEXT, | |
1117 | 'title' => ts('Pay Later Text') , | |
1118 | 'description' => 'The text displayed to the user in the main form', | |
522a26c9 | 1119 | 'table_name' => 'civicrm_event', |
1120 | 'entity' => 'Event', | |
1121 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1122 | 'localizable' => 1, |
e501603b TO |
1123 | 'html' => array( |
1124 | 'type' => 'Text', | |
1125 | ) , | |
1126 | ) , | |
1127 | 'pay_later_receipt' => array( | |
1128 | 'name' => 'pay_later_receipt', | |
1129 | 'type' => CRM_Utils_Type::T_TEXT, | |
1130 | 'title' => ts('Pay Later Receipt Text') , | |
1131 | 'description' => 'The receipt sent to the user instead of the normal receipt text', | |
522a26c9 | 1132 | 'table_name' => 'civicrm_event', |
1133 | 'entity' => 'Event', | |
1134 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1135 | 'localizable' => 1, |
e501603b TO |
1136 | 'html' => array( |
1137 | 'type' => 'Text', | |
1138 | ) , | |
1139 | ) , | |
1140 | 'is_partial_payment' => array( | |
1141 | 'name' => 'is_partial_payment', | |
1142 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1143 | 'title' => ts('Partial Payments Enabled') , | |
1144 | 'description' => 'is partial payment enabled for this event', | |
522a26c9 | 1145 | 'table_name' => 'civicrm_event', |
1146 | 'entity' => 'Event', | |
1147 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1148 | 'localizable' => 0, |
e501603b TO |
1149 | 'html' => array( |
1150 | 'type' => 'CheckBox', | |
1151 | ) , | |
1152 | ) , | |
1153 | 'initial_amount_label' => array( | |
1154 | 'name' => 'initial_amount_label', | |
1155 | 'type' => CRM_Utils_Type::T_STRING, | |
1156 | 'title' => ts('Initial Amount Label') , | |
1157 | 'description' => 'Initial amount label for partial payment', | |
1158 | 'maxlength' => 255, | |
1159 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 1160 | 'table_name' => 'civicrm_event', |
1161 | 'entity' => 'Event', | |
1162 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1163 | 'localizable' => 1, |
e501603b TO |
1164 | 'html' => array( |
1165 | 'type' => 'Text', | |
1166 | ) , | |
1167 | ) , | |
1168 | 'initial_amount_help_text' => array( | |
1169 | 'name' => 'initial_amount_help_text', | |
1170 | 'type' => CRM_Utils_Type::T_TEXT, | |
1171 | 'title' => ts('Initial Amount Help Text') , | |
1172 | 'description' => 'Initial amount help text for partial payment', | |
522a26c9 | 1173 | 'table_name' => 'civicrm_event', |
1174 | 'entity' => 'Event', | |
1175 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1176 | 'localizable' => 1, |
e501603b TO |
1177 | 'html' => array( |
1178 | 'type' => 'Text', | |
1179 | ) , | |
1180 | ) , | |
1181 | 'min_initial_amount' => array( | |
1182 | 'name' => 'min_initial_amount', | |
1183 | 'type' => CRM_Utils_Type::T_MONEY, | |
1184 | 'title' => ts('Minimum Initial Amount') , | |
1185 | 'description' => 'Minimum initial amount for partial payment', | |
1186 | 'precision' => array( | |
1187 | 20, | |
1188 | 2 | |
1189 | ) , | |
522a26c9 | 1190 | 'table_name' => 'civicrm_event', |
1191 | 'entity' => 'Event', | |
1192 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1193 | 'localizable' => 0, |
e501603b TO |
1194 | 'html' => array( |
1195 | 'type' => 'Text', | |
1196 | ) , | |
1197 | ) , | |
1198 | 'is_multiple_registrations' => array( | |
1199 | 'name' => 'is_multiple_registrations', | |
1200 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1201 | 'title' => ts('Allow Multiple Registrations') , | |
1202 | 'description' => 'if true - allows the user to register multiple participants for event', | |
522a26c9 | 1203 | 'table_name' => 'civicrm_event', |
1204 | 'entity' => 'Event', | |
1205 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1206 | 'localizable' => 0, |
e501603b TO |
1207 | 'html' => array( |
1208 | 'type' => 'CheckBox', | |
1209 | ) , | |
1210 | ) , | |
1211 | 'max_additional_participants' => array( | |
1212 | 'name' => 'max_additional_participants', | |
1213 | 'type' => CRM_Utils_Type::T_INT, | |
1214 | 'title' => ts('Maximum number of additional participants per registration') , | |
1215 | 'description' => 'Maximum number of additional participants that can be registered on a single booking', | |
522a26c9 | 1216 | 'table_name' => 'civicrm_event', |
1217 | 'entity' => 'Event', | |
1218 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1219 | 'localizable' => 0, |
e501603b TO |
1220 | ) , |
1221 | 'allow_same_participant_emails' => array( | |
1222 | 'name' => 'allow_same_participant_emails', | |
1223 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1224 | 'title' => ts('Does Event allow multiple registrations from same email address?') , | |
1225 | 'description' => 'if true - allows the user to register multiple registrations from same email address.', | |
522a26c9 | 1226 | 'table_name' => 'civicrm_event', |
1227 | 'entity' => 'Event', | |
1228 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1229 | 'localizable' => 0, |
e501603b TO |
1230 | 'html' => array( |
1231 | 'type' => 'CheckBox', | |
1232 | ) , | |
1233 | ) , | |
1234 | 'has_waitlist' => array( | |
1235 | 'name' => 'has_waitlist', | |
1236 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1237 | 'title' => ts('Waitlist Enabled') , | |
1238 | 'description' => 'Whether the event has waitlist support.', | |
522a26c9 | 1239 | 'table_name' => 'civicrm_event', |
1240 | 'entity' => 'Event', | |
1241 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1242 | 'localizable' => 0, |
e501603b TO |
1243 | 'html' => array( |
1244 | 'type' => 'CheckBox', | |
1245 | ) , | |
1246 | ) , | |
1247 | 'requires_approval' => array( | |
1248 | 'name' => 'requires_approval', | |
1249 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1250 | 'title' => ts('Requires Approval') , | |
1251 | 'description' => 'Whether participants require approval before they can finish registering.', | |
522a26c9 | 1252 | 'table_name' => 'civicrm_event', |
1253 | 'entity' => 'Event', | |
1254 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1255 | 'localizable' => 0, |
e501603b TO |
1256 | 'html' => array( |
1257 | 'type' => 'CheckBox', | |
1258 | ) , | |
1259 | ) , | |
1260 | 'expiration_time' => array( | |
1261 | 'name' => 'expiration_time', | |
1262 | 'type' => CRM_Utils_Type::T_INT, | |
1263 | 'title' => ts('Expiration Time') , | |
1264 | 'description' => 'Expire pending but unconfirmed registrations after this many hours.', | |
522a26c9 | 1265 | 'table_name' => 'civicrm_event', |
1266 | 'entity' => 'Event', | |
1267 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1268 | 'localizable' => 0, |
e501603b TO |
1269 | 'html' => array( |
1270 | 'type' => 'Text', | |
1271 | ) , | |
1272 | ) , | |
1273 | 'allow_selfcancelxfer' => array( | |
1274 | 'name' => 'allow_selfcancelxfer', | |
1275 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1276 | 'title' => ts('Allow Self-service Cancellation or Transfer') , | |
1277 | 'description' => 'Allow self service cancellation or transfer for event?', | |
522a26c9 | 1278 | 'table_name' => 'civicrm_event', |
1279 | 'entity' => 'Event', | |
1280 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1281 | 'localizable' => 0, |
e501603b TO |
1282 | 'html' => array( |
1283 | 'type' => 'CheckBox', | |
1284 | ) , | |
1285 | ) , | |
1286 | 'selfcancelxfer_time' => array( | |
1287 | 'name' => 'selfcancelxfer_time', | |
1288 | 'type' => CRM_Utils_Type::T_INT, | |
1289 | 'title' => ts('Self-service Cancellation or Transfer Time') , | |
1290 | 'description' => 'Number of hours prior to event start date to allow self-service cancellation or transfer.', | |
522a26c9 | 1291 | 'table_name' => 'civicrm_event', |
1292 | 'entity' => 'Event', | |
1293 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1294 | 'localizable' => 0, |
e501603b TO |
1295 | 'html' => array( |
1296 | 'type' => 'Text', | |
1297 | ) , | |
1298 | ) , | |
1299 | 'waitlist_text' => array( | |
1300 | 'name' => 'waitlist_text', | |
1301 | 'type' => CRM_Utils_Type::T_TEXT, | |
1302 | 'title' => ts('Waitlist Text') , | |
1303 | 'description' => 'Text to display when the event is full, but participants can signup for a waitlist.', | |
1304 | 'rows' => 4, | |
1305 | 'cols' => 60, | |
522a26c9 | 1306 | 'table_name' => 'civicrm_event', |
1307 | 'entity' => 'Event', | |
1308 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1309 | 'localizable' => 1, |
e501603b TO |
1310 | 'html' => array( |
1311 | 'type' => 'TextArea', | |
1312 | ) , | |
1313 | ) , | |
1314 | 'approval_req_text' => array( | |
1315 | 'name' => 'approval_req_text', | |
1316 | 'type' => CRM_Utils_Type::T_TEXT, | |
1317 | 'title' => ts('Approval Req Text') , | |
1318 | 'description' => 'Text to display when the approval is required to complete registration for an event.', | |
1319 | 'rows' => 4, | |
1320 | 'cols' => 60, | |
522a26c9 | 1321 | 'table_name' => 'civicrm_event', |
1322 | 'entity' => 'Event', | |
1323 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1324 | 'localizable' => 1, |
e501603b TO |
1325 | 'html' => array( |
1326 | 'type' => 'TextArea', | |
1327 | ) , | |
1328 | ) , | |
1329 | 'is_template' => array( | |
1330 | 'name' => 'is_template', | |
1331 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1332 | 'title' => ts('Is an Event Template') , | |
1333 | 'description' => 'whether the event has template', | |
1334 | 'required' => true, | |
522a26c9 | 1335 | 'table_name' => 'civicrm_event', |
1336 | 'entity' => 'Event', | |
1337 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1338 | 'localizable' => 0, |
e501603b TO |
1339 | 'html' => array( |
1340 | 'type' => 'CheckBox', | |
1341 | ) , | |
1342 | ) , | |
1343 | 'template_title' => array( | |
1344 | 'name' => 'template_title', | |
1345 | 'type' => CRM_Utils_Type::T_STRING, | |
1346 | 'title' => ts('Event Template Title') , | |
1347 | 'description' => 'Event Template Title', | |
1348 | 'maxlength' => 255, | |
1349 | 'size' => CRM_Utils_Type::HUGE, | |
1350 | 'import' => true, | |
1351 | 'where' => 'civicrm_event.template_title', | |
1352 | 'headerPattern' => '/(template.)?title$/i', | |
1353 | 'dataPattern' => '', | |
1354 | 'export' => true, | |
522a26c9 | 1355 | 'table_name' => 'civicrm_event', |
1356 | 'entity' => 'Event', | |
1357 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1358 | 'localizable' => 1, |
e501603b TO |
1359 | 'html' => array( |
1360 | 'type' => 'Text', | |
1361 | ) , | |
1362 | ) , | |
1363 | 'created_id' => array( | |
1364 | 'name' => 'created_id', | |
1365 | 'type' => CRM_Utils_Type::T_INT, | |
1366 | 'title' => ts('Created By Contact ID') , | |
1367 | 'description' => 'FK to civicrm_contact, who created this event', | |
522a26c9 | 1368 | 'table_name' => 'civicrm_event', |
1369 | 'entity' => 'Event', | |
1370 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1371 | 'localizable' => 0, |
e501603b TO |
1372 | 'FKClassName' => 'CRM_Contact_DAO_Contact', |
1373 | ) , | |
1374 | 'created_date' => array( | |
1375 | 'name' => 'created_date', | |
1376 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
1377 | 'title' => ts('Event Created Date') , | |
1378 | 'description' => 'Date and time that event was created.', | |
522a26c9 | 1379 | 'table_name' => 'civicrm_event', |
1380 | 'entity' => 'Event', | |
1381 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1382 | 'localizable' => 0, |
e501603b TO |
1383 | ) , |
1384 | 'currency' => array( | |
1385 | 'name' => 'currency', | |
1386 | 'type' => CRM_Utils_Type::T_STRING, | |
1387 | 'title' => ts('Currency') , | |
1388 | 'description' => '3 character string, value from config setting or input via user.', | |
1389 | 'maxlength' => 3, | |
1390 | 'size' => CRM_Utils_Type::FOUR, | |
1391 | 'import' => true, | |
1392 | 'where' => 'civicrm_event.currency', | |
1393 | 'headerPattern' => '/cur(rency)?/i', | |
1394 | 'dataPattern' => '/^[A-Z]{3}$/i', | |
1395 | 'export' => true, | |
522a26c9 | 1396 | 'table_name' => 'civicrm_event', |
1397 | 'entity' => 'Event', | |
1398 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1399 | 'localizable' => 0, |
e501603b TO |
1400 | 'html' => array( |
1401 | 'type' => 'Select', | |
1402 | ) , | |
1403 | 'pseudoconstant' => array( | |
1404 | 'table' => 'civicrm_currency', | |
1405 | 'keyColumn' => 'name', | |
1406 | 'labelColumn' => 'full_name', | |
1407 | 'nameColumn' => 'name', | |
1408 | ) | |
1409 | ) , | |
1410 | 'campaign_id' => array( | |
1411 | 'name' => 'campaign_id', | |
1412 | 'type' => CRM_Utils_Type::T_INT, | |
1413 | 'title' => ts('Campaign') , | |
1414 | 'description' => 'The campaign for which this event has been created.', | |
522a26c9 | 1415 | 'table_name' => 'civicrm_event', |
1416 | 'entity' => 'Event', | |
1417 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1418 | 'localizable' => 0, |
e501603b TO |
1419 | 'FKClassName' => 'CRM_Campaign_DAO_Campaign', |
1420 | 'html' => array( | |
1421 | 'type' => 'EntityRef', | |
1422 | ) , | |
1423 | 'pseudoconstant' => array( | |
1424 | 'table' => 'civicrm_campaign', | |
1425 | 'keyColumn' => 'id', | |
1426 | 'labelColumn' => 'title', | |
1427 | ) | |
1428 | ) , | |
1429 | 'is_share' => array( | |
1430 | 'name' => 'is_share', | |
1431 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1432 | 'title' => ts('Is shared through social media') , | |
1433 | 'description' => 'Can people share the event through social media?', | |
1434 | 'default' => '1', | |
522a26c9 | 1435 | 'table_name' => 'civicrm_event', |
1436 | 'entity' => 'Event', | |
1437 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1438 | 'localizable' => 0, |
e501603b TO |
1439 | 'html' => array( |
1440 | 'type' => 'CheckBox', | |
1441 | ) , | |
1442 | ) , | |
1443 | 'is_confirm_enabled' => array( | |
1444 | 'name' => 'is_confirm_enabled', | |
1445 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1446 | 'title' => ts('Is the booking confirmation screen enabled?') , | |
1447 | 'description' => 'If false, the event booking confirmation screen gets skipped', | |
1448 | 'default' => '1', | |
522a26c9 | 1449 | 'table_name' => 'civicrm_event', |
1450 | 'entity' => 'Event', | |
1451 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1452 | 'localizable' => 0, |
e501603b TO |
1453 | 'html' => array( |
1454 | 'type' => 'CheckBox', | |
1455 | ) , | |
1456 | ) , | |
1457 | 'parent_event_id' => array( | |
1458 | 'name' => 'parent_event_id', | |
1459 | 'type' => CRM_Utils_Type::T_INT, | |
1460 | 'title' => ts('Parent Event ID') , | |
1461 | 'description' => 'Implicit FK to civicrm_event: parent event', | |
1462 | 'default' => 'NULL', | |
522a26c9 | 1463 | 'table_name' => 'civicrm_event', |
1464 | 'entity' => 'Event', | |
1465 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1466 | 'localizable' => 0, |
e501603b TO |
1467 | 'html' => array( |
1468 | 'type' => 'EntityRef', | |
1469 | ) , | |
1470 | ) , | |
1471 | 'slot_label_id' => array( | |
1472 | 'name' => 'slot_label_id', | |
1473 | 'type' => CRM_Utils_Type::T_INT, | |
1474 | 'title' => ts('Subevent Slot Label ID') , | |
1475 | 'description' => 'Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.', | |
1476 | 'default' => 'NULL', | |
522a26c9 | 1477 | 'table_name' => 'civicrm_event', |
1478 | 'entity' => 'Event', | |
1479 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1480 | 'localizable' => 0, |
e501603b TO |
1481 | 'html' => array( |
1482 | 'type' => 'Select', | |
1483 | ) , | |
1484 | ) , | |
1485 | 'dedupe_rule_group_id' => array( | |
1486 | 'name' => 'dedupe_rule_group_id', | |
1487 | 'type' => CRM_Utils_Type::T_INT, | |
1488 | 'title' => ts('Dedupe Rule') , | |
1489 | 'description' => 'Rule to use when matching registrations for this event', | |
1490 | 'default' => 'NULL', | |
522a26c9 | 1491 | 'table_name' => 'civicrm_event', |
1492 | 'entity' => 'Event', | |
1493 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1494 | 'localizable' => 0, |
e501603b TO |
1495 | 'FKClassName' => 'CRM_Dedupe_DAO_RuleGroup', |
1496 | 'html' => array( | |
1497 | 'type' => 'Select', | |
1498 | ) , | |
1499 | 'pseudoconstant' => array( | |
1500 | 'table' => 'civicrm_dedupe_rule_group', | |
1501 | 'keyColumn' => 'id', | |
1502 | 'labelColumn' => 'title', | |
1503 | 'nameColumn' => 'name', | |
1504 | ) | |
1505 | ) , | |
1506 | 'is_billing_required' => array( | |
1507 | 'name' => 'is_billing_required', | |
1508 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1509 | 'title' => ts('Is billing block required') , | |
1510 | 'description' => 'if true than billing block is required this event', | |
522a26c9 | 1511 | 'table_name' => 'civicrm_event', |
1512 | 'entity' => 'Event', | |
1513 | 'bao' => 'CRM_Event_BAO_Event', | |
6a7e5e5d | 1514 | 'localizable' => 0, |
e501603b TO |
1515 | 'html' => array( |
1516 | 'type' => 'CheckBox', | |
1517 | ) , | |
1518 | ) , | |
1519 | ); | |
346aaaba | 1520 | CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); |
e501603b | 1521 | } |
346aaaba | 1522 | return Civi::$statics[__CLASS__]['fields']; |
e501603b TO |
1523 | } |
1524 | /** | |
bd8e0b14 | 1525 | * Return a mapping from field-name to the corresponding key (as used in fields()). |
e501603b TO |
1526 | * |
1527 | * @return array | |
bd8e0b14 | 1528 | * Array(string $name => string $uniqueName). |
e501603b TO |
1529 | */ |
1530 | static function &fieldKeys() { | |
bd8e0b14 TO |
1531 | if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) { |
1532 | Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields())); | |
e501603b | 1533 | } |
bd8e0b14 | 1534 | return Civi::$statics[__CLASS__]['fieldKeys']; |
e501603b TO |
1535 | } |
1536 | /** | |
1537 | * Returns the names of this table | |
1538 | * | |
1539 | * @return string | |
1540 | */ | |
1541 | static function getTableName() { | |
1542 | return CRM_Core_DAO::getLocaleTableName(self::$_tableName); | |
1543 | } | |
1544 | /** | |
1545 | * Returns if this table needs to be logged | |
1546 | * | |
1547 | * @return boolean | |
1548 | */ | |
1549 | function getLog() { | |
1550 | return self::$_log; | |
1551 | } | |
1552 | /** | |
1553 | * Returns the list of fields that can be imported | |
1554 | * | |
1555 | * @param bool $prefix | |
1556 | * | |
1557 | * @return array | |
1558 | */ | |
1559 | static function &import($prefix = false) { | |
60808919 TO |
1560 | $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'event', $prefix, array()); |
1561 | return $r; | |
e501603b TO |
1562 | } |
1563 | /** | |
1564 | * Returns the list of fields that can be exported | |
1565 | * | |
1566 | * @param bool $prefix | |
1567 | * | |
1568 | * @return array | |
1569 | */ | |
1570 | static function &export($prefix = false) { | |
60808919 TO |
1571 | $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'event', $prefix, array()); |
1572 | return $r; | |
e501603b TO |
1573 | } |
1574 | } |