5 * @copyright CiviCRM LLC https://civicrm.org/licensing
7 * Generated from xml/schema/CRM/Activity/Activity.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:84bf6ac4a394e07666a4b2fb1456a794)
13 * Database access object for the Activity entity.
15 class CRM_Activity_DAO_Activity
extends CRM_Core_DAO
{
16 const EXT
= 'civicrm';
17 const TABLE_ADDED
= '1.1';
20 * Static instance to hold the table name.
24 public static $_tableName = 'civicrm_activity';
27 * Icon associated with this entity.
31 public static $_icon = 'fa-tasks';
34 * Field to show when displaying a record.
38 public static $_labelField = 'subject';
41 * Should CiviCRM log any modifications to this table in the civicrm_log table.
45 public static $_log = TRUE;
48 * Paths for accessing this entity in the UI.
52 protected static $_paths = [
53 'add' => 'civicrm/activity?reset=1&action=add&context=standalone',
54 'view' => 'civicrm/activity?reset=1&action=view&id=[id]',
55 'update' => 'civicrm/activity/add?reset=1&action=update&id=[id]',
56 'delete' => 'civicrm/activity?reset=1&action=delete&id=[id]',
60 * Unique Other Activity ID
62 * @var int|string|null
63 * (SQL type: int unsigned)
64 * Note that values will be retrieved from the database as a string.
69 * Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.
71 * @var int|string|null
72 * (SQL type: int unsigned)
73 * Note that values will be retrieved from the database as a string.
75 public $source_record_id;
78 * FK to civicrm_option_value.id, that has to be valid, registered activity type.
81 * (SQL type: int unsigned)
82 * Note that values will be retrieved from the database as a string.
84 public $activity_type_id;
87 * The subject/purpose/short description of the activity.
90 * (SQL type: varchar(255))
91 * Note that values will be retrieved from the database as a string.
96 * Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.
99 * (SQL type: datetime)
100 * Note that values will be retrieved from the database as a string.
102 public $activity_date_time;
105 * Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.
107 * @var int|string|null
108 * (SQL type: int unsigned)
109 * Note that values will be retrieved from the database as a string.
114 * Location of the activity (optional, open text).
117 * (SQL type: varchar(255))
118 * Note that values will be retrieved from the database as a string.
123 * Phone ID of the number called (optional - used if an existing phone number is selected).
125 * @var int|string|null
126 * (SQL type: int unsigned)
127 * Note that values will be retrieved from the database as a string.
132 * Phone number in case the number does not exist in the civicrm_phone table.
135 * (SQL type: varchar(64))
136 * Note that values will be retrieved from the database as a string.
138 public $phone_number;
141 * Details about the activity (agenda, notes, etc).
144 * (SQL type: longtext)
145 * Note that values will be retrieved from the database as a string.
150 * ID of the status this activity is currently in. Foreign key to civicrm_option_value.
152 * @var int|string|null
153 * (SQL type: int unsigned)
154 * Note that values will be retrieved from the database as a string.
159 * ID of the priority given to this activity. Foreign key to civicrm_option_value.
161 * @var int|string|null
162 * (SQL type: int unsigned)
163 * Note that values will be retrieved from the database as a string.
168 * Parent meeting ID (if this is a follow-up item). This is not currently implemented
170 * @var int|string|null
171 * (SQL type: int unsigned)
172 * Note that values will be retrieved from the database as a string.
178 * (SQL type: tinyint)
179 * Note that values will be retrieved from the database as a string.
184 * Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.
186 * @var int|string|null
187 * (SQL type: int unsigned)
188 * Note that values will be retrieved from the database as a string.
194 * (SQL type: tinyint)
195 * Note that values will be retrieved from the database as a string.
200 * FK to Relationship ID
202 * @var int|string|null
203 * (SQL type: int unsigned)
204 * Note that values will be retrieved from the database as a string.
206 public $relationship_id;
210 * (SQL type: tinyint)
211 * Note that values will be retrieved from the database as a string.
213 public $is_current_revision;
216 * Activity ID of the first activity record in versioning chain.
218 * @var int|string|null
219 * (SQL type: int unsigned)
220 * Note that values will be retrieved from the database as a string.
225 * Currently being used to store result id for survey activity, FK to option value.
228 * (SQL type: varchar(255))
229 * Note that values will be retrieved from the database as a string.
235 * (SQL type: tinyint)
236 * Note that values will be retrieved from the database as a string.
241 * The campaign for which this activity has been triggered.
243 * @var int|string|null
244 * (SQL type: int unsigned)
245 * Note that values will be retrieved from the database as a string.
250 * Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.
252 * @var int|string|null
253 * (SQL type: int unsigned)
254 * Note that values will be retrieved from the database as a string.
256 public $engagement_level;
259 * @var int|string|null
261 * Note that values will be retrieved from the database as a string.
266 * Activity marked as favorite.
269 * (SQL type: tinyint)
270 * Note that values will be retrieved from the database as a string.
275 * When was the activity was created.
278 * (SQL type: timestamp)
279 * Note that values will be retrieved from the database as a string.
281 public $created_date;
284 * When was the activity (or closely related entity) was created or modified or deleted.
287 * (SQL type: timestamp)
288 * Note that values will be retrieved from the database as a string.
290 public $modified_date;
295 public function __construct() {
296 $this->__table
= 'civicrm_activity';
297 parent
::__construct();
301 * Returns localized title of this entity.
303 * @param bool $plural
304 * Whether to return the plural version of the title.
306 public static function getEntityTitle($plural = FALSE) {
307 return $plural ?
ts('Activities') : ts('Activity');
311 * Returns user-friendly description of this entity.
315 public static function getEntityDescription() {
316 return ts('Past or future actions concerning one or more contacts.');
320 * Returns foreign keys and entity references.
323 * [CRM_Core_Reference_Interface]
325 public static function getReferenceColumns() {
326 if (!isset(Civi
::$statics[__CLASS__
]['links'])) {
327 Civi
::$statics[__CLASS__
]['links'] = static::createReferenceColumns(__CLASS__
);
328 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'phone_id', 'civicrm_phone', 'id');
329 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'parent_id', 'civicrm_activity', 'id');
330 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'relationship_id', 'civicrm_relationship', 'id');
331 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'original_id', 'civicrm_activity', 'id');
332 Civi
::$statics[__CLASS__
]['links'][] = new CRM_Core_Reference_Basic(self
::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
333 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'links_callback', Civi
::$statics[__CLASS__
]['links']);
335 return Civi
::$statics[__CLASS__
]['links'];
339 * Returns all the column names of this table
343 public static function &fields() {
344 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
345 Civi
::$statics[__CLASS__
]['fields'] = [
348 'type' => CRM_Utils_Type
::T_INT
,
349 'title' => ts('Activity ID'),
350 'description' => ts('Unique Other Activity ID'),
353 'where' => 'civicrm_activity.id',
355 'table_name' => 'civicrm_activity',
356 'entity' => 'Activity',
357 'bao' => 'CRM_Activity_BAO_Activity',
365 'source_record_id' => [
366 'name' => 'source_record_id',
367 'type' => CRM_Utils_Type
::T_INT
,
368 'title' => ts('Source Record'),
369 'description' => ts('Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.'),
370 'where' => 'civicrm_activity.source_record_id',
371 'table_name' => 'civicrm_activity',
372 'entity' => 'Activity',
373 'bao' => 'CRM_Activity_BAO_Activity',
378 'activity_type_id' => [
379 'name' => 'activity_type_id',
380 'type' => CRM_Utils_Type
::T_INT
,
381 'title' => ts('Activity Type ID'),
382 'description' => ts('FK to civicrm_option_value.id, that has to be valid, registered activity type.'),
385 'where' => 'civicrm_activity.activity_type_id',
386 'headerPattern' => '/(activity.)?type(.id$)/i',
389 'table_name' => 'civicrm_activity',
390 'entity' => 'Activity',
391 'bao' => 'CRM_Activity_BAO_Activity',
395 'label' => ts("Activity Type"),
397 'pseudoconstant' => [
398 'optionGroupName' => 'activity_type',
399 'optionEditPath' => 'civicrm/admin/options/activity_type',
403 'activity_subject' => [
405 'type' => CRM_Utils_Type
::T_STRING
,
406 'title' => ts('Subject'),
407 'description' => ts('The subject/purpose/short description of the activity.'),
409 'size' => CRM_Utils_Type
::HUGE
,
411 'where' => 'civicrm_activity.subject',
412 'headerPattern' => '/(activity.)?subject/i',
414 'table_name' => 'civicrm_activity',
415 'entity' => 'Activity',
416 'bao' => 'CRM_Activity_BAO_Activity',
423 'activity_date_time' => [
424 'name' => 'activity_date_time',
425 'type' => CRM_Utils_Type
::T_DATE + CRM_Utils_Type
::T_TIME
,
426 'title' => ts('Activity Date'),
427 'description' => ts('Date and time this activity is scheduled to occur. Formerly named scheduled_date_time.'),
430 'where' => 'civicrm_activity.activity_date_time',
431 'headerPattern' => '/(activity.)?date(.time$)?/i',
433 'default' => 'CURRENT_TIMESTAMP',
434 'table_name' => 'civicrm_activity',
435 'entity' => 'Activity',
436 'bao' => 'CRM_Activity_BAO_Activity',
439 'type' => 'Select Date',
440 'formatType' => 'activityDateTime',
444 'activity_duration' => [
445 'name' => 'duration',
446 'type' => CRM_Utils_Type
::T_INT
,
447 'title' => ts('Duration'),
448 'description' => ts('Planned or actual duration of activity expressed in minutes. Conglomerate of former duration_hours and duration_minutes.'),
450 'where' => 'civicrm_activity.duration',
451 'headerPattern' => '/(activity.)?duration(s)?$/i',
453 'table_name' => 'civicrm_activity',
454 'entity' => 'Activity',
455 'bao' => 'CRM_Activity_BAO_Activity',
462 'activity_location' => [
463 'name' => 'location',
464 'type' => CRM_Utils_Type
::T_STRING
,
465 'title' => ts('Location'),
466 'description' => ts('Location of the activity (optional, open text).'),
468 'size' => CRM_Utils_Type
::HUGE
,
470 'where' => 'civicrm_activity.location',
471 'headerPattern' => '/(activity.)?location$/i',
473 'table_name' => 'civicrm_activity',
474 'entity' => 'Activity',
475 'bao' => 'CRM_Activity_BAO_Activity',
483 'name' => 'phone_id',
484 'type' => CRM_Utils_Type
::T_INT
,
485 'title' => ts('Phone ID (called)'),
486 'description' => ts('Phone ID of the number called (optional - used if an existing phone number is selected).'),
487 'where' => 'civicrm_activity.phone_id',
488 'table_name' => 'civicrm_activity',
489 'entity' => 'Activity',
490 'bao' => 'CRM_Activity_BAO_Activity',
492 'FKClassName' => 'CRM_Core_DAO_Phone',
494 'type' => 'EntityRef',
495 'label' => ts("Phone (called)"),
500 'name' => 'phone_number',
501 'type' => CRM_Utils_Type
::T_STRING
,
502 'title' => ts('Phone (called) Number'),
503 'description' => ts('Phone number in case the number does not exist in the civicrm_phone table.'),
505 'size' => CRM_Utils_Type
::BIG
,
506 'where' => 'civicrm_activity.phone_number',
507 'table_name' => 'civicrm_activity',
508 'entity' => 'Activity',
509 'bao' => 'CRM_Activity_BAO_Activity',
516 'activity_details' => [
518 'type' => CRM_Utils_Type
::T_LONGTEXT
,
519 'title' => ts('Details'),
520 'description' => ts('Details about the activity (agenda, notes, etc).'),
522 'where' => 'civicrm_activity.details',
523 'headerPattern' => '/(activity.)?detail(s)?$/i',
525 'table_name' => 'civicrm_activity',
526 'entity' => 'Activity',
527 'bao' => 'CRM_Activity_BAO_Activity',
530 'type' => 'RichTextEditor',
534 'activity_status_id' => [
535 'name' => 'status_id',
536 'type' => CRM_Utils_Type
::T_INT
,
537 'title' => ts('Activity Status'),
538 'description' => ts('ID of the status this activity is currently in. Foreign key to civicrm_option_value.'),
540 'where' => 'civicrm_activity.status_id',
541 'headerPattern' => '/(activity.)?status(.label$)?/i',
543 'table_name' => 'civicrm_activity',
544 'entity' => 'Activity',
545 'bao' => 'CRM_Activity_BAO_Activity',
550 'pseudoconstant' => [
551 'optionGroupName' => 'activity_status',
552 'optionEditPath' => 'civicrm/admin/options/activity_status',
557 'name' => 'priority_id',
558 'type' => CRM_Utils_Type
::T_INT
,
559 'title' => ts('Priority'),
560 'description' => ts('ID of the priority given to this activity. Foreign key to civicrm_option_value.'),
562 'where' => 'civicrm_activity.priority_id',
564 'table_name' => 'civicrm_activity',
565 'entity' => 'Activity',
566 'bao' => 'CRM_Activity_BAO_Activity',
571 'pseudoconstant' => [
572 'optionGroupName' => 'priority',
573 'optionEditPath' => 'civicrm/admin/options/priority',
578 'name' => 'parent_id',
579 'type' => CRM_Utils_Type
::T_INT
,
580 'title' => ts('Parent Activity ID'),
581 'description' => ts('Parent meeting ID (if this is a follow-up item). This is not currently implemented'),
582 'where' => 'civicrm_activity.parent_id',
583 'table_name' => 'civicrm_activity',
584 'entity' => 'Activity',
585 'bao' => 'CRM_Activity_BAO_Activity',
587 'FKClassName' => 'CRM_Activity_DAO_Activity',
589 'label' => ts("Parent Activity"),
594 'activity_is_test' => [
596 'type' => CRM_Utils_Type
::T_BOOLEAN
,
597 'title' => ts('Test'),
600 'where' => 'civicrm_activity.is_test',
601 'headerPattern' => '/(is.)?test(.activity)?/i',
604 'table_name' => 'civicrm_activity',
605 'entity' => 'Activity',
606 'bao' => 'CRM_Activity_BAO_Activity',
609 'type' => 'CheckBox',
613 'activity_medium_id' => [
614 'name' => 'medium_id',
615 'type' => CRM_Utils_Type
::T_INT
,
616 'title' => ts('Activity Medium'),
617 'description' => ts('Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.'),
618 'where' => 'civicrm_activity.medium_id',
620 'table_name' => 'civicrm_activity',
621 'entity' => 'Activity',
622 'bao' => 'CRM_Activity_BAO_Activity',
627 'pseudoconstant' => [
628 'optionGroupName' => 'encounter_medium',
629 'optionEditPath' => 'civicrm/admin/options/encounter_medium',
635 'type' => CRM_Utils_Type
::T_BOOLEAN
,
636 'title' => ts('Auto'),
638 'where' => 'civicrm_activity.is_auto',
640 'table_name' => 'civicrm_activity',
641 'entity' => 'Activity',
642 'bao' => 'CRM_Activity_BAO_Activity',
646 'relationship_id' => [
647 'name' => 'relationship_id',
648 'type' => CRM_Utils_Type
::T_INT
,
649 'title' => ts('Relationship ID'),
650 'description' => ts('FK to Relationship ID'),
651 'where' => 'civicrm_activity.relationship_id',
653 'table_name' => 'civicrm_activity',
654 'entity' => 'Activity',
655 'bao' => 'CRM_Activity_BAO_Activity',
657 'FKClassName' => 'CRM_Contact_DAO_Relationship',
659 'label' => ts("Relationship"),
663 'is_current_revision' => [
664 'name' => 'is_current_revision',
665 'type' => CRM_Utils_Type
::T_BOOLEAN
,
666 'title' => ts('Is this activity a current revision in versioning chain?'),
669 'where' => 'civicrm_activity.is_current_revision',
670 'headerPattern' => '/(is.)?(current.)?(revision|version(ing)?)/i',
673 'table_name' => 'civicrm_activity',
674 'entity' => 'Activity',
675 'bao' => 'CRM_Activity_BAO_Activity',
680 'name' => 'original_id',
681 'type' => CRM_Utils_Type
::T_INT
,
682 'title' => ts('Original Activity ID'),
683 'description' => ts('Activity ID of the first activity record in versioning chain.'),
684 'where' => 'civicrm_activity.original_id',
685 'table_name' => 'civicrm_activity',
686 'entity' => 'Activity',
687 'bao' => 'CRM_Activity_BAO_Activity',
689 'FKClassName' => 'CRM_Activity_DAO_Activity',
691 'label' => ts("Original Activity"),
696 'activity_result' => [
698 'type' => CRM_Utils_Type
::T_STRING
,
699 'title' => ts('Result'),
700 'description' => ts('Currently being used to store result id for survey activity, FK to option value.'),
702 'size' => CRM_Utils_Type
::HUGE
,
703 'where' => 'civicrm_activity.result',
704 'table_name' => 'civicrm_activity',
705 'entity' => 'Activity',
706 'bao' => 'CRM_Activity_BAO_Activity',
710 'activity_is_deleted' => [
711 'name' => 'is_deleted',
712 'type' => CRM_Utils_Type
::T_BOOLEAN
,
713 'title' => ts('Activity is in the Trash'),
716 'where' => 'civicrm_activity.is_deleted',
717 'headerPattern' => '/(activity.)?(trash|deleted)/i',
720 'table_name' => 'civicrm_activity',
721 'entity' => 'Activity',
722 'bao' => 'CRM_Activity_BAO_Activity',
725 'type' => 'CheckBox',
729 'activity_campaign_id' => [
730 'name' => 'campaign_id',
731 'type' => CRM_Utils_Type
::T_INT
,
732 'title' => ts('Campaign ID'),
733 'description' => ts('The campaign for which this activity has been triggered.'),
735 'where' => 'civicrm_activity.campaign_id',
737 'table_name' => 'civicrm_activity',
738 'entity' => 'Activity',
739 'bao' => 'CRM_Activity_BAO_Activity',
741 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
742 'component' => 'CiviCampaign',
744 'type' => 'EntityRef',
745 'label' => ts("Campaign"),
747 'pseudoconstant' => [
748 'table' => 'civicrm_campaign',
750 'labelColumn' => 'title',
751 'prefetch' => 'FALSE',
755 'activity_engagement_level' => [
756 'name' => 'engagement_level',
757 'type' => CRM_Utils_Type
::T_INT
,
758 'title' => ts('Engagement Index'),
759 'description' => ts('Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.'),
761 'where' => 'civicrm_activity.engagement_level',
763 'table_name' => 'civicrm_activity',
764 'entity' => 'Activity',
765 'bao' => 'CRM_Activity_BAO_Activity',
770 'pseudoconstant' => [
771 'optionGroupName' => 'engagement_index',
772 'optionEditPath' => 'civicrm/admin/options/engagement_index',
778 'type' => CRM_Utils_Type
::T_INT
,
779 'title' => ts('Order'),
780 'where' => 'civicrm_activity.weight',
781 'table_name' => 'civicrm_activity',
782 'entity' => 'Activity',
783 'bao' => 'CRM_Activity_BAO_Activity',
789 'type' => CRM_Utils_Type
::T_BOOLEAN
,
790 'title' => ts('Is Starred'),
791 'description' => ts('Activity marked as favorite.'),
794 'where' => 'civicrm_activity.is_star',
795 'headerPattern' => '/(activity.)?(star|favorite)/i',
798 'table_name' => 'civicrm_activity',
799 'entity' => 'Activity',
800 'bao' => 'CRM_Activity_BAO_Activity',
803 'type' => 'Checkbox',
807 'activity_created_date' => [
808 'name' => 'created_date',
809 'type' => CRM_Utils_Type
::T_TIMESTAMP
,
810 'title' => ts('Created Date'),
811 'description' => ts('When was the activity was created.'),
813 'where' => 'civicrm_activity.created_date',
815 'default' => 'CURRENT_TIMESTAMP',
816 'table_name' => 'civicrm_activity',
817 'entity' => 'Activity',
818 'bao' => 'CRM_Activity_BAO_Activity',
821 'type' => 'Select Date',
822 'label' => ts("Created Date"),
826 'activity_modified_date' => [
827 'name' => 'modified_date',
828 'type' => CRM_Utils_Type
::T_TIMESTAMP
,
829 'title' => ts('Modified Date'),
830 'description' => ts('When was the activity (or closely related entity) was created or modified or deleted.'),
832 'where' => 'civicrm_activity.modified_date',
834 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
835 'table_name' => 'civicrm_activity',
836 'entity' => 'Activity',
837 'bao' => 'CRM_Activity_BAO_Activity',
840 'type' => 'Select Date',
841 'label' => ts("Modified Date"),
847 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
849 return Civi
::$statics[__CLASS__
]['fields'];
853 * Return a mapping from field-name to the corresponding key (as used in fields()).
856 * Array(string $name => string $uniqueName).
858 public static function &fieldKeys() {
859 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
860 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
862 return Civi
::$statics[__CLASS__
]['fieldKeys'];
866 * Returns the names of this table
870 public static function getTableName() {
871 return self
::$_tableName;
875 * Returns if this table needs to be logged
879 public function getLog() {
884 * Returns the list of fields that can be imported
886 * @param bool $prefix
890 public static function &import($prefix = FALSE) {
891 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'activity', $prefix, []);
896 * Returns the list of fields that can be exported
898 * @param bool $prefix
902 public static function &export($prefix = FALSE) {
903 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'activity', $prefix, []);
908 * Returns the list of indices
910 * @param bool $localize
914 public static function indices($localize = TRUE) {
916 'UI_source_record_id' => [
917 'name' => 'UI_source_record_id',
919 0 => 'source_record_id',
921 'localizable' => FALSE,
922 'sig' => 'civicrm_activity::0::source_record_id',
924 'UI_activity_type_id' => [
925 'name' => 'UI_activity_type_id',
927 0 => 'activity_type_id',
929 'localizable' => FALSE,
930 'sig' => 'civicrm_activity::0::activity_type_id',
932 'index_activity_date_time' => [
933 'name' => 'index_activity_date_time',
935 0 => 'activity_date_time',
937 'localizable' => FALSE,
938 'sig' => 'civicrm_activity::0::activity_date_time',
940 'index_status_id' => [
941 'name' => 'index_status_id',
945 'localizable' => FALSE,
946 'sig' => 'civicrm_activity::0::status_id',
948 'index_is_current_revision' => [
949 'name' => 'index_is_current_revision',
951 0 => 'is_current_revision',
953 'localizable' => FALSE,
954 'sig' => 'civicrm_activity::0::is_current_revision',
956 'index_is_deleted' => [
957 'name' => 'index_is_deleted',
961 'localizable' => FALSE,
962 'sig' => 'civicrm_activity::0::is_deleted',
965 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;