Add "labelField" metadata to entities
[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
8ab43c93 9 * (GenCodeChecksum:f9fcb11332c6ea71f0154640b3c68fd0)
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,
a9d0587b 206 'add' => '1.8',
c3fc2621
CW
207 ],
208 'name' => [
e501603b
TO
209 'name' => 'name',
210 'type' => CRM_Utils_Type::T_STRING,
9c992885
SL
211 'title' => ts('Payment Processor Type variable name to be used in code'),
212 'description' => ts('Payment Processor Type Name.'),
2f859d0a 213 'required' => TRUE,
e501603b
TO
214 'maxlength' => 64,
215 'size' => CRM_Utils_Type::BIG,
a36434b9 216 'where' => 'civicrm_payment_processor_type.name',
522a26c9 217 'table_name' => 'civicrm_payment_processor_type',
218 'entity' => 'PaymentProcessorType',
219 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 220 'localizable' => 0,
a9d0587b 221 'add' => '1.8',
c3fc2621
CW
222 ],
223 'title' => [
e501603b
TO
224 'name' => 'title',
225 'type' => CRM_Utils_Type::T_STRING,
2f859d0a
SL
226 'title' => ts('Payment Processor Type Title'),
227 'description' => ts('Payment Processor Type Title.'),
228 'required' => TRUE,
e501603b
TO
229 'maxlength' => 127,
230 'size' => CRM_Utils_Type::HUGE,
a36434b9 231 'where' => 'civicrm_payment_processor_type.title',
522a26c9 232 'table_name' => 'civicrm_payment_processor_type',
233 'entity' => 'PaymentProcessorType',
234 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 235 'localizable' => 0,
a9d0587b 236 'add' => '1.8',
c3fc2621
CW
237 ],
238 'description' => [
e501603b
TO
239 'name' => 'description',
240 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 241 'title' => ts('Processor Type Description'),
215b423e 242 'description' => ts('Payment Processor Description.'),
e501603b
TO
243 'maxlength' => 255,
244 'size' => CRM_Utils_Type::HUGE,
a36434b9 245 'where' => 'civicrm_payment_processor_type.description',
522a26c9 246 'table_name' => 'civicrm_payment_processor_type',
247 'entity' => 'PaymentProcessorType',
248 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 249 'localizable' => 0,
a9d0587b 250 'add' => '1.8',
c3fc2621
CW
251 ],
252 'is_active' => [
e501603b
TO
253 'name' => 'is_active',
254 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 255 'title' => ts('Processor Type Is Active?'),
215b423e 256 'description' => ts('Is this processor active?'),
a36434b9 257 'where' => 'civicrm_payment_processor_type.is_active',
2f859d0a 258 'default' => '1',
522a26c9 259 'table_name' => 'civicrm_payment_processor_type',
260 'entity' => 'PaymentProcessorType',
261 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 262 'localizable' => 0,
a9d0587b 263 'add' => '1.8',
c3fc2621
CW
264 ],
265 'is_default' => [
e501603b
TO
266 'name' => 'is_default',
267 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 268 'title' => ts('Processor Type is Default?'),
215b423e 269 'description' => ts('Is this processor the default?'),
a36434b9 270 'where' => 'civicrm_payment_processor_type.is_default',
2f859d0a 271 'default' => '0',
522a26c9 272 'table_name' => 'civicrm_payment_processor_type',
273 'entity' => 'PaymentProcessorType',
274 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 275 'localizable' => 0,
a9d0587b 276 'add' => '1.8',
c3fc2621
CW
277 ],
278 'user_name_label' => [
e501603b
TO
279 'name' => 'user_name_label',
280 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 281 'title' => ts('Label for User Name if used'),
e501603b
TO
282 'maxlength' => 255,
283 'size' => CRM_Utils_Type::HUGE,
a36434b9 284 'where' => 'civicrm_payment_processor_type.user_name_label',
522a26c9 285 'table_name' => 'civicrm_payment_processor_type',
286 'entity' => 'PaymentProcessorType',
287 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 288 'localizable' => 0,
a9d0587b 289 'add' => '1.8',
c3fc2621
CW
290 ],
291 'password_label' => [
e501603b
TO
292 'name' => 'password_label',
293 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 294 'title' => ts('Label for password'),
e501603b
TO
295 'maxlength' => 255,
296 'size' => CRM_Utils_Type::HUGE,
a36434b9 297 'where' => 'civicrm_payment_processor_type.password_label',
522a26c9 298 'table_name' => 'civicrm_payment_processor_type',
299 'entity' => 'PaymentProcessorType',
300 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 301 'localizable' => 0,
a9d0587b 302 'add' => '1.8',
c3fc2621
CW
303 ],
304 'signature_label' => [
e501603b
TO
305 'name' => 'signature_label',
306 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 307 'title' => ts('Label for Signature'),
e501603b
TO
308 'maxlength' => 255,
309 'size' => CRM_Utils_Type::HUGE,
a36434b9 310 'where' => 'civicrm_payment_processor_type.signature_label',
522a26c9 311 'table_name' => 'civicrm_payment_processor_type',
312 'entity' => 'PaymentProcessorType',
313 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 314 'localizable' => 0,
a9d0587b 315 'add' => '1.8',
c3fc2621
CW
316 ],
317 'subject_label' => [
e501603b
TO
318 'name' => 'subject_label',
319 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 320 'title' => ts('Label for Subject'),
e501603b
TO
321 'maxlength' => 255,
322 'size' => CRM_Utils_Type::HUGE,
a36434b9 323 'where' => 'civicrm_payment_processor_type.subject_label',
522a26c9 324 'table_name' => 'civicrm_payment_processor_type',
325 'entity' => 'PaymentProcessorType',
326 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 327 'localizable' => 0,
a9d0587b 328 'add' => '1.8',
c3fc2621
CW
329 ],
330 'class_name' => [
e501603b
TO
331 'name' => 'class_name',
332 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 333 'title' => ts('Suffix for PHP class name implementation'),
2f859d0a 334 'required' => TRUE,
e501603b
TO
335 'maxlength' => 255,
336 'size' => CRM_Utils_Type::HUGE,
a36434b9 337 'where' => 'civicrm_payment_processor_type.class_name',
522a26c9 338 'table_name' => 'civicrm_payment_processor_type',
339 'entity' => 'PaymentProcessorType',
340 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 341 'localizable' => 0,
a9d0587b 342 'add' => '1.8',
c3fc2621
CW
343 ],
344 'url_site_default' => [
e501603b
TO
345 'name' => 'url_site_default',
346 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 347 'title' => ts('Default Live Site URL'),
e501603b
TO
348 'maxlength' => 255,
349 'size' => CRM_Utils_Type::HUGE,
a36434b9 350 'where' => 'civicrm_payment_processor_type.url_site_default',
522a26c9 351 'table_name' => 'civicrm_payment_processor_type',
352 'entity' => 'PaymentProcessorType',
353 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 354 'localizable' => 0,
a9d0587b 355 'add' => '1.8',
c3fc2621
CW
356 ],
357 'url_api_default' => [
e501603b
TO
358 'name' => 'url_api_default',
359 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 360 'title' => ts('Default API Site URL'),
e501603b
TO
361 'maxlength' => 255,
362 'size' => CRM_Utils_Type::HUGE,
a36434b9 363 'where' => 'civicrm_payment_processor_type.url_api_default',
522a26c9 364 'table_name' => 'civicrm_payment_processor_type',
365 'entity' => 'PaymentProcessorType',
366 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 367 'localizable' => 0,
a9d0587b 368 'add' => '1.8',
c3fc2621
CW
369 ],
370 'url_recur_default' => [
e501603b
TO
371 'name' => 'url_recur_default',
372 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 373 'title' => ts('Default Live Recurring Payments URL'),
e501603b
TO
374 'maxlength' => 255,
375 'size' => CRM_Utils_Type::HUGE,
a36434b9 376 'where' => 'civicrm_payment_processor_type.url_recur_default',
522a26c9 377 'table_name' => 'civicrm_payment_processor_type',
378 'entity' => 'PaymentProcessorType',
379 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 380 'localizable' => 0,
a9d0587b 381 'add' => '1.8',
c3fc2621
CW
382 ],
383 'url_button_default' => [
e501603b
TO
384 'name' => 'url_button_default',
385 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 386 'title' => ts('Default Live Button URL'),
e501603b
TO
387 'maxlength' => 255,
388 'size' => CRM_Utils_Type::HUGE,
a36434b9 389 'where' => 'civicrm_payment_processor_type.url_button_default',
522a26c9 390 'table_name' => 'civicrm_payment_processor_type',
391 'entity' => 'PaymentProcessorType',
392 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 393 'localizable' => 0,
a9d0587b 394 'add' => '1.8',
c3fc2621
CW
395 ],
396 'url_site_test_default' => [
e501603b
TO
397 'name' => 'url_site_test_default',
398 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 399 'title' => ts('Default Test Site URL'),
e501603b
TO
400 'maxlength' => 255,
401 'size' => CRM_Utils_Type::HUGE,
a36434b9 402 'where' => 'civicrm_payment_processor_type.url_site_test_default',
522a26c9 403 'table_name' => 'civicrm_payment_processor_type',
404 'entity' => 'PaymentProcessorType',
405 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 406 'localizable' => 0,
a9d0587b 407 'add' => '1.8',
c3fc2621
CW
408 ],
409 'url_api_test_default' => [
e501603b
TO
410 'name' => 'url_api_test_default',
411 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 412 'title' => ts('Default Test API URL'),
e501603b
TO
413 'maxlength' => 255,
414 'size' => CRM_Utils_Type::HUGE,
a36434b9 415 'where' => 'civicrm_payment_processor_type.url_api_test_default',
522a26c9 416 'table_name' => 'civicrm_payment_processor_type',
417 'entity' => 'PaymentProcessorType',
418 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 419 'localizable' => 0,
a9d0587b 420 'add' => '1.8',
c3fc2621
CW
421 ],
422 'url_recur_test_default' => [
e501603b
TO
423 'name' => 'url_recur_test_default',
424 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 425 'title' => ts('Default Test Recurring Payment URL'),
e501603b
TO
426 'maxlength' => 255,
427 'size' => CRM_Utils_Type::HUGE,
a36434b9 428 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
522a26c9 429 'table_name' => 'civicrm_payment_processor_type',
430 'entity' => 'PaymentProcessorType',
431 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 432 'localizable' => 0,
a9d0587b 433 'add' => '1.8',
c3fc2621
CW
434 ],
435 'url_button_test_default' => [
e501603b
TO
436 'name' => 'url_button_test_default',
437 'type' => CRM_Utils_Type::T_STRING,
c3fc2621 438 'title' => ts('Default Test Button URL'),
e501603b
TO
439 'maxlength' => 255,
440 'size' => CRM_Utils_Type::HUGE,
a36434b9 441 'where' => 'civicrm_payment_processor_type.url_button_test_default',
522a26c9 442 'table_name' => 'civicrm_payment_processor_type',
443 'entity' => 'PaymentProcessorType',
444 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 445 'localizable' => 0,
a9d0587b 446 'add' => '1.8',
c3fc2621
CW
447 ],
448 'billing_mode' => [
e501603b
TO
449 'name' => 'billing_mode',
450 'type' => CRM_Utils_Type::T_INT,
c3fc2621 451 'title' => ts('Billing Mode'),
215b423e 452 'description' => ts('Billing Mode (deprecated)'),
c3fc2621 453 'required' => TRUE,
a36434b9 454 'where' => 'civicrm_payment_processor_type.billing_mode',
522a26c9 455 'table_name' => 'civicrm_payment_processor_type',
456 'entity' => 'PaymentProcessorType',
457 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 458 'localizable' => 0,
c3fc2621 459 'html' => [
e501603b 460 'type' => 'Select',
c3fc2621
CW
461 ],
462 'pseudoconstant' => [
e501603b 463 'callback' => 'CRM_Core_SelectValues::billingMode',
e6ca0a57 464 ],
a9d0587b 465 'add' => '1.8',
c3fc2621
CW
466 ],
467 'is_recur' => [
e501603b
TO
468 'name' => 'is_recur',
469 'type' => CRM_Utils_Type::T_BOOLEAN,
c3fc2621 470 'title' => ts('Processor Type Supports Recurring?'),
215b423e 471 'description' => ts('Can process recurring contributions'),
a36434b9 472 'where' => 'civicrm_payment_processor_type.is_recur',
522a26c9 473 'table_name' => 'civicrm_payment_processor_type',
474 'entity' => 'PaymentProcessorType',
475 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 476 'localizable' => 0,
a9d0587b 477 'add' => '1.8',
c3fc2621
CW
478 ],
479 'payment_type' => [
e501603b
TO
480 'name' => 'payment_type',
481 'type' => CRM_Utils_Type::T_INT,
c3fc2621 482 'title' => ts('Processor Type Payment Type'),
215b423e 483 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
a36434b9 484 'where' => 'civicrm_payment_processor_type.payment_type',
e501603b 485 'default' => '1',
522a26c9 486 'table_name' => 'civicrm_payment_processor_type',
487 'entity' => 'PaymentProcessorType',
488 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 489 'localizable' => 0,
a9d0587b 490 'add' => '3.0',
c3fc2621
CW
491 ],
492 'payment_instrument_id' => [
e501603b
TO
493 'name' => 'payment_instrument_id',
494 'type' => CRM_Utils_Type::T_INT,
c3fc2621 495 'title' => ts('Payment Method'),
215b423e 496 'description' => ts('Payment Instrument ID'),
a36434b9 497 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
e501603b 498 'default' => '1',
522a26c9 499 'table_name' => 'civicrm_payment_processor_type',
500 'entity' => 'PaymentProcessorType',
501 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
6a7e5e5d 502 'localizable' => 0,
c3fc2621 503 'pseudoconstant' => [
e501603b
TO
504 'optionGroupName' => 'payment_instrument',
505 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
e6ca0a57 506 ],
a9d0587b 507 'add' => '4.7',
c3fc2621
CW
508 ],
509 ];
346aaaba 510 CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
e501603b 511 }
346aaaba 512 return Civi::$statics[__CLASS__]['fields'];
e501603b 513 }
c3fc2621 514
e501603b 515 /**
bd8e0b14 516 * Return a mapping from field-name to the corresponding key (as used in fields()).
e501603b
TO
517 *
518 * @return array
bd8e0b14 519 * Array(string $name => string $uniqueName).
e501603b 520 */
c3fc2621 521 public static function &fieldKeys() {
bd8e0b14
TO
522 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
523 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
e501603b 524 }
bd8e0b14 525 return Civi::$statics[__CLASS__]['fieldKeys'];
e501603b 526 }
c3fc2621 527
e501603b
TO
528 /**
529 * Returns the names of this table
530 *
531 * @return string
532 */
c3fc2621 533 public static function getTableName() {
e501603b
TO
534 return self::$_tableName;
535 }
c3fc2621 536
e501603b
TO
537 /**
538 * Returns if this table needs to be logged
539 *
c3fc2621 540 * @return bool
e501603b 541 */
c3fc2621 542 public function getLog() {
e501603b
TO
543 return self::$_log;
544 }
c3fc2621 545
e501603b
TO
546 /**
547 * Returns the list of fields that can be imported
548 *
549 * @param bool $prefix
550 *
551 * @return array
552 */
c3fc2621
CW
553 public static function &import($prefix = FALSE) {
554 $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'payment_processor_type', $prefix, []);
60808919 555 return $r;
e501603b 556 }
c3fc2621 557
e501603b
TO
558 /**
559 * Returns the list of fields that can be exported
560 *
561 * @param bool $prefix
562 *
563 * @return array
564 */
c3fc2621
CW
565 public static function &export($prefix = FALSE) {
566 $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_processor_type', $prefix, []);
60808919 567 return $r;
e501603b 568 }
c3fc2621 569
e7a6b91a
AS
570 /**
571 * Returns the list of indices
c3fc2621
CW
572 *
573 * @param bool $localize
574 *
575 * @return array
e7a6b91a
AS
576 */
577 public static function indices($localize = TRUE) {
c3fc2621
CW
578 $indices = [
579 'UI_name' => [
e7a6b91a 580 'name' => 'UI_name',
c3fc2621 581 'field' => [
e7a6b91a 582 0 => 'name',
c3fc2621
CW
583 ],
584 'localizable' => FALSE,
585 'unique' => TRUE,
e7a6b91a 586 'sig' => 'civicrm_payment_processor_type::1::name',
c3fc2621
CW
587 ],
588 ];
e7a6b91a
AS
589 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
590 }
c3fc2621 591
e501603b 592}