Merge in 5.31
[civicrm-core.git] / CRM / Campaign / DAO / Survey.php
CommitLineData
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/Campaign/Survey.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
7b66c3b5 9 * (GenCodeChecksum:afb7cfcccd2a6177b2b10e07afa92e8e)
e501603b 10 */
c3fc2621 11
f41f0342 12/**
c3fc2621 13 * Database access object for the Survey entity.
f41f0342 14 */
e501603b 15class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
929a1c14
CW
16 const EXT = 'civicrm';
17 const TABLE_ADDED = '3.2';
c3fc2621 18
e501603b 19 /**
f41f0342 20 * Static instance to hold the table name.
e501603b
TO
21 *
22 * @var string
23 */
fa45b5b9 24 public static $_tableName = 'civicrm_survey';
c3fc2621 25
449c4e6b
CW
26 /**
27 * Icon associated with this entity.
28 *
29 * @var string
30 */
31 public static $_icon = 'fa-clipboard';
32
e501603b 33 /**
f41f0342 34 * Should CiviCRM log any modifications to this table in the civicrm_log table.
e501603b 35 *
c3fc2621 36 * @var bool
e501603b 37 */
fa45b5b9 38 public static $_log = FALSE;
c3fc2621 39
e501603b
TO
40 /**
41 * Survey id.
42 *
e6ca0a57 43 * @var int
e501603b
TO
44 */
45 public $id;
c3fc2621 46
e501603b
TO
47 /**
48 * Title of the Survey.
49 *
50 * @var string
51 */
52 public $title;
c3fc2621 53
e501603b
TO
54 /**
55 * Foreign key to the Campaign.
56 *
e6ca0a57 57 * @var int
e501603b
TO
58 */
59 public $campaign_id;
c3fc2621 60
e501603b
TO
61 /**
62 * Implicit FK to civicrm_option_value where option_group = activity_type
63 *
e6ca0a57 64 * @var int
e501603b
TO
65 */
66 public $activity_type_id;
c3fc2621 67
e501603b
TO
68 /**
69 * Recontact intervals for each status.
70 *
71 * @var text
72 */
73 public $recontact_interval;
c3fc2621 74
e501603b
TO
75 /**
76 * Script instructions for volunteers to use for the survey.
77 *
78 * @var text
79 */
80 public $instructions;
c3fc2621 81
e501603b
TO
82 /**
83 * Number of days for recurrence of release.
84 *
e6ca0a57 85 * @var int
e501603b
TO
86 */
87 public $release_frequency;
c3fc2621 88
e501603b
TO
89 /**
90 * Maximum number of contacts to allow for survey.
91 *
e6ca0a57 92 * @var int
e501603b
TO
93 */
94 public $max_number_of_contacts;
c3fc2621 95
e501603b
TO
96 /**
97 * Default number of contacts to allow for survey.
98 *
e6ca0a57 99 * @var int
e501603b
TO
100 */
101 public $default_number_of_contacts;
c3fc2621 102
e501603b
TO
103 /**
104 * Is this survey enabled or disabled/cancelled?
105 *
e6ca0a57 106 * @var bool
e501603b
TO
107 */
108 public $is_active;
c3fc2621 109
e501603b
TO
110 /**
111 * Is this default survey?
112 *
e6ca0a57 113 * @var bool
e501603b
TO
114 */
115 public $is_default;
c3fc2621 116
e501603b
TO
117 /**
118 * FK to civicrm_contact, who created this Survey.
119 *
e6ca0a57 120 * @var int
e501603b
TO
121 */
122 public $created_id;
c3fc2621 123
e501603b
TO
124 /**
125 * Date and time that Survey was created.
126 *
127 * @var datetime
128 */
129 public $created_date;
c3fc2621 130
e501603b
TO
131 /**
132 * FK to civicrm_contact, who recently edited this Survey.
133 *
e6ca0a57 134 * @var int
e501603b
TO
135 */
136 public $last_modified_id;
c3fc2621 137
e501603b
TO
138 /**
139 * Date and time that Survey was edited last time.
140 *
141 * @var datetime
142 */
143 public $last_modified_date;
c3fc2621 144
e501603b
TO
145 /**
146 * Used to store option group id.
147 *
e6ca0a57 148 * @var int
e501603b
TO
149 */
150 public $result_id;
c3fc2621 151
e501603b
TO
152 /**
153 * Bypass the email verification.
154 *
e6ca0a57 155 * @var bool
e501603b
TO
156 */
157 public $bypass_confirm;
c3fc2621 158
e501603b
TO
159 /**
160 * Title for Thank-you page (header title tag, and display at the top of the page).
161 *
162 * @var string
163 */
164 public $thankyou_title;
c3fc2621 165
e501603b
TO
166 /**
167 * text and html allowed. displayed above result on success page
168 *
169 * @var text
170 */
171 public $thankyou_text;
c3fc2621 172
e501603b
TO
173 /**
174 * Can people share the petition through social media?
175 *
e6ca0a57 176 * @var bool
e501603b
TO
177 */
178 public $is_share;
c3fc2621 179
e501603b 180 /**
f41f0342 181 * Class constructor.
e501603b 182 */
c3fc2621 183 public function __construct() {
e501603b
TO
184 $this->__table = 'civicrm_survey';
185 parent::__construct();
186 }
c3fc2621 187
449c4e6b
CW
188 /**
189 * Returns localized title of this entity.
7b66c3b5
AH
190 *
191 * @param bool $plural
192 * Whether to return the plural version of the title.
449c4e6b 193 */
7b66c3b5
AH
194 public static function getEntityTitle($plural = FALSE) {
195 return $plural ? ts('Surveys') : ts('Survey');
449c4e6b
CW
196 }
197
e501603b 198 /**
f41f0342 199 * Returns foreign keys and entity references.
e501603b
TO
200 *
201 * @return array
202 * [CRM_Core_Reference_Interface]
203 */
c3fc2621 204 public static function getReferenceColumns() {
346aaaba 205 if (!isset(Civi::$statics[__CLASS__]['links'])) {
fa45b5b9 206 Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
c3fc2621
CW
207 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'campaign_id', 'civicrm_campaign', 'id');
208 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
209 Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
346aaaba 210 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
e501603b 211 }
346aaaba 212 return Civi::$statics[__CLASS__]['links'];
e501603b 213 }
c3fc2621 214
e501603b
TO
215 /**
216 * Returns all the column names of this table
217 *
218 * @return array
219 */
c3fc2621 220 public static function &fields() {
346aaaba 221 if (!isset(Civi::$statics[__CLASS__]['fields'])) {
c3fc2621
CW
222 Civi::$statics[__CLASS__]['fields'] = [
223 'id' => [
e501603b
TO
224 'name' => 'id',
225 'type' => CRM_Utils_Type::T_INT,
c3fc2621 226 'title' => ts('Survey ID'),
215b423e 227 'description' => ts('Survey id.'),
c3fc2621 228 'required' => TRUE,
a36434b9 229 'where' => 'civicrm_survey.id',
522a26c9 230 'table_name' => 'civicrm_survey',
231 'entity' => 'Survey',
232 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 233 'localizable' => 0,
a9d0587b 234 'add' => '3.3',
c3fc2621
CW
235 ],
236 'title' => [
e501603b
TO
237 'name' => 'title',
238 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 239 'title' => ts('Survey Title'),
215b423e 240 'description' => ts('Title of the Survey.'),
c3fc2621 241 'required' => TRUE,
e501603b
TO
242 'maxlength' => 255,
243 'size' => CRM_Utils_Type::HUGE,
c3fc2621 244 'import' => TRUE,
e501603b 245 'where' => 'civicrm_survey.title',
c3fc2621 246 'export' => TRUE,
522a26c9 247 'table_name' => 'civicrm_survey',
248 'entity' => 'Survey',
249 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 250 'localizable' => 1,
a9d0587b 251 'add' => '3.3',
c3fc2621
CW
252 ],
253 'campaign_id' => [
e501603b
TO
254 'name' => 'campaign_id',
255 'type' => CRM_Utils_Type::T_INT,
c3fc2621 256 'title' => ts('Survey Campaign ID'),
215b423e 257 'description' => ts('Foreign key to the Campaign.'),
a36434b9 258 'where' => 'civicrm_survey.campaign_id',
e501603b 259 'default' => 'NULL',
522a26c9 260 'table_name' => 'civicrm_survey',
261 'entity' => 'Survey',
262 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 263 'localizable' => 0,
e501603b 264 'FKClassName' => 'CRM_Campaign_DAO_Campaign',
c3fc2621 265 'pseudoconstant' => [
e501603b
TO
266 'table' => 'civicrm_campaign',
267 'keyColumn' => 'id',
268 'labelColumn' => 'title',
e6ca0a57 269 ],
a9d0587b 270 'add' => '3.3',
c3fc2621
CW
271 ],
272 'activity_type_id' => [
e501603b
TO
273 'name' => 'activity_type_id',
274 'type' => CRM_Utils_Type::T_INT,
c3fc2621 275 'title' => ts('Activity Type'),
215b423e 276 'description' => ts('Implicit FK to civicrm_option_value where option_group = activity_type'),
c3fc2621 277 'import' => TRUE,
e501603b 278 'where' => 'civicrm_survey.activity_type_id',
c3fc2621 279 'export' => TRUE,
e501603b 280 'default' => 'NULL',
522a26c9 281 'table_name' => 'civicrm_survey',
282 'entity' => 'Survey',
283 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 284 'localizable' => 0,
c3fc2621 285 'html' => [
e501603b 286 'type' => 'Select',
c3fc2621
CW
287 ],
288 'pseudoconstant' => [
e501603b
TO
289 'optionGroupName' => 'activity_type',
290 'optionEditPath' => 'civicrm/admin/options/activity_type',
e6ca0a57 291 ],
a9d0587b 292 'add' => '3.3',
c3fc2621
CW
293 ],
294 'recontact_interval' => [
e501603b
TO
295 'name' => 'recontact_interval',
296 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 297 'title' => ts('Follow up Interval'),
215b423e 298 'description' => ts('Recontact intervals for each status.'),
e501603b
TO
299 'rows' => 20,
300 'cols' => 80,
a36434b9 301 'where' => 'civicrm_survey.recontact_interval',
522a26c9 302 'table_name' => 'civicrm_survey',
303 'entity' => 'Survey',
304 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 305 'localizable' => 0,
c3fc2621 306 'html' => [
e501603b 307 'type' => 'TextArea',
c3fc2621 308 ],
a9d0587b 309 'add' => '3.3',
c3fc2621
CW
310 ],
311 'instructions' => [
e501603b
TO
312 'name' => 'instructions',
313 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 314 'title' => ts('Instructions'),
215b423e 315 'description' => ts('Script instructions for volunteers to use for the survey.'),
e501603b
TO
316 'rows' => 20,
317 'cols' => 80,
a36434b9 318 'where' => 'civicrm_survey.instructions',
522a26c9 319 'table_name' => 'civicrm_survey',
320 'entity' => 'Survey',
321 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 322 'localizable' => 1,
c3fc2621 323 'html' => [
e501603b 324 'type' => 'TextArea',
c3fc2621 325 ],
a9d0587b 326 'add' => '3.3',
c3fc2621
CW
327 ],
328 'release_frequency' => [
e501603b
TO
329 'name' => 'release_frequency',
330 'type' => CRM_Utils_Type::T_INT,
c3fc2621 331 'title' => ts('Survey Hold Duration'),
215b423e 332 'description' => ts('Number of days for recurrence of release.'),
a36434b9 333 'where' => 'civicrm_survey.release_frequency',
e501603b 334 'default' => 'NULL',
522a26c9 335 'table_name' => 'civicrm_survey',
336 'entity' => 'Survey',
337 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 338 'localizable' => 0,
a9d0587b 339 'add' => '3.3',
c3fc2621
CW
340 ],
341 'max_number_of_contacts' => [
e501603b
TO
342 'name' => 'max_number_of_contacts',
343 'type' => CRM_Utils_Type::T_INT,
c3fc2621 344 'title' => ts('Maximum number of contacts'),
215b423e 345 'description' => ts('Maximum number of contacts to allow for survey.'),
a36434b9 346 'where' => 'civicrm_survey.max_number_of_contacts',
e501603b 347 'default' => 'NULL',
522a26c9 348 'table_name' => 'civicrm_survey',
349 'entity' => 'Survey',
350 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 351 'localizable' => 0,
a9d0587b 352 'add' => '3.3',
c3fc2621
CW
353 ],
354 'default_number_of_contacts' => [
e501603b
TO
355 'name' => 'default_number_of_contacts',
356 'type' => CRM_Utils_Type::T_INT,
c3fc2621 357 'title' => ts('Default number of contacts'),
215b423e 358 'description' => ts('Default number of contacts to allow for survey.'),
a36434b9 359 'where' => 'civicrm_survey.default_number_of_contacts',
e501603b 360 'default' => 'NULL',
522a26c9 361 'table_name' => 'civicrm_survey',
362 'entity' => 'Survey',
363 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 364 'localizable' => 0,
a9d0587b 365 'add' => '3.3',
c3fc2621
CW
366 ],
367 'is_active' => [
e501603b
TO
368 'name' => 'is_active',
369 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 370 'title' => ts('Survey Is Active'),
215b423e 371 'description' => ts('Is this survey enabled or disabled/cancelled?'),
a36434b9 372 'where' => 'civicrm_survey.is_active',
e501603b 373 'default' => '1',
522a26c9 374 'table_name' => 'civicrm_survey',
375 'entity' => 'Survey',
376 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 377 'localizable' => 0,
a9d0587b 378 'add' => '3.3',
c3fc2621
CW
379 ],
380 'is_default' => [
e501603b
TO
381 'name' => 'is_default',
382 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 383 'title' => ts('Is Default Survey'),
215b423e 384 'description' => ts('Is this default survey?'),
a36434b9 385 'where' => 'civicrm_survey.is_default',
45a83e42 386 'default' => '0',
522a26c9 387 'table_name' => 'civicrm_survey',
388 'entity' => 'Survey',
389 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 390 'localizable' => 0,
a9d0587b 391 'add' => '3.3',
c3fc2621
CW
392 ],
393 'created_id' => [
e501603b
TO
394 'name' => 'created_id',
395 'type' => CRM_Utils_Type::T_INT,
c3fc2621 396 'title' => ts('Survey Created By'),
215b423e 397 'description' => ts('FK to civicrm_contact, who created this Survey.'),
a36434b9 398 'where' => 'civicrm_survey.created_id',
522a26c9 399 'table_name' => 'civicrm_survey',
400 'entity' => 'Survey',
401 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 402 'localizable' => 0,
e501603b 403 'FKClassName' => 'CRM_Contact_DAO_Contact',
a9d0587b 404 'add' => '3.3',
c3fc2621
CW
405 ],
406 'created_date' => [
e501603b
TO
407 'name' => 'created_date',
408 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
c3fc2621 409 'title' => ts('Campaign Created Date'),
215b423e 410 'description' => ts('Date and time that Survey was created.'),
a36434b9 411 'where' => 'civicrm_survey.created_date',
522a26c9 412 'table_name' => 'civicrm_survey',
413 'entity' => 'Survey',
414 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 415 'localizable' => 0,
a9d0587b 416 'add' => '3.3',
c3fc2621
CW
417 ],
418 'last_modified_id' => [
e501603b
TO
419 'name' => 'last_modified_id',
420 'type' => CRM_Utils_Type::T_INT,
c3fc2621 421 'title' => ts('Survey Modified'),
215b423e 422 'description' => ts('FK to civicrm_contact, who recently edited this Survey.'),
a36434b9 423 'where' => 'civicrm_survey.last_modified_id',
522a26c9 424 'table_name' => 'civicrm_survey',
425 'entity' => 'Survey',
426 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 427 'localizable' => 0,
e501603b 428 'FKClassName' => 'CRM_Contact_DAO_Contact',
a9d0587b 429 'add' => '3.3',
c3fc2621
CW
430 ],
431 'last_modified_date' => [
e501603b
TO
432 'name' => 'last_modified_date',
433 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
c3fc2621 434 'title' => ts('Survey Modified On'),
215b423e 435 'description' => ts('Date and time that Survey was edited last time.'),
a36434b9 436 'where' => 'civicrm_survey.last_modified_date',
522a26c9 437 'table_name' => 'civicrm_survey',
438 'entity' => 'Survey',
439 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 440 'localizable' => 0,
a9d0587b 441 'add' => '3.3',
c3fc2621
CW
442 ],
443 'result_id' => [
e501603b
TO
444 'name' => 'result_id',
445 'type' => CRM_Utils_Type::T_INT,
c3fc2621 446 'title' => ts('Survey Result'),
215b423e 447 'description' => ts('Used to store option group id.'),
a36434b9 448 'where' => 'civicrm_survey.result_id',
e501603b 449 'default' => 'NULL',
522a26c9 450 'table_name' => 'civicrm_survey',
451 'entity' => 'Survey',
452 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 453 'localizable' => 0,
a9d0587b 454 'add' => '3.3',
c3fc2621
CW
455 ],
456 'bypass_confirm' => [
e501603b
TO
457 'name' => 'bypass_confirm',
458 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 459 'title' => ts('No Email Verification'),
215b423e 460 'description' => ts('Bypass the email verification.'),
a36434b9 461 'where' => 'civicrm_survey.bypass_confirm',
45a83e42 462 'default' => '0',
522a26c9 463 'table_name' => 'civicrm_survey',
464 'entity' => 'Survey',
465 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 466 'localizable' => 0,
a9d0587b 467 'add' => '4.2',
c3fc2621
CW
468 ],
469 'thankyou_title' => [
e501603b
TO
470 'name' => 'thankyou_title',
471 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 472 'title' => ts('Thank-you Title'),
215b423e 473 'description' => ts('Title for Thank-you page (header title tag, and display at the top of the page).'),
e501603b
TO
474 'maxlength' => 255,
475 'size' => CRM_Utils_Type::HUGE,
a36434b9 476 'where' => 'civicrm_survey.thankyou_title',
522a26c9 477 'table_name' => 'civicrm_survey',
478 'entity' => 'Survey',
479 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 480 'localizable' => 1,
a9d0587b 481 'add' => '4.2',
c3fc2621
CW
482 ],
483 'thankyou_text' => [
e501603b
TO
484 'name' => 'thankyou_text',
485 'type' => CRM_Utils_Type::T_TEXT,
c3fc2621 486 'title' => ts('Thank-you Text'),
215b423e 487 'description' => ts('text and html allowed. displayed above result on success page'),
e501603b
TO
488 'rows' => 8,
489 'cols' => 60,
a36434b9 490 'where' => 'civicrm_survey.thankyou_text',
522a26c9 491 'table_name' => 'civicrm_survey',
492 'entity' => 'Survey',
493 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 494 'localizable' => 1,
c3fc2621 495 'html' => [
e501603b 496 'type' => 'TextArea',
c3fc2621 497 ],
a9d0587b 498 'add' => '4.2',
c3fc2621
CW
499 ],
500 'is_share' => [
e501603b
TO
501 'name' => 'is_share',
502 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 503 'title' => ts('Is shared through social media'),
215b423e 504 'description' => ts('Can people share the petition through social media?'),
a36434b9 505 'where' => 'civicrm_survey.is_share',
e501603b 506 'default' => '1',
522a26c9 507 'table_name' => 'civicrm_survey',
508 'entity' => 'Survey',
509 'bao' => 'CRM_Campaign_BAO_Survey',
6a7e5e5d 510 'localizable' => 0,
a9d0587b 511 'add' => '4.4',
c3fc2621
CW
512 ],
513 ];
346aaaba 514 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 515 }
346aaaba 516 return Civi::$statics[__CLASS__]['fields'];
e501603b 517 }
c3fc2621 518
e501603b 519 /**
bd8e0b14 520 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
521 *
522 * @return array
bd8e0b14 523 * Array(string $name => string $uniqueName).
e501603b 524 */
c3fc2621 525 public static function &fieldKeys() {
bd8e0b14
TO
526 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
527 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 528 }
bd8e0b14 529 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 530 }
c3fc2621 531
e501603b
TO
532 /**
533 * Returns the names of this table
534 *
535 * @return string
536 */
c3fc2621 537 public static function getTableName() {
e501603b
TO
538 return CRM_Core_DAO::getLocaleTableName(self::$_tableName);
539 }
c3fc2621 540
e501603b
TO
541 /**
542 * Returns if this table needs to be logged
543 *
c3fc2621 544 * @return bool
e501603b 545 */
c3fc2621 546 public function getLog() {
e501603b
TO
547 return self::$_log;
548 }
c3fc2621 549
e501603b
TO
550 /**
551 * Returns the list of fields that can be imported
552 *
553 * @param bool $prefix
554 *
555 * @return array
556 */
c3fc2621
CW
557 public static function &import($prefix = FALSE) {
558 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'survey', $prefix, []);
60808919 559 return $r;
e501603b 560 }
c3fc2621 561
e501603b
TO
562 /**
563 * Returns the list of fields that can be exported
564 *
565 * @param bool $prefix
566 *
567 * @return array
568 */
c3fc2621
CW
569 public static function &export($prefix = FALSE) {
570 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'survey', $prefix, []);
60808919 571 return $r;
e501603b 572 }
c3fc2621 573
e7a6b91a
AS
574 /**
575 * Returns the list of indices
c3fc2621
CW
576 *
577 * @param bool $localize
578 *
579 * @return array
e7a6b91a
AS
580 */
581 public static function indices($localize = TRUE) {
c3fc2621
CW
582 $indices = [
583 'UI_activity_type_id' => [
e7a6b91a 584 'name' => 'UI_activity_type_id',
c3fc2621 585 'field' => [
e7a6b91a 586 0 => 'activity_type_id',
c3fc2621
CW
587 ],
588 'localizable' => FALSE,
e7a6b91a 589 'sig' => 'civicrm_survey::0::activity_type_id',
c3fc2621
CW
590 ],
591 ];
e7a6b91a
AS
592 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
593 }
c3fc2621 594
e501603b 595}