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