Merge pull request #21548 from eileenmcnaughton/cleanup
[civicrm-core.git] / CRM / Financial / DAO / PaymentProcessorType.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/Financial/PaymentProcessorType.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
2562d09a 9 * (GenCodeChecksum:f60f8f4248c8c667223720869d8c81b3)
e501603b 10 */
c3fc2621 11
f41f0342 12/**
c3fc2621 13 * Database access object for the PaymentProcessorType entity.
f41f0342 14 */
e501603b 15class CRM_Financial_DAO_PaymentProcessorType extends CRM_Core_DAO {
929a1c14
CW
16 const EXT = 'civicrm';
17 const TABLE_ADDED = '1.8';
d31fb4e3 18 const COMPONENT = 'CiviContribute';
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_payment_processor_type';
c3fc2621 26
e501603b 27 /**
f41f0342 28 * Should CiviCRM log any modifications to this table in the civicrm_log table.
e501603b 29 *
c3fc2621 30 * @var bool
e501603b 31 */
fa45b5b9 32 public static $_log = FALSE;
c3fc2621 33
e501603b
TO
34 /**
35 * Payment Processor Type ID
36 *
e6ca0a57 37 * @var int
e501603b
TO
38 */
39 public $id;
c3fc2621 40
e501603b 41 /**
9c992885 42 * Payment Processor Type Name.
e501603b
TO
43 *
44 * @var string
45 */
46 public $name;
c3fc2621 47
e501603b 48 /**
2f859d0a 49 * Payment Processor Type Title.
e501603b
TO
50 *
51 * @var string
52 */
53 public $title;
c3fc2621 54
e501603b
TO
55 /**
56 * Payment Processor Description.
57 *
58 * @var string
59 */
60 public $description;
c3fc2621 61
e501603b
TO
62 /**
63 * Is this processor active?
64 *
e6ca0a57 65 * @var bool
e501603b
TO
66 */
67 public $is_active;
c3fc2621 68
e501603b
TO
69 /**
70 * Is this processor the default?
71 *
e6ca0a57 72 * @var bool
e501603b
TO
73 */
74 public $is_default;
c3fc2621 75
e501603b 76 /**
e501603b
TO
77 * @var string
78 */
79 public $user_name_label;
c3fc2621 80
e501603b 81 /**
e501603b
TO
82 * @var string
83 */
84 public $password_label;
c3fc2621 85
e501603b 86 /**
e501603b
TO
87 * @var string
88 */
89 public $signature_label;
c3fc2621 90
e501603b 91 /**
e501603b
TO
92 * @var string
93 */
94 public $subject_label;
c3fc2621 95
e501603b 96 /**
e501603b
TO
97 * @var string
98 */
99 public $class_name;
c3fc2621 100
e501603b 101 /**
e501603b
TO
102 * @var string
103 */
104 public $url_site_default;
c3fc2621 105
e501603b 106 /**
e501603b
TO
107 * @var string
108 */
109 public $url_api_default;
c3fc2621 110
e501603b 111 /**
e501603b
TO
112 * @var string
113 */
114 public $url_recur_default;
c3fc2621 115
e501603b 116 /**
e501603b
TO
117 * @var string
118 */
119 public $url_button_default;
c3fc2621 120
e501603b 121 /**
e501603b
TO
122 * @var string
123 */
124 public $url_site_test_default;
c3fc2621 125
e501603b 126 /**
e501603b
TO
127 * @var string
128 */
129 public $url_api_test_default;
c3fc2621 130
e501603b 131 /**
e501603b
TO
132 * @var string
133 */
134 public $url_recur_test_default;
c3fc2621 135
e501603b 136 /**
e501603b
TO
137 * @var string
138 */
139 public $url_button_test_default;
c3fc2621 140
e501603b
TO
141 /**
142 * Billing Mode (deprecated)
143 *
e6ca0a57 144 * @var int
e501603b
TO
145 */
146 public $billing_mode;
c3fc2621 147
e501603b
TO
148 /**
149 * Can process recurring contributions
150 *
e6ca0a57 151 * @var bool
e501603b
TO
152 */
153 public $is_recur;
c3fc2621 154
e501603b
TO
155 /**
156 * Payment Type: Credit or Debit (deprecated)
157 *
e6ca0a57 158 * @var int
e501603b
TO
159 */
160 public $payment_type;
c3fc2621 161
e501603b
TO
162 /**
163 * Payment Instrument ID
164 *
e6ca0a57 165 * @var int
e501603b
TO
166 */
167 public $payment_instrument_id;
c3fc2621 168
e501603b 169 /**
f41f0342 170 * Class constructor.
e501603b 171 */
c3fc2621 172 public function __construct() {
e501603b
TO
173 $this->__table = 'civicrm_payment_processor_type';
174 parent::__construct();
175 }
c3fc2621 176
449c4e6b
CW
177 /**
178 * Returns localized title of this entity.
7b66c3b5
AH
179 *
180 * @param bool $plural
181 * Whether to return the plural version of the title.
449c4e6b 182 */
7b66c3b5
AH
183 public static function getEntityTitle($plural = FALSE) {
184 return $plural ? ts('Payment Processor Types') : ts('Payment Processor Type');
449c4e6b
CW
185 }
186
e501603b
TO
187 /**
188 * Returns all the column names of this table
189 *
190 * @return array
191 */
c3fc2621 192 public static function &fields() {
346aaaba 193 if (!isset(Civi::$statics[__CLASS__]['fields'])) {
c3fc2621
CW
194 Civi::$statics[__CLASS__]['fields'] = [
195 'id' => [
e501603b
TO
196 'name' => 'id',
197 'type' => CRM_Utils_Type::T_INT,
c3fc2621 198 'title' => ts('Payment Processor Type ID'),
215b423e 199 'description' => ts('Payment Processor Type ID'),
c3fc2621 200 'required' => TRUE,
a36434b9 201 'where' => 'civicrm_payment_processor_type.id',
522a26c9 202 'table_name' => 'civicrm_payment_processor_type',
203 'entity' => 'PaymentProcessorType',
204 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 205 'localizable' => 0,
2cbbebe8
A
206 'html' => [
207 'type' => 'Number',
208 ],
1fe423d6 209 'readonly' => TRUE,
a9d0587b 210 'add' => '1.8',
c3fc2621
CW
211 ],
212 'name' => [
e501603b
TO
213 'name' => 'name',
214 'type' => CRM_Utils_Type::T_STRING,
9c992885
SL
215 'title' => ts('Payment Processor Type variable name to be used in code'),
216 'description' => ts('Payment Processor Type Name.'),
2f859d0a 217 'required' => TRUE,
e501603b
TO
218 'maxlength' => 64,
219 'size' => CRM_Utils_Type::BIG,
a36434b9 220 'where' => 'civicrm_payment_processor_type.name',
522a26c9 221 'table_name' => 'civicrm_payment_processor_type',
222 'entity' => 'PaymentProcessorType',
223 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 224 'localizable' => 0,
a9d0587b 225 'add' => '1.8',
c3fc2621
CW
226 ],
227 'title' => [
e501603b
TO
228 'name' => 'title',
229 'type' => CRM_Utils_Type::T_STRING,
2f859d0a
SL
230 'title' => ts('Payment Processor Type Title'),
231 'description' => ts('Payment Processor Type Title.'),
232 'required' => TRUE,
e501603b
TO
233 'maxlength' => 127,
234 'size' => CRM_Utils_Type::HUGE,
a36434b9 235 'where' => 'civicrm_payment_processor_type.title',
522a26c9 236 'table_name' => 'civicrm_payment_processor_type',
237 'entity' => 'PaymentProcessorType',
238 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 239 'localizable' => 0,
a9d0587b 240 'add' => '1.8',
c3fc2621
CW
241 ],
242 'description' => [
e501603b
TO
243 'name' => 'description',
244 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 245 'title' => ts('Processor Type Description'),
215b423e 246 'description' => ts('Payment Processor Description.'),
e501603b
TO
247 'maxlength' => 255,
248 'size' => CRM_Utils_Type::HUGE,
a36434b9 249 'where' => 'civicrm_payment_processor_type.description',
522a26c9 250 'table_name' => 'civicrm_payment_processor_type',
251 'entity' => 'PaymentProcessorType',
252 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 253 'localizable' => 0,
a9d0587b 254 'add' => '1.8',
c3fc2621
CW
255 ],
256 'is_active' => [
e501603b
TO
257 'name' => 'is_active',
258 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 259 'title' => ts('Processor Type Is Active?'),
215b423e 260 'description' => ts('Is this processor active?'),
a36434b9 261 'where' => 'civicrm_payment_processor_type.is_active',
2f859d0a 262 'default' => '1',
522a26c9 263 'table_name' => 'civicrm_payment_processor_type',
264 'entity' => 'PaymentProcessorType',
265 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 266 'localizable' => 0,
a9d0587b 267 'add' => '1.8',
c3fc2621
CW
268 ],
269 'is_default' => [
e501603b
TO
270 'name' => 'is_default',
271 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 272 'title' => ts('Processor Type is Default?'),
215b423e 273 'description' => ts('Is this processor the default?'),
a36434b9 274 'where' => 'civicrm_payment_processor_type.is_default',
2f859d0a 275 'default' => '0',
522a26c9 276 'table_name' => 'civicrm_payment_processor_type',
277 'entity' => 'PaymentProcessorType',
278 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 279 'localizable' => 0,
a9d0587b 280 'add' => '1.8',
c3fc2621
CW
281 ],
282 'user_name_label' => [
e501603b
TO
283 'name' => 'user_name_label',
284 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 285 'title' => ts('Label for User Name if used'),
e501603b
TO
286 'maxlength' => 255,
287 'size' => CRM_Utils_Type::HUGE,
a36434b9 288 'where' => 'civicrm_payment_processor_type.user_name_label',
522a26c9 289 'table_name' => 'civicrm_payment_processor_type',
290 'entity' => 'PaymentProcessorType',
291 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 292 'localizable' => 0,
a9d0587b 293 'add' => '1.8',
c3fc2621
CW
294 ],
295 'password_label' => [
e501603b
TO
296 'name' => 'password_label',
297 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 298 'title' => ts('Label for password'),
e501603b
TO
299 'maxlength' => 255,
300 'size' => CRM_Utils_Type::HUGE,
a36434b9 301 'where' => 'civicrm_payment_processor_type.password_label',
522a26c9 302 'table_name' => 'civicrm_payment_processor_type',
303 'entity' => 'PaymentProcessorType',
304 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 305 'localizable' => 0,
a9d0587b 306 'add' => '1.8',
c3fc2621
CW
307 ],
308 'signature_label' => [
e501603b
TO
309 'name' => 'signature_label',
310 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 311 'title' => ts('Label for Signature'),
e501603b
TO
312 'maxlength' => 255,
313 'size' => CRM_Utils_Type::HUGE,
a36434b9 314 'where' => 'civicrm_payment_processor_type.signature_label',
522a26c9 315 'table_name' => 'civicrm_payment_processor_type',
316 'entity' => 'PaymentProcessorType',
317 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 318 'localizable' => 0,
a9d0587b 319 'add' => '1.8',
c3fc2621
CW
320 ],
321 'subject_label' => [
e501603b
TO
322 'name' => 'subject_label',
323 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 324 'title' => ts('Label for Subject'),
e501603b
TO
325 'maxlength' => 255,
326 'size' => CRM_Utils_Type::HUGE,
a36434b9 327 'where' => 'civicrm_payment_processor_type.subject_label',
522a26c9 328 'table_name' => 'civicrm_payment_processor_type',
329 'entity' => 'PaymentProcessorType',
330 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 331 'localizable' => 0,
a9d0587b 332 'add' => '1.8',
c3fc2621
CW
333 ],
334 'class_name' => [
e501603b
TO
335 'name' => 'class_name',
336 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 337 'title' => ts('Suffix for PHP class name implementation'),
2f859d0a 338 'required' => TRUE,
e501603b
TO
339 'maxlength' => 255,
340 'size' => CRM_Utils_Type::HUGE,
a36434b9 341 'where' => 'civicrm_payment_processor_type.class_name',
522a26c9 342 'table_name' => 'civicrm_payment_processor_type',
343 'entity' => 'PaymentProcessorType',
344 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 345 'localizable' => 0,
a9d0587b 346 'add' => '1.8',
c3fc2621
CW
347 ],
348 'url_site_default' => [
e501603b
TO
349 'name' => 'url_site_default',
350 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 351 'title' => ts('Default Live Site URL'),
e501603b
TO
352 'maxlength' => 255,
353 'size' => CRM_Utils_Type::HUGE,
a36434b9 354 'where' => 'civicrm_payment_processor_type.url_site_default',
522a26c9 355 'table_name' => 'civicrm_payment_processor_type',
356 'entity' => 'PaymentProcessorType',
357 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 358 'localizable' => 0,
a9d0587b 359 'add' => '1.8',
c3fc2621
CW
360 ],
361 'url_api_default' => [
e501603b
TO
362 'name' => 'url_api_default',
363 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 364 'title' => ts('Default API Site URL'),
e501603b
TO
365 'maxlength' => 255,
366 'size' => CRM_Utils_Type::HUGE,
a36434b9 367 'where' => 'civicrm_payment_processor_type.url_api_default',
522a26c9 368 'table_name' => 'civicrm_payment_processor_type',
369 'entity' => 'PaymentProcessorType',
370 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 371 'localizable' => 0,
a9d0587b 372 'add' => '1.8',
c3fc2621
CW
373 ],
374 'url_recur_default' => [
e501603b
TO
375 'name' => 'url_recur_default',
376 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 377 'title' => ts('Default Live Recurring Payments URL'),
e501603b
TO
378 'maxlength' => 255,
379 'size' => CRM_Utils_Type::HUGE,
a36434b9 380 'where' => 'civicrm_payment_processor_type.url_recur_default',
522a26c9 381 'table_name' => 'civicrm_payment_processor_type',
382 'entity' => 'PaymentProcessorType',
383 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 384 'localizable' => 0,
a9d0587b 385 'add' => '1.8',
c3fc2621
CW
386 ],
387 'url_button_default' => [
e501603b
TO
388 'name' => 'url_button_default',
389 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 390 'title' => ts('Default Live Button URL'),
e501603b
TO
391 'maxlength' => 255,
392 'size' => CRM_Utils_Type::HUGE,
a36434b9 393 'where' => 'civicrm_payment_processor_type.url_button_default',
522a26c9 394 'table_name' => 'civicrm_payment_processor_type',
395 'entity' => 'PaymentProcessorType',
396 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 397 'localizable' => 0,
a9d0587b 398 'add' => '1.8',
c3fc2621
CW
399 ],
400 'url_site_test_default' => [
e501603b
TO
401 'name' => 'url_site_test_default',
402 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 403 'title' => ts('Default Test Site URL'),
e501603b
TO
404 'maxlength' => 255,
405 'size' => CRM_Utils_Type::HUGE,
a36434b9 406 'where' => 'civicrm_payment_processor_type.url_site_test_default',
522a26c9 407 'table_name' => 'civicrm_payment_processor_type',
408 'entity' => 'PaymentProcessorType',
409 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 410 'localizable' => 0,
a9d0587b 411 'add' => '1.8',
c3fc2621
CW
412 ],
413 'url_api_test_default' => [
e501603b
TO
414 'name' => 'url_api_test_default',
415 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 416 'title' => ts('Default Test API URL'),
e501603b
TO
417 'maxlength' => 255,
418 'size' => CRM_Utils_Type::HUGE,
a36434b9 419 'where' => 'civicrm_payment_processor_type.url_api_test_default',
522a26c9 420 'table_name' => 'civicrm_payment_processor_type',
421 'entity' => 'PaymentProcessorType',
422 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 423 'localizable' => 0,
a9d0587b 424 'add' => '1.8',
c3fc2621
CW
425 ],
426 'url_recur_test_default' => [
e501603b
TO
427 'name' => 'url_recur_test_default',
428 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 429 'title' => ts('Default Test Recurring Payment URL'),
e501603b
TO
430 'maxlength' => 255,
431 'size' => CRM_Utils_Type::HUGE,
a36434b9 432 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
522a26c9 433 'table_name' => 'civicrm_payment_processor_type',
434 'entity' => 'PaymentProcessorType',
435 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 436 'localizable' => 0,
a9d0587b 437 'add' => '1.8',
c3fc2621
CW
438 ],
439 'url_button_test_default' => [
e501603b
TO
440 'name' => 'url_button_test_default',
441 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 442 'title' => ts('Default Test Button URL'),
e501603b
TO
443 'maxlength' => 255,
444 'size' => CRM_Utils_Type::HUGE,
a36434b9 445 'where' => 'civicrm_payment_processor_type.url_button_test_default',
522a26c9 446 'table_name' => 'civicrm_payment_processor_type',
447 'entity' => 'PaymentProcessorType',
448 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 449 'localizable' => 0,
a9d0587b 450 'add' => '1.8',
c3fc2621
CW
451 ],
452 'billing_mode' => [
e501603b
TO
453 'name' => 'billing_mode',
454 'type' => CRM_Utils_Type::T_INT,
c3fc2621 455 'title' => ts('Billing Mode'),
215b423e 456 'description' => ts('Billing Mode (deprecated)'),
c3fc2621 457 'required' => TRUE,
a36434b9 458 'where' => 'civicrm_payment_processor_type.billing_mode',
522a26c9 459 'table_name' => 'civicrm_payment_processor_type',
460 'entity' => 'PaymentProcessorType',
461 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 462 'localizable' => 0,
c3fc2621 463 'html' => [
e501603b 464 'type' => 'Select',
c23563e3 465 'label' => ts("Billing Mode"),
c3fc2621
CW
466 ],
467 'pseudoconstant' => [
e501603b 468 'callback' => 'CRM_Core_SelectValues::billingMode',
e6ca0a57 469 ],
a9d0587b 470 'add' => '1.8',
c3fc2621
CW
471 ],
472 'is_recur' => [
e501603b
TO
473 'name' => 'is_recur',
474 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 475 'title' => ts('Processor Type Supports Recurring?'),
215b423e 476 'description' => ts('Can process recurring contributions'),
a36434b9 477 'where' => 'civicrm_payment_processor_type.is_recur',
522a26c9 478 'table_name' => 'civicrm_payment_processor_type',
479 'entity' => 'PaymentProcessorType',
480 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 481 'localizable' => 0,
a9d0587b 482 'add' => '1.8',
c3fc2621
CW
483 ],
484 'payment_type' => [
e501603b
TO
485 'name' => 'payment_type',
486 'type' => CRM_Utils_Type::T_INT,
c3fc2621 487 'title' => ts('Processor Type Payment Type'),
215b423e 488 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
a36434b9 489 'where' => 'civicrm_payment_processor_type.payment_type',
e501603b 490 'default' => '1',
522a26c9 491 'table_name' => 'civicrm_payment_processor_type',
492 'entity' => 'PaymentProcessorType',
493 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 494 'localizable' => 0,
a9d0587b 495 'add' => '3.0',
c3fc2621
CW
496 ],
497 'payment_instrument_id' => [
e501603b
TO
498 'name' => 'payment_instrument_id',
499 'type' => CRM_Utils_Type::T_INT,
c3fc2621 500 'title' => ts('Payment Method'),
215b423e 501 'description' => ts('Payment Instrument ID'),
a36434b9 502 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
e501603b 503 'default' => '1',
522a26c9 504 'table_name' => 'civicrm_payment_processor_type',
505 'entity' => 'PaymentProcessorType',
506 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 507 'localizable' => 0,
c3fc2621 508 'pseudoconstant' => [
e501603b
TO
509 'optionGroupName' => 'payment_instrument',
510 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
e6ca0a57 511 ],
a9d0587b 512 'add' => '4.7',
c3fc2621
CW
513 ],
514 ];
346aaaba 515 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 516 }
346aaaba 517 return Civi::$statics[__CLASS__]['fields'];
e501603b 518 }
c3fc2621 519
e501603b 520 /**
bd8e0b14 521 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
522 *
523 * @return array
bd8e0b14 524 * Array(string $name => string $uniqueName).
e501603b 525 */
c3fc2621 526 public static function &fieldKeys() {
bd8e0b14
TO
527 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
528 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 529 }
bd8e0b14 530 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 531 }
c3fc2621 532
e501603b
TO
533 /**
534 * Returns the names of this table
535 *
536 * @return string
537 */
c3fc2621 538 public static function getTableName() {
e501603b
TO
539 return self::$_tableName;
540 }
c3fc2621 541
e501603b
TO
542 /**
543 * Returns if this table needs to be logged
544 *
c3fc2621 545 * @return bool
e501603b 546 */
c3fc2621 547 public function getLog() {
e501603b
TO
548 return self::$_log;
549 }
c3fc2621 550
e501603b
TO
551 /**
552 * Returns the list of fields that can be imported
553 *
554 * @param bool $prefix
555 *
556 * @return array
557 */
c3fc2621
CW
558 public static function &import($prefix = FALSE) {
559 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'payment_processor_type', $prefix, []);
60808919 560 return $r;
e501603b 561 }
c3fc2621 562
e501603b
TO
563 /**
564 * Returns the list of fields that can be exported
565 *
566 * @param bool $prefix
567 *
568 * @return array
569 */
c3fc2621
CW
570 public static function &export($prefix = FALSE) {
571 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_processor_type', $prefix, []);
60808919 572 return $r;
e501603b 573 }
c3fc2621 574
e7a6b91a
AS
575 /**
576 * Returns the list of indices
c3fc2621
CW
577 *
578 * @param bool $localize
579 *
580 * @return array
e7a6b91a
AS
581 */
582 public static function indices($localize = TRUE) {
c3fc2621
CW
583 $indices = [
584 'UI_name' => [
e7a6b91a 585 'name' => 'UI_name',
c3fc2621 586 'field' => [
e7a6b91a 587 0 => 'name',
c3fc2621
CW
588 ],
589 'localizable' => FALSE,
590 'unique' => TRUE,
e7a6b91a 591 'sig' => 'civicrm_payment_processor_type::1::name',
c3fc2621
CW
592 ],
593 ];
e7a6b91a
AS
594 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
595 }
c3fc2621 596
e501603b 597}