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