Merge pull request #24095 from civicrm/5.52
[civicrm-core.git] / CRM / Event / DAO / Participant.php
1 <?php
2
3 /**
4 * @package CRM
5 * @copyright CiviCRM LLC https://civicrm.org/licensing
6 *
7 * Generated from xml/schema/CRM/Event/Participant.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:9d1b4abcd8bb1106b31c610026aed0d5)
10 */
11
12 /**
13 * Database access object for the Participant entity.
14 */
15 class CRM_Event_DAO_Participant extends CRM_Core_DAO {
16 const EXT = 'civicrm';
17 const TABLE_ADDED = '1.7';
18 const COMPONENT = 'CiviEvent';
19
20 /**
21 * Static instance to hold the table name.
22 *
23 * @var string
24 */
25 public static $_tableName = 'civicrm_participant';
26
27 /**
28 * Icon associated with this entity.
29 *
30 * @var string
31 */
32 public static $_icon = 'fa-ticket';
33
34 /**
35 * Should CiviCRM log any modifications to this table in the civicrm_log table.
36 *
37 * @var bool
38 */
39 public static $_log = TRUE;
40
41 /**
42 * Participant ID
43 *
44 * @var int|string|null
45 * (SQL type: int unsigned)
46 * Note that values will be retrieved from the database as a string.
47 */
48 public $id;
49
50 /**
51 * FK to Contact ID
52 *
53 * @var int|string
54 * (SQL type: int unsigned)
55 * Note that values will be retrieved from the database as a string.
56 */
57 public $contact_id;
58
59 /**
60 * FK to Event ID
61 *
62 * @var int|string
63 * (SQL type: int unsigned)
64 * Note that values will be retrieved from the database as a string.
65 */
66 public $event_id;
67
68 /**
69 * Participant status ID. FK to civicrm_participant_status_type. Default of 1 should map to status = Registered.
70 *
71 * @var int|string
72 * (SQL type: int unsigned)
73 * Note that values will be retrieved from the database as a string.
74 */
75 public $status_id;
76
77 /**
78 * Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.
79 *
80 * @var string|null
81 * (SQL type: varchar(128))
82 * Note that values will be retrieved from the database as a string.
83 */
84 public $role_id;
85
86 /**
87 * When did contact register for event?
88 *
89 * @var string|null
90 * (SQL type: datetime)
91 * Note that values will be retrieved from the database as a string.
92 */
93 public $register_date;
94
95 /**
96 * Source of this event registration.
97 *
98 * @var string|null
99 * (SQL type: varchar(128))
100 * Note that values will be retrieved from the database as a string.
101 */
102 public $source;
103
104 /**
105 * Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that
106 * we store the label value and not the key
107 *
108 * @var string|null
109 * (SQL type: text)
110 * Note that values will be retrieved from the database as a string.
111 */
112 public $fee_level;
113
114 /**
115 * @var bool|string
116 * (SQL type: tinyint)
117 * Note that values will be retrieved from the database as a string.
118 */
119 public $is_test;
120
121 /**
122 * @var bool|string
123 * (SQL type: tinyint)
124 * Note that values will be retrieved from the database as a string.
125 */
126 public $is_pay_later;
127
128 /**
129 * actual processor fee if known - may be 0.
130 *
131 * @var float|string|null
132 * (SQL type: decimal(20,2))
133 * Note that values will be retrieved from the database as a string.
134 */
135 public $fee_amount;
136
137 /**
138 * FK to Participant ID
139 *
140 * @var int|string|null
141 * (SQL type: int unsigned)
142 * Note that values will be retrieved from the database as a string.
143 */
144 public $registered_by_id;
145
146 /**
147 * FK to Discount ID
148 *
149 * @var int|string|null
150 * (SQL type: int unsigned)
151 * Note that values will be retrieved from the database as a string.
152 */
153 public $discount_id;
154
155 /**
156 * 3 character string, value derived from config setting.
157 *
158 * @var string|null
159 * (SQL type: varchar(3))
160 * Note that values will be retrieved from the database as a string.
161 */
162 public $fee_currency;
163
164 /**
165 * The campaign for which this participant has been registered.
166 *
167 * @var int|string|null
168 * (SQL type: int unsigned)
169 * Note that values will be retrieved from the database as a string.
170 */
171 public $campaign_id;
172
173 /**
174 * Discount Amount
175 *
176 * @var int|string|null
177 * (SQL type: int unsigned)
178 * Note that values will be retrieved from the database as a string.
179 */
180 public $discount_amount;
181
182 /**
183 * FK to civicrm_event_carts
184 *
185 * @var int|string|null
186 * (SQL type: int unsigned)
187 * Note that values will be retrieved from the database as a string.
188 */
189 public $cart_id;
190
191 /**
192 * On Waiting List
193 *
194 * @var int|string|null
195 * (SQL type: int)
196 * Note that values will be retrieved from the database as a string.
197 */
198 public $must_wait;
199
200 /**
201 * FK to Contact ID
202 *
203 * @var int|string|null
204 * (SQL type: int unsigned)
205 * Note that values will be retrieved from the database as a string.
206 */
207 public $transferred_to_contact_id;
208
209 /**
210 * Class constructor.
211 */
212 public function __construct() {
213 $this->__table = 'civicrm_participant';
214 parent::__construct();
215 }
216
217 /**
218 * Returns localized title of this entity.
219 *
220 * @param bool $plural
221 * Whether to return the plural version of the title.
222 */
223 public static function getEntityTitle($plural = FALSE) {
224 return $plural ? ts('Participants') : ts('Participant');
225 }
226
227 /**
228 * Returns user-friendly description of this entity.
229 *
230 * @return string
231 */
232 public static function getEntityDescription() {
233 return ts('Records of contacts\' attendance and roles in events.');
234 }
235
236 /**
237 * Returns foreign keys and entity references.
238 *
239 * @return array
240 * [CRM_Core_Reference_Interface]
241 */
242 public static function getReferenceColumns() {
243 if (!isset(Civi::$statics[__CLASS__]['links'])) {
244 Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
245 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
246 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_id', 'civicrm_event', 'id');
247 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'status_id', 'civicrm_participant_status_type', 'id');
248 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'registered_by_id', 'civicrm_participant', 'id');
249 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'discount_id', 'civicrm_discount', 'id');
250 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
251 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'cart_id', 'civicrm_event_carts', 'id');
252 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'transferred_to_contact_id', 'civicrm_contact', 'id');
253 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
254 }
255 return Civi::$statics[__CLASS__]['links'];
256 }
257
258 /**
259 * Returns all the column names of this table
260 *
261 * @return array
262 */
263 public static function &fields() {
264 if (!isset(Civi::$statics[__CLASS__]['fields'])) {
265 Civi::$statics[__CLASS__]['fields'] = [
266 'participant_id' => [
267 'name' => 'id',
268 'type' => CRM_Utils_Type::T_INT,
269 'title' => ts('Participant ID'),
270 'description' => ts('Participant ID'),
271 'required' => TRUE,
272 'import' => TRUE,
273 'where' => 'civicrm_participant.id',
274 'headerPattern' => '/(^(participant(.)?)?id$)/i',
275 'export' => TRUE,
276 'table_name' => 'civicrm_participant',
277 'entity' => 'Participant',
278 'bao' => 'CRM_Event_BAO_Participant',
279 'localizable' => 0,
280 'html' => [
281 'type' => 'Number',
282 ],
283 'readonly' => TRUE,
284 'add' => '1.7',
285 ],
286 'participant_contact_id' => [
287 'name' => 'contact_id',
288 'type' => CRM_Utils_Type::T_INT,
289 'title' => ts('Contact ID'),
290 'description' => ts('FK to Contact ID'),
291 'required' => TRUE,
292 'import' => TRUE,
293 'where' => 'civicrm_participant.contact_id',
294 'headerPattern' => '/contact(.?id)?/i',
295 'export' => TRUE,
296 'table_name' => 'civicrm_participant',
297 'entity' => 'Participant',
298 'bao' => 'CRM_Event_BAO_Participant',
299 'localizable' => 0,
300 'FKClassName' => 'CRM_Contact_DAO_Contact',
301 'html' => [
302 'label' => ts("Contact"),
303 ],
304 'add' => '1.7',
305 ],
306 'event_id' => [
307 'name' => 'event_id',
308 'type' => CRM_Utils_Type::T_INT,
309 'title' => ts('Event ID'),
310 'description' => ts('FK to Event ID'),
311 'required' => TRUE,
312 'import' => TRUE,
313 'where' => 'civicrm_participant.event_id',
314 'headerPattern' => '/event id$/i',
315 'export' => TRUE,
316 'table_name' => 'civicrm_participant',
317 'entity' => 'Participant',
318 'bao' => 'CRM_Event_BAO_Participant',
319 'localizable' => 0,
320 'FKClassName' => 'CRM_Event_DAO_Event',
321 'html' => [
322 'label' => ts("Event"),
323 ],
324 'add' => '1.7',
325 ],
326 'participant_status_id' => [
327 'name' => 'status_id',
328 'type' => CRM_Utils_Type::T_INT,
329 'title' => ts('Status ID'),
330 'description' => ts('Participant status ID. FK to civicrm_participant_status_type. Default of 1 should map to status = Registered.'),
331 'required' => TRUE,
332 'import' => TRUE,
333 'where' => 'civicrm_participant.status_id',
334 'headerPattern' => '/(participant.)?(status)$/i',
335 'export' => TRUE,
336 'default' => '1',
337 'table_name' => 'civicrm_participant',
338 'entity' => 'Participant',
339 'bao' => 'CRM_Event_BAO_Participant',
340 'localizable' => 0,
341 'FKClassName' => 'CRM_Event_DAO_ParticipantStatusType',
342 'html' => [
343 'type' => 'Select',
344 'label' => ts("Status"),
345 ],
346 'pseudoconstant' => [
347 'table' => 'civicrm_participant_status_type',
348 'keyColumn' => 'id',
349 'labelColumn' => 'label',
350 ],
351 'add' => '1.7',
352 ],
353 'participant_role_id' => [
354 'name' => 'role_id',
355 'type' => CRM_Utils_Type::T_STRING,
356 'title' => ts('Participant Role ID'),
357 'description' => ts('Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.'),
358 'maxlength' => 128,
359 'size' => CRM_Utils_Type::HUGE,
360 'import' => TRUE,
361 'where' => 'civicrm_participant.role_id',
362 'headerPattern' => '/(participant.)?(role)$/i',
363 'export' => TRUE,
364 'default' => NULL,
365 'table_name' => 'civicrm_participant',
366 'entity' => 'Participant',
367 'bao' => 'CRM_Event_BAO_Participant',
368 'localizable' => 0,
369 'serialize' => self::SERIALIZE_SEPARATOR_TRIMMED,
370 'html' => [
371 'type' => 'Select',
372 'label' => ts("Participant Role"),
373 ],
374 'pseudoconstant' => [
375 'optionGroupName' => 'participant_role',
376 'optionEditPath' => 'civicrm/admin/options/participant_role',
377 ],
378 'add' => '1.7',
379 ],
380 'participant_register_date' => [
381 'name' => 'register_date',
382 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
383 'title' => ts('Register date'),
384 'description' => ts('When did contact register for event?'),
385 'import' => TRUE,
386 'where' => 'civicrm_participant.register_date',
387 'headerPattern' => '/^(r(egister\s)?date)$/i',
388 'export' => TRUE,
389 'table_name' => 'civicrm_participant',
390 'entity' => 'Participant',
391 'bao' => 'CRM_Event_BAO_Participant',
392 'localizable' => 0,
393 'html' => [
394 'type' => 'Select Date',
395 'formatType' => 'activityDateTime',
396 ],
397 'add' => '1.7',
398 ],
399 'participant_source' => [
400 'name' => 'source',
401 'type' => CRM_Utils_Type::T_STRING,
402 'title' => ts('Participant Source'),
403 'description' => ts('Source of this event registration.'),
404 'maxlength' => 128,
405 'size' => CRM_Utils_Type::HUGE,
406 'import' => TRUE,
407 'where' => 'civicrm_participant.source',
408 'headerPattern' => '/(participant.)?(source)$/i',
409 'export' => TRUE,
410 'table_name' => 'civicrm_participant',
411 'entity' => 'Participant',
412 'bao' => 'CRM_Event_BAO_Participant',
413 'localizable' => 0,
414 'html' => [
415 'type' => 'Text',
416 ],
417 'add' => '1.7',
418 ],
419 'participant_fee_level' => [
420 'name' => 'fee_level',
421 'type' => CRM_Utils_Type::T_TEXT,
422 'title' => ts('Fee level'),
423 'description' => ts('Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that
424 we store the label value and not the key'),
425 'import' => TRUE,
426 'where' => 'civicrm_participant.fee_level',
427 'headerPattern' => '/^(f(ee\s)?level)$/i',
428 'export' => TRUE,
429 'table_name' => 'civicrm_participant',
430 'entity' => 'Participant',
431 'bao' => 'CRM_Event_BAO_Participant',
432 'localizable' => 0,
433 'serialize' => self::SERIALIZE_SEPARATOR_BOOKEND,
434 'add' => '1.7',
435 ],
436 'participant_is_test' => [
437 'name' => 'is_test',
438 'type' => CRM_Utils_Type::T_BOOLEAN,
439 'title' => ts('Test'),
440 'required' => TRUE,
441 'import' => TRUE,
442 'where' => 'civicrm_participant.is_test',
443 'export' => TRUE,
444 'default' => '0',
445 'table_name' => 'civicrm_participant',
446 'entity' => 'Participant',
447 'bao' => 'CRM_Event_BAO_Participant',
448 'localizable' => 0,
449 'add' => '1.7',
450 ],
451 'participant_is_pay_later' => [
452 'name' => 'is_pay_later',
453 'type' => CRM_Utils_Type::T_BOOLEAN,
454 'title' => ts('Is Pay Later'),
455 'required' => TRUE,
456 'import' => TRUE,
457 'where' => 'civicrm_participant.is_pay_later',
458 'headerPattern' => '/(is.)?(pay(.)?later)$/i',
459 'export' => TRUE,
460 'default' => '0',
461 'table_name' => 'civicrm_participant',
462 'entity' => 'Participant',
463 'bao' => 'CRM_Event_BAO_Participant',
464 'localizable' => 0,
465 'add' => '2.1',
466 ],
467 'participant_fee_amount' => [
468 'name' => 'fee_amount',
469 'type' => CRM_Utils_Type::T_MONEY,
470 'title' => ts('Fee Amount'),
471 'description' => ts('actual processor fee if known - may be 0.'),
472 'precision' => [
473 20,
474 2,
475 ],
476 'import' => TRUE,
477 'where' => 'civicrm_participant.fee_amount',
478 'headerPattern' => '/fee(.?am(ou)?nt)?/i',
479 'dataPattern' => '/^\d+(\.\d{2})?$/',
480 'export' => TRUE,
481 'table_name' => 'civicrm_participant',
482 'entity' => 'Participant',
483 'bao' => 'CRM_Event_BAO_Participant',
484 'localizable' => 0,
485 'add' => '2.1',
486 ],
487 'participant_registered_by_id' => [
488 'name' => 'registered_by_id',
489 'type' => CRM_Utils_Type::T_INT,
490 'title' => ts('Registered By Participant ID'),
491 'description' => ts('FK to Participant ID'),
492 'import' => TRUE,
493 'where' => 'civicrm_participant.registered_by_id',
494 'export' => TRUE,
495 'default' => NULL,
496 'table_name' => 'civicrm_participant',
497 'entity' => 'Participant',
498 'bao' => 'CRM_Event_BAO_Participant',
499 'localizable' => 0,
500 'FKClassName' => 'CRM_Event_DAO_Participant',
501 'html' => [
502 'label' => ts("Registered By"),
503 ],
504 'add' => '2.1',
505 ],
506 'participant_discount_id' => [
507 'name' => 'discount_id',
508 'type' => CRM_Utils_Type::T_INT,
509 'title' => ts('Discount ID'),
510 'description' => ts('FK to Discount ID'),
511 'where' => 'civicrm_participant.discount_id',
512 'default' => NULL,
513 'table_name' => 'civicrm_participant',
514 'entity' => 'Participant',
515 'bao' => 'CRM_Event_BAO_Participant',
516 'localizable' => 0,
517 'FKClassName' => 'CRM_Core_DAO_Discount',
518 'html' => [
519 'label' => ts("Discount"),
520 ],
521 'add' => '2.1',
522 ],
523 'participant_fee_currency' => [
524 'name' => 'fee_currency',
525 'type' => CRM_Utils_Type::T_STRING,
526 'title' => ts('Fee Currency'),
527 'description' => ts('3 character string, value derived from config setting.'),
528 'maxlength' => 3,
529 'size' => CRM_Utils_Type::FOUR,
530 'import' => TRUE,
531 'where' => 'civicrm_participant.fee_currency',
532 'headerPattern' => '/(fee)?.?cur(rency)?/i',
533 'dataPattern' => '/^[A-Z]{3}$/i',
534 'export' => TRUE,
535 'default' => NULL,
536 'table_name' => 'civicrm_participant',
537 'entity' => 'Participant',
538 'bao' => 'CRM_Event_BAO_Participant',
539 'localizable' => 0,
540 'html' => [
541 'type' => 'Select',
542 ],
543 'pseudoconstant' => [
544 'table' => 'civicrm_currency',
545 'keyColumn' => 'name',
546 'labelColumn' => 'full_name',
547 'nameColumn' => 'name',
548 'abbrColumn' => 'symbol',
549 ],
550 'add' => '3.0',
551 ],
552 'participant_campaign_id' => [
553 'name' => 'campaign_id',
554 'type' => CRM_Utils_Type::T_INT,
555 'title' => ts('Campaign ID'),
556 'description' => ts('The campaign for which this participant has been registered.'),
557 'import' => TRUE,
558 'where' => 'civicrm_participant.campaign_id',
559 'export' => TRUE,
560 'table_name' => 'civicrm_participant',
561 'entity' => 'Participant',
562 'bao' => 'CRM_Event_BAO_Participant',
563 'localizable' => 0,
564 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
565 'component' => 'CiviCampaign',
566 'html' => [
567 'type' => 'EntityRef',
568 'label' => ts("Campaign"),
569 ],
570 'pseudoconstant' => [
571 'table' => 'civicrm_campaign',
572 'keyColumn' => 'id',
573 'labelColumn' => 'title',
574 'prefetch' => 'FALSE',
575 ],
576 'add' => '3.4',
577 ],
578 'discount_amount' => [
579 'name' => 'discount_amount',
580 'type' => CRM_Utils_Type::T_INT,
581 'title' => ts('Discount Amount'),
582 'description' => ts('Discount Amount'),
583 'where' => 'civicrm_participant.discount_amount',
584 'table_name' => 'civicrm_participant',
585 'entity' => 'Participant',
586 'bao' => 'CRM_Event_BAO_Participant',
587 'localizable' => 0,
588 'add' => '4.1',
589 ],
590 'cart_id' => [
591 'name' => 'cart_id',
592 'type' => CRM_Utils_Type::T_INT,
593 'title' => ts('Event Cart ID'),
594 'description' => ts('FK to civicrm_event_carts'),
595 'where' => 'civicrm_participant.cart_id',
596 'table_name' => 'civicrm_participant',
597 'entity' => 'Participant',
598 'bao' => 'CRM_Event_BAO_Participant',
599 'localizable' => 0,
600 'FKClassName' => 'CRM_Event_Cart_DAO_Cart',
601 'html' => [
602 'label' => ts("Event Cart"),
603 ],
604 'add' => '4.1',
605 ],
606 'must_wait' => [
607 'name' => 'must_wait',
608 'type' => CRM_Utils_Type::T_INT,
609 'title' => ts('Must Wait on List'),
610 'description' => ts('On Waiting List'),
611 'where' => 'civicrm_participant.must_wait',
612 'table_name' => 'civicrm_participant',
613 'entity' => 'Participant',
614 'bao' => 'CRM_Event_BAO_Participant',
615 'localizable' => 0,
616 'add' => '4.1',
617 ],
618 'transferred_to_contact_id' => [
619 'name' => 'transferred_to_contact_id',
620 'type' => CRM_Utils_Type::T_INT,
621 'title' => ts('Transferred to Contact ID'),
622 'description' => ts('FK to Contact ID'),
623 'import' => TRUE,
624 'where' => 'civicrm_participant.transferred_to_contact_id',
625 'headerPattern' => '/transfer(.?id)?/i',
626 'export' => TRUE,
627 'default' => NULL,
628 'table_name' => 'civicrm_participant',
629 'entity' => 'Participant',
630 'bao' => 'CRM_Event_BAO_Participant',
631 'localizable' => 0,
632 'FKClassName' => 'CRM_Contact_DAO_Contact',
633 'html' => [
634 'label' => ts("Transferred to"),
635 ],
636 'add' => '4.7',
637 ],
638 ];
639 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
640 }
641 return Civi::$statics[__CLASS__]['fields'];
642 }
643
644 /**
645 * Return a mapping from field-name to the corresponding key (as used in fields()).
646 *
647 * @return array
648 * Array(string $name => string $uniqueName).
649 */
650 public static function &fieldKeys() {
651 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
652 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
653 }
654 return Civi::$statics[__CLASS__]['fieldKeys'];
655 }
656
657 /**
658 * Returns the names of this table
659 *
660 * @return string
661 */
662 public static function getTableName() {
663 return self::$_tableName;
664 }
665
666 /**
667 * Returns if this table needs to be logged
668 *
669 * @return bool
670 */
671 public function getLog() {
672 return self::$_log;
673 }
674
675 /**
676 * Returns the list of fields that can be imported
677 *
678 * @param bool $prefix
679 *
680 * @return array
681 */
682 public static function &import($prefix = FALSE) {
683 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'participant', $prefix, []);
684 return $r;
685 }
686
687 /**
688 * Returns the list of fields that can be exported
689 *
690 * @param bool $prefix
691 *
692 * @return array
693 */
694 public static function &export($prefix = FALSE) {
695 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'participant', $prefix, []);
696 return $r;
697 }
698
699 /**
700 * Returns the list of indices
701 *
702 * @param bool $localize
703 *
704 * @return array
705 */
706 public static function indices($localize = TRUE) {
707 $indices = [
708 'index_status_id' => [
709 'name' => 'index_status_id',
710 'field' => [
711 0 => 'status_id',
712 ],
713 'localizable' => FALSE,
714 'sig' => 'civicrm_participant::0::status_id',
715 ],
716 'index_role_id' => [
717 'name' => 'index_role_id',
718 'field' => [
719 0 => 'role_id',
720 ],
721 'localizable' => FALSE,
722 'sig' => 'civicrm_participant::0::role_id',
723 ],
724 ];
725 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
726 }
727
728 }