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 | |
522a26c9 | 33 | * (GenCodeChecksum:014eddf6b4d26ee14495d25e73ed6b64) |
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', | |
e501603b TO |
507 | ) , |
508 | 'event_title' => array( | |
509 | 'name' => 'title', | |
510 | 'type' => CRM_Utils_Type::T_STRING, | |
511 | 'title' => ts('Event Title') , | |
512 | 'description' => 'Event Title (e.g. Fall Fundraiser Dinner)', | |
513 | 'maxlength' => 255, | |
514 | 'size' => CRM_Utils_Type::HUGE, | |
515 | 'import' => true, | |
516 | 'where' => 'civicrm_event.title', | |
517 | 'headerPattern' => '/(event.)?title$/i', | |
518 | 'dataPattern' => '', | |
519 | 'export' => true, | |
522a26c9 | 520 | 'table_name' => 'civicrm_event', |
521 | 'entity' => 'Event', | |
522 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
523 | 'html' => array( |
524 | 'type' => 'Text', | |
525 | ) , | |
526 | ) , | |
527 | 'summary' => array( | |
528 | 'name' => 'summary', | |
529 | 'type' => CRM_Utils_Type::T_TEXT, | |
530 | 'title' => ts('Event Summary') , | |
531 | '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.', | |
532 | 'rows' => 4, | |
533 | 'cols' => 60, | |
522a26c9 | 534 | 'table_name' => 'civicrm_event', |
535 | 'entity' => 'Event', | |
536 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
537 | 'html' => array( |
538 | 'type' => 'TextArea', | |
539 | ) , | |
540 | ) , | |
541 | 'event_description' => array( | |
542 | 'name' => 'description', | |
543 | 'type' => CRM_Utils_Type::T_TEXT, | |
544 | 'title' => ts('Event Description') , | |
545 | 'description' => 'Full description of event. Text and html allowed. Displayed on built-in Event Information screens.', | |
546 | 'rows' => 8, | |
547 | 'cols' => 60, | |
522a26c9 | 548 | 'table_name' => 'civicrm_event', |
549 | 'entity' => 'Event', | |
550 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
551 | 'html' => array( |
552 | 'type' => 'TextArea', | |
553 | ) , | |
554 | ) , | |
555 | 'event_type_id' => array( | |
556 | 'name' => 'event_type_id', | |
557 | 'type' => CRM_Utils_Type::T_INT, | |
558 | 'title' => ts('Event Type') , | |
559 | 'description' => 'Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.', | |
522a26c9 | 560 | 'table_name' => 'civicrm_event', |
561 | 'entity' => 'Event', | |
562 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
563 | 'html' => array( |
564 | 'type' => 'Select', | |
565 | ) , | |
566 | 'pseudoconstant' => array( | |
567 | 'optionGroupName' => 'event_type', | |
568 | 'optionEditPath' => 'civicrm/admin/options/event_type', | |
569 | ) | |
570 | ) , | |
571 | 'participant_listing_id' => array( | |
572 | 'name' => 'participant_listing_id', | |
573 | 'type' => CRM_Utils_Type::T_INT, | |
574 | 'title' => ts('Participant Listing') , | |
575 | 'description' => 'Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.', | |
522a26c9 | 576 | 'table_name' => 'civicrm_event', |
577 | 'entity' => 'Event', | |
578 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
579 | 'html' => array( |
580 | 'type' => 'Select', | |
581 | ) , | |
582 | 'pseudoconstant' => array( | |
583 | 'optionGroupName' => 'participant_listing', | |
584 | 'optionEditPath' => 'civicrm/admin/options/participant_listing', | |
585 | ) | |
586 | ) , | |
587 | 'is_public' => array( | |
588 | 'name' => 'is_public', | |
589 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
590 | 'title' => ts('Is Event Public') , | |
591 | 'description' => 'Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs.', | |
592 | 'default' => '1', | |
522a26c9 | 593 | 'table_name' => 'civicrm_event', |
594 | 'entity' => 'Event', | |
595 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
596 | 'html' => array( |
597 | 'type' => 'CheckBox', | |
598 | ) , | |
599 | ) , | |
600 | 'event_start_date' => array( | |
601 | 'name' => 'start_date', | |
602 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
603 | 'title' => ts('Event Start Date') , | |
604 | 'description' => 'Date and time that event starts.', | |
605 | 'import' => true, | |
606 | 'where' => 'civicrm_event.start_date', | |
607 | 'headerPattern' => '/^start|(s(tart\s)?date)$/i', | |
608 | 'dataPattern' => '', | |
609 | 'export' => true, | |
522a26c9 | 610 | 'table_name' => 'civicrm_event', |
611 | 'entity' => 'Event', | |
612 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
613 | 'html' => array( |
614 | 'type' => 'Select Date', | |
615 | ) , | |
616 | ) , | |
617 | 'event_end_date' => array( | |
618 | 'name' => 'end_date', | |
619 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
620 | 'title' => ts('Event End Date') , | |
621 | 'description' => 'Date and time that event ends. May be NULL if no defined end date/time', | |
622 | 'import' => true, | |
623 | 'where' => 'civicrm_event.end_date', | |
624 | 'headerPattern' => '/^end|(e(nd\s)?date)$/i', | |
625 | 'dataPattern' => '', | |
626 | 'export' => true, | |
522a26c9 | 627 | 'table_name' => 'civicrm_event', |
628 | 'entity' => 'Event', | |
629 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
630 | 'html' => array( |
631 | 'type' => 'Select Date', | |
632 | ) , | |
633 | ) , | |
634 | 'is_online_registration' => array( | |
635 | 'name' => 'is_online_registration', | |
636 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
637 | 'title' => ts('Is Online Registration') , | |
638 | 'description' => 'If true, include registration link on Event Info page.', | |
522a26c9 | 639 | 'table_name' => 'civicrm_event', |
640 | 'entity' => 'Event', | |
641 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
642 | 'html' => array( |
643 | 'type' => 'CheckBox', | |
644 | ) , | |
645 | ) , | |
646 | 'registration_link_text' => array( | |
647 | 'name' => 'registration_link_text', | |
648 | 'type' => CRM_Utils_Type::T_STRING, | |
649 | 'title' => ts('Event Registration Link Text') , | |
650 | 'description' => 'Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true.', | |
651 | 'maxlength' => 255, | |
652 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 653 | 'table_name' => 'civicrm_event', |
654 | 'entity' => 'Event', | |
655 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
656 | 'html' => array( |
657 | 'type' => 'Text', | |
658 | ) , | |
659 | ) , | |
660 | 'registration_start_date' => array( | |
661 | 'name' => 'registration_start_date', | |
662 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
663 | 'title' => ts('Registration Start Date') , | |
664 | 'description' => 'Date and time that online registration starts.', | |
522a26c9 | 665 | 'table_name' => 'civicrm_event', |
666 | 'entity' => 'Event', | |
667 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
668 | 'html' => array( |
669 | 'type' => 'Select Date', | |
670 | ) , | |
671 | ) , | |
672 | 'registration_end_date' => array( | |
673 | 'name' => 'registration_end_date', | |
674 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
675 | 'title' => ts('Registration End Date') , | |
676 | 'description' => 'Date and time that online registration ends.', | |
522a26c9 | 677 | 'table_name' => 'civicrm_event', |
678 | 'entity' => 'Event', | |
679 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
680 | 'html' => array( |
681 | 'type' => 'Select Date', | |
682 | ) , | |
683 | ) , | |
684 | 'max_participants' => array( | |
685 | 'name' => 'max_participants', | |
686 | 'type' => CRM_Utils_Type::T_INT, | |
687 | 'title' => ts('Max Participants') , | |
688 | '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.', | |
689 | 'default' => 'NULL', | |
522a26c9 | 690 | 'table_name' => 'civicrm_event', |
691 | 'entity' => 'Event', | |
692 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
693 | 'html' => array( |
694 | 'type' => 'Text', | |
695 | ) , | |
696 | ) , | |
697 | 'event_full_text' => array( | |
698 | 'name' => 'event_full_text', | |
699 | 'type' => CRM_Utils_Type::T_TEXT, | |
700 | 'title' => ts('Event Information') , | |
701 | '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.', | |
702 | 'rows' => 4, | |
703 | 'cols' => 60, | |
522a26c9 | 704 | 'table_name' => 'civicrm_event', |
705 | 'entity' => 'Event', | |
706 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
707 | 'html' => array( |
708 | 'type' => 'TextArea', | |
709 | ) , | |
710 | ) , | |
711 | 'is_monetary' => array( | |
712 | 'name' => 'is_monetary', | |
713 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
714 | 'title' => ts('Is this a PAID event?') , | |
715 | 'description' => 'If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.', | |
522a26c9 | 716 | 'table_name' => 'civicrm_event', |
717 | 'entity' => 'Event', | |
718 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
719 | 'html' => array( |
720 | 'type' => 'CheckBox', | |
721 | ) , | |
722 | ) , | |
723 | 'financial_type_id' => array( | |
724 | 'name' => 'financial_type_id', | |
725 | 'type' => CRM_Utils_Type::T_INT, | |
726 | 'title' => ts('Financial Type') , | |
727 | 'description' => 'Financial type assigned to paid event registrations for this event. Required if is_monetary is true.', | |
728 | 'default' => 'NULL', | |
522a26c9 | 729 | 'table_name' => 'civicrm_event', |
730 | 'entity' => 'Event', | |
731 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
732 | 'html' => array( |
733 | 'type' => 'Select', | |
734 | ) , | |
735 | 'pseudoconstant' => array( | |
736 | 'table' => 'civicrm_financial_type', | |
737 | 'keyColumn' => 'id', | |
738 | 'labelColumn' => 'name', | |
739 | ) | |
740 | ) , | |
741 | 'payment_processor' => array( | |
742 | 'name' => 'payment_processor', | |
743 | 'type' => CRM_Utils_Type::T_STRING, | |
744 | 'title' => ts('Payment Processor') , | |
745 | 'description' => 'Payment Processors configured for this Event (if is_monetary is true)', | |
746 | 'maxlength' => 128, | |
747 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 748 | 'table_name' => 'civicrm_event', |
749 | 'entity' => 'Event', | |
750 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
751 | 'html' => array( |
752 | 'type' => 'Select', | |
753 | ) , | |
754 | 'pseudoconstant' => array( | |
755 | 'table' => 'civicrm_payment_processor', | |
756 | 'keyColumn' => 'id', | |
757 | 'labelColumn' => 'name', | |
758 | ) | |
759 | ) , | |
760 | 'is_map' => array( | |
761 | 'name' => 'is_map', | |
762 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
763 | 'title' => ts('Map Enabled') , | |
764 | 'description' => 'Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified?', | |
522a26c9 | 765 | 'table_name' => 'civicrm_event', |
766 | 'entity' => 'Event', | |
767 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
768 | 'html' => array( |
769 | 'type' => 'CheckBox', | |
770 | ) , | |
771 | ) , | |
772 | 'is_active' => array( | |
773 | 'name' => 'is_active', | |
774 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
775 | 'title' => ts('Is Active') , | |
776 | 'description' => 'Is this Event enabled or disabled/cancelled?', | |
522a26c9 | 777 | 'table_name' => 'civicrm_event', |
778 | 'entity' => 'Event', | |
779 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
780 | 'html' => array( |
781 | 'type' => 'CheckBox', | |
782 | ) , | |
783 | ) , | |
784 | 'fee_label' => array( | |
785 | 'name' => 'fee_label', | |
786 | 'type' => CRM_Utils_Type::T_STRING, | |
787 | 'title' => ts('Fee Label') , | |
788 | 'maxlength' => 255, | |
789 | 'size' => CRM_Utils_Type::HUGE, | |
790 | 'import' => true, | |
791 | 'where' => 'civicrm_event.fee_label', | |
792 | 'headerPattern' => '/^fee|(f(ee\s)?label)$/i', | |
793 | 'dataPattern' => '', | |
794 | 'export' => true, | |
522a26c9 | 795 | 'table_name' => 'civicrm_event', |
796 | 'entity' => 'Event', | |
797 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
798 | 'html' => array( |
799 | 'type' => 'Text', | |
800 | ) , | |
801 | ) , | |
802 | 'is_show_location' => array( | |
803 | 'name' => 'is_show_location', | |
804 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
805 | 'title' => ts('show location') , | |
806 | 'description' => 'If true, show event location.', | |
807 | 'default' => '1', | |
522a26c9 | 808 | 'table_name' => 'civicrm_event', |
809 | 'entity' => 'Event', | |
810 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
811 | 'html' => array( |
812 | 'type' => 'CheckBox', | |
813 | ) , | |
814 | ) , | |
815 | 'loc_block_id' => array( | |
816 | 'name' => 'loc_block_id', | |
817 | 'type' => CRM_Utils_Type::T_INT, | |
818 | 'title' => ts('Location Block ID') , | |
819 | 'description' => 'FK to Location Block ID', | |
522a26c9 | 820 | 'table_name' => 'civicrm_event', |
821 | 'entity' => 'Event', | |
822 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
823 | 'FKClassName' => 'CRM_Core_DAO_LocBlock', |
824 | ) , | |
825 | 'default_role_id' => array( | |
826 | 'name' => 'default_role_id', | |
827 | 'type' => CRM_Utils_Type::T_INT, | |
828 | 'title' => ts('Default Role') , | |
829 | 'description' => 'Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.', | |
830 | 'import' => true, | |
831 | 'where' => 'civicrm_event.default_role_id', | |
832 | 'headerPattern' => '', | |
833 | 'dataPattern' => '', | |
834 | 'export' => true, | |
835 | 'default' => '1', | |
522a26c9 | 836 | 'table_name' => 'civicrm_event', |
837 | 'entity' => 'Event', | |
838 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
839 | 'html' => array( |
840 | 'type' => 'Select', | |
841 | ) , | |
842 | 'pseudoconstant' => array( | |
843 | 'optionGroupName' => 'participant_role', | |
844 | 'optionEditPath' => 'civicrm/admin/options/participant_role', | |
845 | ) | |
846 | ) , | |
847 | 'intro_text' => array( | |
848 | 'name' => 'intro_text', | |
849 | 'type' => CRM_Utils_Type::T_TEXT, | |
850 | 'title' => ts('Introductory Message') , | |
851 | 'description' => 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.', | |
852 | 'rows' => 6, | |
853 | 'cols' => 50, | |
522a26c9 | 854 | 'table_name' => 'civicrm_event', |
855 | 'entity' => 'Event', | |
856 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
857 | 'html' => array( |
858 | 'type' => 'TextArea', | |
859 | ) , | |
860 | ) , | |
861 | 'footer_text' => array( | |
862 | 'name' => 'footer_text', | |
863 | 'type' => CRM_Utils_Type::T_TEXT, | |
864 | 'title' => ts('Footer Message') , | |
865 | 'description' => 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.', | |
866 | 'rows' => 6, | |
867 | 'cols' => 50, | |
522a26c9 | 868 | 'table_name' => 'civicrm_event', |
869 | 'entity' => 'Event', | |
870 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
871 | 'html' => array( |
872 | 'type' => 'TextArea', | |
873 | ) , | |
874 | ) , | |
875 | 'confirm_title' => array( | |
876 | 'name' => 'confirm_title', | |
877 | 'type' => CRM_Utils_Type::T_STRING, | |
878 | 'title' => ts('Confirmation Title') , | |
879 | 'description' => 'Title for Confirmation page.', | |
880 | 'maxlength' => 255, | |
881 | 'size' => CRM_Utils_Type::HUGE, | |
882 | 'default' => 'NULL', | |
522a26c9 | 883 | 'table_name' => 'civicrm_event', |
884 | 'entity' => 'Event', | |
885 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
886 | 'html' => array( |
887 | 'type' => 'Text', | |
888 | ) , | |
889 | ) , | |
890 | 'confirm_text' => array( | |
891 | 'name' => 'confirm_text', | |
892 | 'type' => CRM_Utils_Type::T_TEXT, | |
893 | 'title' => ts('Confirm Text') , | |
894 | 'description' => 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.', | |
895 | 'rows' => 6, | |
896 | 'cols' => 50, | |
522a26c9 | 897 | 'table_name' => 'civicrm_event', |
898 | 'entity' => 'Event', | |
899 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
900 | 'html' => array( |
901 | 'type' => 'TextArea', | |
902 | ) , | |
903 | ) , | |
904 | 'confirm_footer_text' => array( | |
905 | 'name' => 'confirm_footer_text', | |
906 | 'type' => CRM_Utils_Type::T_TEXT, | |
907 | 'title' => ts('Footer Text') , | |
908 | 'description' => 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.', | |
909 | 'rows' => 6, | |
910 | 'cols' => 50, | |
522a26c9 | 911 | 'table_name' => 'civicrm_event', |
912 | 'entity' => 'Event', | |
913 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
914 | 'html' => array( |
915 | 'type' => 'TextArea', | |
916 | ) , | |
917 | ) , | |
918 | 'is_email_confirm' => array( | |
919 | 'name' => 'is_email_confirm', | |
920 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
921 | 'title' => ts('Is confirm email') , | |
922 | 'description' => 'If true, confirmation is automatically emailed to contact on successful registration.', | |
522a26c9 | 923 | 'table_name' => 'civicrm_event', |
924 | 'entity' => 'Event', | |
925 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
926 | 'html' => array( |
927 | 'type' => 'CheckBox', | |
928 | ) , | |
929 | ) , | |
930 | 'confirm_email_text' => array( | |
931 | 'name' => 'confirm_email_text', | |
932 | 'type' => CRM_Utils_Type::T_TEXT, | |
933 | 'title' => ts('Confirmation Email Text') , | |
934 | 'description' => 'text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now', | |
935 | 'rows' => 4, | |
936 | 'cols' => 50, | |
522a26c9 | 937 | 'table_name' => 'civicrm_event', |
938 | 'entity' => 'Event', | |
939 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
940 | 'html' => array( |
941 | 'type' => 'TextArea', | |
942 | ) , | |
943 | ) , | |
944 | 'confirm_from_name' => array( | |
945 | 'name' => 'confirm_from_name', | |
946 | 'type' => CRM_Utils_Type::T_STRING, | |
947 | 'title' => ts('Confirm From Name') , | |
948 | 'description' => 'FROM email name used for confirmation emails.', | |
949 | 'maxlength' => 255, | |
950 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 951 | 'table_name' => 'civicrm_event', |
952 | 'entity' => 'Event', | |
953 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
954 | 'html' => array( |
955 | 'type' => 'Text', | |
956 | ) , | |
957 | ) , | |
958 | 'confirm_from_email' => array( | |
959 | 'name' => 'confirm_from_email', | |
960 | 'type' => CRM_Utils_Type::T_STRING, | |
961 | 'title' => ts('Confirm From Email') , | |
962 | 'description' => 'FROM email address used for confirmation emails.', | |
963 | 'maxlength' => 255, | |
964 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 965 | 'table_name' => 'civicrm_event', |
966 | 'entity' => 'Event', | |
967 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
968 | 'html' => array( |
969 | 'type' => 'Text', | |
970 | ) , | |
971 | ) , | |
972 | 'cc_confirm' => array( | |
973 | 'name' => 'cc_confirm', | |
974 | 'type' => CRM_Utils_Type::T_STRING, | |
975 | 'title' => ts('Cc Confirm') , | |
976 | 'description' => 'comma-separated list of email addresses to cc each time a confirmation is sent', | |
977 | 'maxlength' => 255, | |
978 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 979 | 'table_name' => 'civicrm_event', |
980 | 'entity' => 'Event', | |
981 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
982 | 'html' => array( |
983 | 'type' => 'Text', | |
984 | ) , | |
985 | ) , | |
986 | 'bcc_confirm' => array( | |
987 | 'name' => 'bcc_confirm', | |
988 | 'type' => CRM_Utils_Type::T_STRING, | |
989 | 'title' => ts('Bcc Confirm') , | |
990 | 'description' => 'comma-separated list of email addresses to bcc each time a confirmation is sent', | |
991 | 'maxlength' => 255, | |
992 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 993 | 'table_name' => 'civicrm_event', |
994 | 'entity' => 'Event', | |
995 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
996 | 'html' => array( |
997 | 'type' => 'Text', | |
998 | ) , | |
999 | ) , | |
1000 | 'default_fee_id' => array( | |
1001 | 'name' => 'default_fee_id', | |
1002 | 'type' => CRM_Utils_Type::T_INT, | |
1003 | 'title' => ts('Default Fee ID') , | |
1004 | 'description' => 'FK to civicrm_option_value.', | |
522a26c9 | 1005 | 'table_name' => 'civicrm_event', |
1006 | 'entity' => 'Event', | |
1007 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1008 | ) , |
1009 | 'default_discount_fee_id' => array( | |
1010 | 'name' => 'default_discount_fee_id', | |
1011 | 'type' => CRM_Utils_Type::T_INT, | |
1012 | 'title' => ts('Default Discount Fee ID') , | |
1013 | 'description' => 'FK to civicrm_option_value.', | |
522a26c9 | 1014 | 'table_name' => 'civicrm_event', |
1015 | 'entity' => 'Event', | |
1016 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1017 | ) , |
1018 | 'thankyou_title' => array( | |
1019 | 'name' => 'thankyou_title', | |
1020 | 'type' => CRM_Utils_Type::T_STRING, | |
1021 | 'title' => ts('ThankYou Title') , | |
1022 | 'description' => 'Title for ThankYou page.', | |
1023 | 'maxlength' => 255, | |
1024 | 'size' => CRM_Utils_Type::HUGE, | |
1025 | 'default' => 'NULL', | |
522a26c9 | 1026 | 'table_name' => 'civicrm_event', |
1027 | 'entity' => 'Event', | |
1028 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1029 | 'html' => array( |
1030 | 'type' => 'Text', | |
1031 | ) , | |
1032 | ) , | |
1033 | 'thankyou_text' => array( | |
1034 | 'name' => 'thankyou_text', | |
1035 | 'type' => CRM_Utils_Type::T_TEXT, | |
1036 | 'title' => ts('ThankYou Text') , | |
1037 | 'description' => 'ThankYou Text.', | |
1038 | 'rows' => 6, | |
1039 | 'cols' => 50, | |
522a26c9 | 1040 | 'table_name' => 'civicrm_event', |
1041 | 'entity' => 'Event', | |
1042 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1043 | 'html' => array( |
1044 | 'type' => 'TextArea', | |
1045 | ) , | |
1046 | ) , | |
1047 | 'thankyou_footer_text' => array( | |
1048 | 'name' => 'thankyou_footer_text', | |
1049 | 'type' => CRM_Utils_Type::T_TEXT, | |
1050 | 'title' => ts('Footer Text') , | |
1051 | 'description' => 'Footer message.', | |
1052 | 'rows' => 6, | |
1053 | 'cols' => 50, | |
522a26c9 | 1054 | 'table_name' => 'civicrm_event', |
1055 | 'entity' => 'Event', | |
1056 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1057 | 'html' => array( |
1058 | 'type' => 'TextArea', | |
1059 | ) , | |
1060 | ) , | |
1061 | 'is_pay_later' => array( | |
1062 | 'name' => 'is_pay_later', | |
1063 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1064 | 'title' => ts('Pay Later Allowed') , | |
1065 | 'description' => 'if true - allows the user to send payment directly to the org later', | |
522a26c9 | 1066 | 'table_name' => 'civicrm_event', |
1067 | 'entity' => 'Event', | |
1068 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1069 | 'html' => array( |
1070 | 'type' => 'CheckBox', | |
1071 | ) , | |
1072 | ) , | |
1073 | 'pay_later_text' => array( | |
1074 | 'name' => 'pay_later_text', | |
1075 | 'type' => CRM_Utils_Type::T_TEXT, | |
1076 | 'title' => ts('Pay Later Text') , | |
1077 | 'description' => 'The text displayed to the user in the main form', | |
522a26c9 | 1078 | 'table_name' => 'civicrm_event', |
1079 | 'entity' => 'Event', | |
1080 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1081 | 'html' => array( |
1082 | 'type' => 'Text', | |
1083 | ) , | |
1084 | ) , | |
1085 | 'pay_later_receipt' => array( | |
1086 | 'name' => 'pay_later_receipt', | |
1087 | 'type' => CRM_Utils_Type::T_TEXT, | |
1088 | 'title' => ts('Pay Later Receipt Text') , | |
1089 | 'description' => 'The receipt sent to the user instead of the normal receipt text', | |
522a26c9 | 1090 | 'table_name' => 'civicrm_event', |
1091 | 'entity' => 'Event', | |
1092 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1093 | 'html' => array( |
1094 | 'type' => 'Text', | |
1095 | ) , | |
1096 | ) , | |
1097 | 'is_partial_payment' => array( | |
1098 | 'name' => 'is_partial_payment', | |
1099 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1100 | 'title' => ts('Partial Payments Enabled') , | |
1101 | 'description' => 'is partial payment enabled for this event', | |
522a26c9 | 1102 | 'table_name' => 'civicrm_event', |
1103 | 'entity' => 'Event', | |
1104 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1105 | 'html' => array( |
1106 | 'type' => 'CheckBox', | |
1107 | ) , | |
1108 | ) , | |
1109 | 'initial_amount_label' => array( | |
1110 | 'name' => 'initial_amount_label', | |
1111 | 'type' => CRM_Utils_Type::T_STRING, | |
1112 | 'title' => ts('Initial Amount Label') , | |
1113 | 'description' => 'Initial amount label for partial payment', | |
1114 | 'maxlength' => 255, | |
1115 | 'size' => CRM_Utils_Type::HUGE, | |
522a26c9 | 1116 | 'table_name' => 'civicrm_event', |
1117 | 'entity' => 'Event', | |
1118 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1119 | 'html' => array( |
1120 | 'type' => 'Text', | |
1121 | ) , | |
1122 | ) , | |
1123 | 'initial_amount_help_text' => array( | |
1124 | 'name' => 'initial_amount_help_text', | |
1125 | 'type' => CRM_Utils_Type::T_TEXT, | |
1126 | 'title' => ts('Initial Amount Help Text') , | |
1127 | 'description' => 'Initial amount help text for partial payment', | |
522a26c9 | 1128 | 'table_name' => 'civicrm_event', |
1129 | 'entity' => 'Event', | |
1130 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1131 | 'html' => array( |
1132 | 'type' => 'Text', | |
1133 | ) , | |
1134 | ) , | |
1135 | 'min_initial_amount' => array( | |
1136 | 'name' => 'min_initial_amount', | |
1137 | 'type' => CRM_Utils_Type::T_MONEY, | |
1138 | 'title' => ts('Minimum Initial Amount') , | |
1139 | 'description' => 'Minimum initial amount for partial payment', | |
1140 | 'precision' => array( | |
1141 | 20, | |
1142 | 2 | |
1143 | ) , | |
522a26c9 | 1144 | 'table_name' => 'civicrm_event', |
1145 | 'entity' => 'Event', | |
1146 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1147 | 'html' => array( |
1148 | 'type' => 'Text', | |
1149 | ) , | |
1150 | ) , | |
1151 | 'is_multiple_registrations' => array( | |
1152 | 'name' => 'is_multiple_registrations', | |
1153 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1154 | 'title' => ts('Allow Multiple Registrations') , | |
1155 | 'description' => 'if true - allows the user to register multiple participants for event', | |
522a26c9 | 1156 | 'table_name' => 'civicrm_event', |
1157 | 'entity' => 'Event', | |
1158 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1159 | 'html' => array( |
1160 | 'type' => 'CheckBox', | |
1161 | ) , | |
1162 | ) , | |
1163 | 'max_additional_participants' => array( | |
1164 | 'name' => 'max_additional_participants', | |
1165 | 'type' => CRM_Utils_Type::T_INT, | |
1166 | 'title' => ts('Maximum number of additional participants per registration') , | |
1167 | 'description' => 'Maximum number of additional participants that can be registered on a single booking', | |
522a26c9 | 1168 | 'table_name' => 'civicrm_event', |
1169 | 'entity' => 'Event', | |
1170 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1171 | ) , |
1172 | 'allow_same_participant_emails' => array( | |
1173 | 'name' => 'allow_same_participant_emails', | |
1174 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1175 | 'title' => ts('Does Event allow multiple registrations from same email address?') , | |
1176 | 'description' => 'if true - allows the user to register multiple registrations from same email address.', | |
522a26c9 | 1177 | 'table_name' => 'civicrm_event', |
1178 | 'entity' => 'Event', | |
1179 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1180 | 'html' => array( |
1181 | 'type' => 'CheckBox', | |
1182 | ) , | |
1183 | ) , | |
1184 | 'has_waitlist' => array( | |
1185 | 'name' => 'has_waitlist', | |
1186 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1187 | 'title' => ts('Waitlist Enabled') , | |
1188 | 'description' => 'Whether the event has waitlist support.', | |
522a26c9 | 1189 | 'table_name' => 'civicrm_event', |
1190 | 'entity' => 'Event', | |
1191 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1192 | 'html' => array( |
1193 | 'type' => 'CheckBox', | |
1194 | ) , | |
1195 | ) , | |
1196 | 'requires_approval' => array( | |
1197 | 'name' => 'requires_approval', | |
1198 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1199 | 'title' => ts('Requires Approval') , | |
1200 | 'description' => 'Whether participants require approval before they can finish registering.', | |
522a26c9 | 1201 | 'table_name' => 'civicrm_event', |
1202 | 'entity' => 'Event', | |
1203 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1204 | 'html' => array( |
1205 | 'type' => 'CheckBox', | |
1206 | ) , | |
1207 | ) , | |
1208 | 'expiration_time' => array( | |
1209 | 'name' => 'expiration_time', | |
1210 | 'type' => CRM_Utils_Type::T_INT, | |
1211 | 'title' => ts('Expiration Time') , | |
1212 | 'description' => 'Expire pending but unconfirmed registrations after this many hours.', | |
522a26c9 | 1213 | 'table_name' => 'civicrm_event', |
1214 | 'entity' => 'Event', | |
1215 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1216 | 'html' => array( |
1217 | 'type' => 'Text', | |
1218 | ) , | |
1219 | ) , | |
1220 | 'allow_selfcancelxfer' => array( | |
1221 | 'name' => 'allow_selfcancelxfer', | |
1222 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1223 | 'title' => ts('Allow Self-service Cancellation or Transfer') , | |
1224 | 'description' => 'Allow self service cancellation or transfer for event?', | |
522a26c9 | 1225 | 'table_name' => 'civicrm_event', |
1226 | 'entity' => 'Event', | |
1227 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1228 | 'html' => array( |
1229 | 'type' => 'CheckBox', | |
1230 | ) , | |
1231 | ) , | |
1232 | 'selfcancelxfer_time' => array( | |
1233 | 'name' => 'selfcancelxfer_time', | |
1234 | 'type' => CRM_Utils_Type::T_INT, | |
1235 | 'title' => ts('Self-service Cancellation or Transfer Time') , | |
1236 | 'description' => 'Number of hours prior to event start date to allow self-service cancellation or transfer.', | |
522a26c9 | 1237 | 'table_name' => 'civicrm_event', |
1238 | 'entity' => 'Event', | |
1239 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1240 | 'html' => array( |
1241 | 'type' => 'Text', | |
1242 | ) , | |
1243 | ) , | |
1244 | 'waitlist_text' => array( | |
1245 | 'name' => 'waitlist_text', | |
1246 | 'type' => CRM_Utils_Type::T_TEXT, | |
1247 | 'title' => ts('Waitlist Text') , | |
1248 | 'description' => 'Text to display when the event is full, but participants can signup for a waitlist.', | |
1249 | 'rows' => 4, | |
1250 | 'cols' => 60, | |
522a26c9 | 1251 | 'table_name' => 'civicrm_event', |
1252 | 'entity' => 'Event', | |
1253 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1254 | 'html' => array( |
1255 | 'type' => 'TextArea', | |
1256 | ) , | |
1257 | ) , | |
1258 | 'approval_req_text' => array( | |
1259 | 'name' => 'approval_req_text', | |
1260 | 'type' => CRM_Utils_Type::T_TEXT, | |
1261 | 'title' => ts('Approval Req Text') , | |
1262 | 'description' => 'Text to display when the approval is required to complete registration for an event.', | |
1263 | 'rows' => 4, | |
1264 | 'cols' => 60, | |
522a26c9 | 1265 | 'table_name' => 'civicrm_event', |
1266 | 'entity' => 'Event', | |
1267 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1268 | 'html' => array( |
1269 | 'type' => 'TextArea', | |
1270 | ) , | |
1271 | ) , | |
1272 | 'is_template' => array( | |
1273 | 'name' => 'is_template', | |
1274 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1275 | 'title' => ts('Is an Event Template') , | |
1276 | 'description' => 'whether the event has template', | |
1277 | 'required' => true, | |
522a26c9 | 1278 | 'table_name' => 'civicrm_event', |
1279 | 'entity' => 'Event', | |
1280 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1281 | 'html' => array( |
1282 | 'type' => 'CheckBox', | |
1283 | ) , | |
1284 | ) , | |
1285 | 'template_title' => array( | |
1286 | 'name' => 'template_title', | |
1287 | 'type' => CRM_Utils_Type::T_STRING, | |
1288 | 'title' => ts('Event Template Title') , | |
1289 | 'description' => 'Event Template Title', | |
1290 | 'maxlength' => 255, | |
1291 | 'size' => CRM_Utils_Type::HUGE, | |
1292 | 'import' => true, | |
1293 | 'where' => 'civicrm_event.template_title', | |
1294 | 'headerPattern' => '/(template.)?title$/i', | |
1295 | 'dataPattern' => '', | |
1296 | 'export' => true, | |
522a26c9 | 1297 | 'table_name' => 'civicrm_event', |
1298 | 'entity' => 'Event', | |
1299 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1300 | 'html' => array( |
1301 | 'type' => 'Text', | |
1302 | ) , | |
1303 | ) , | |
1304 | 'created_id' => array( | |
1305 | 'name' => 'created_id', | |
1306 | 'type' => CRM_Utils_Type::T_INT, | |
1307 | 'title' => ts('Created By Contact ID') , | |
1308 | 'description' => 'FK to civicrm_contact, who created this event', | |
522a26c9 | 1309 | 'table_name' => 'civicrm_event', |
1310 | 'entity' => 'Event', | |
1311 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1312 | 'FKClassName' => 'CRM_Contact_DAO_Contact', |
1313 | ) , | |
1314 | 'created_date' => array( | |
1315 | 'name' => 'created_date', | |
1316 | 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, | |
1317 | 'title' => ts('Event Created Date') , | |
1318 | 'description' => 'Date and time that event was created.', | |
522a26c9 | 1319 | 'table_name' => 'civicrm_event', |
1320 | 'entity' => 'Event', | |
1321 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1322 | ) , |
1323 | 'currency' => array( | |
1324 | 'name' => 'currency', | |
1325 | 'type' => CRM_Utils_Type::T_STRING, | |
1326 | 'title' => ts('Currency') , | |
1327 | 'description' => '3 character string, value from config setting or input via user.', | |
1328 | 'maxlength' => 3, | |
1329 | 'size' => CRM_Utils_Type::FOUR, | |
1330 | 'import' => true, | |
1331 | 'where' => 'civicrm_event.currency', | |
1332 | 'headerPattern' => '/cur(rency)?/i', | |
1333 | 'dataPattern' => '/^[A-Z]{3}$/i', | |
1334 | 'export' => true, | |
522a26c9 | 1335 | 'table_name' => 'civicrm_event', |
1336 | 'entity' => 'Event', | |
1337 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1338 | 'html' => array( |
1339 | 'type' => 'Select', | |
1340 | ) , | |
1341 | 'pseudoconstant' => array( | |
1342 | 'table' => 'civicrm_currency', | |
1343 | 'keyColumn' => 'name', | |
1344 | 'labelColumn' => 'full_name', | |
1345 | 'nameColumn' => 'name', | |
1346 | ) | |
1347 | ) , | |
1348 | 'campaign_id' => array( | |
1349 | 'name' => 'campaign_id', | |
1350 | 'type' => CRM_Utils_Type::T_INT, | |
1351 | 'title' => ts('Campaign') , | |
1352 | 'description' => 'The campaign for which this event has been created.', | |
522a26c9 | 1353 | 'table_name' => 'civicrm_event', |
1354 | 'entity' => 'Event', | |
1355 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1356 | 'FKClassName' => 'CRM_Campaign_DAO_Campaign', |
1357 | 'html' => array( | |
1358 | 'type' => 'EntityRef', | |
1359 | ) , | |
1360 | 'pseudoconstant' => array( | |
1361 | 'table' => 'civicrm_campaign', | |
1362 | 'keyColumn' => 'id', | |
1363 | 'labelColumn' => 'title', | |
1364 | ) | |
1365 | ) , | |
1366 | 'is_share' => array( | |
1367 | 'name' => 'is_share', | |
1368 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1369 | 'title' => ts('Is shared through social media') , | |
1370 | 'description' => 'Can people share the event through social media?', | |
1371 | 'default' => '1', | |
522a26c9 | 1372 | 'table_name' => 'civicrm_event', |
1373 | 'entity' => 'Event', | |
1374 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1375 | 'html' => array( |
1376 | 'type' => 'CheckBox', | |
1377 | ) , | |
1378 | ) , | |
1379 | 'is_confirm_enabled' => array( | |
1380 | 'name' => 'is_confirm_enabled', | |
1381 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1382 | 'title' => ts('Is the booking confirmation screen enabled?') , | |
1383 | 'description' => 'If false, the event booking confirmation screen gets skipped', | |
1384 | 'default' => '1', | |
522a26c9 | 1385 | 'table_name' => 'civicrm_event', |
1386 | 'entity' => 'Event', | |
1387 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1388 | 'html' => array( |
1389 | 'type' => 'CheckBox', | |
1390 | ) , | |
1391 | ) , | |
1392 | 'parent_event_id' => array( | |
1393 | 'name' => 'parent_event_id', | |
1394 | 'type' => CRM_Utils_Type::T_INT, | |
1395 | 'title' => ts('Parent Event ID') , | |
1396 | 'description' => 'Implicit FK to civicrm_event: parent event', | |
1397 | 'default' => 'NULL', | |
522a26c9 | 1398 | 'table_name' => 'civicrm_event', |
1399 | 'entity' => 'Event', | |
1400 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1401 | 'html' => array( |
1402 | 'type' => 'EntityRef', | |
1403 | ) , | |
1404 | ) , | |
1405 | 'slot_label_id' => array( | |
1406 | 'name' => 'slot_label_id', | |
1407 | 'type' => CRM_Utils_Type::T_INT, | |
1408 | 'title' => ts('Subevent Slot Label ID') , | |
1409 | 'description' => 'Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.', | |
1410 | 'default' => 'NULL', | |
522a26c9 | 1411 | 'table_name' => 'civicrm_event', |
1412 | 'entity' => 'Event', | |
1413 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1414 | 'html' => array( |
1415 | 'type' => 'Select', | |
1416 | ) , | |
1417 | ) , | |
1418 | 'dedupe_rule_group_id' => array( | |
1419 | 'name' => 'dedupe_rule_group_id', | |
1420 | 'type' => CRM_Utils_Type::T_INT, | |
1421 | 'title' => ts('Dedupe Rule') , | |
1422 | 'description' => 'Rule to use when matching registrations for this event', | |
1423 | 'default' => 'NULL', | |
522a26c9 | 1424 | 'table_name' => 'civicrm_event', |
1425 | 'entity' => 'Event', | |
1426 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1427 | 'FKClassName' => 'CRM_Dedupe_DAO_RuleGroup', |
1428 | 'html' => array( | |
1429 | 'type' => 'Select', | |
1430 | ) , | |
1431 | 'pseudoconstant' => array( | |
1432 | 'table' => 'civicrm_dedupe_rule_group', | |
1433 | 'keyColumn' => 'id', | |
1434 | 'labelColumn' => 'title', | |
1435 | 'nameColumn' => 'name', | |
1436 | ) | |
1437 | ) , | |
1438 | 'is_billing_required' => array( | |
1439 | 'name' => 'is_billing_required', | |
1440 | 'type' => CRM_Utils_Type::T_BOOLEAN, | |
1441 | 'title' => ts('Is billing block required') , | |
1442 | 'description' => 'if true than billing block is required this event', | |
522a26c9 | 1443 | 'table_name' => 'civicrm_event', |
1444 | 'entity' => 'Event', | |
1445 | 'bao' => 'CRM_Event_BAO_Event', | |
e501603b TO |
1446 | 'html' => array( |
1447 | 'type' => 'CheckBox', | |
1448 | ) , | |
1449 | ) , | |
1450 | ); | |
346aaaba | 1451 | CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); |
e501603b | 1452 | } |
346aaaba | 1453 | return Civi::$statics[__CLASS__]['fields']; |
e501603b TO |
1454 | } |
1455 | /** | |
bd8e0b14 | 1456 | * Return a mapping from field-name to the corresponding key (as used in fields()). |
e501603b TO |
1457 | * |
1458 | * @return array | |
bd8e0b14 | 1459 | * Array(string $name => string $uniqueName). |
e501603b TO |
1460 | */ |
1461 | static function &fieldKeys() { | |
bd8e0b14 TO |
1462 | if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) { |
1463 | Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields())); | |
e501603b | 1464 | } |
bd8e0b14 | 1465 | return Civi::$statics[__CLASS__]['fieldKeys']; |
e501603b TO |
1466 | } |
1467 | /** | |
1468 | * Returns the names of this table | |
1469 | * | |
1470 | * @return string | |
1471 | */ | |
1472 | static function getTableName() { | |
1473 | return CRM_Core_DAO::getLocaleTableName(self::$_tableName); | |
1474 | } | |
1475 | /** | |
1476 | * Returns if this table needs to be logged | |
1477 | * | |
1478 | * @return boolean | |
1479 | */ | |
1480 | function getLog() { | |
1481 | return self::$_log; | |
1482 | } | |
1483 | /** | |
1484 | * Returns the list of fields that can be imported | |
1485 | * | |
1486 | * @param bool $prefix | |
1487 | * | |
1488 | * @return array | |
1489 | */ | |
1490 | static function &import($prefix = false) { | |
60808919 TO |
1491 | $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'event', $prefix, array()); |
1492 | return $r; | |
e501603b TO |
1493 | } |
1494 | /** | |
1495 | * Returns the list of fields that can be exported | |
1496 | * | |
1497 | * @param bool $prefix | |
1498 | * | |
1499 | * @return array | |
1500 | */ | |
1501 | static function &export($prefix = false) { | |
60808919 TO |
1502 | $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'event', $prefix, array()); |
1503 | return $r; | |
e501603b TO |
1504 | } |
1505 | } |