5 * @copyright CiviCRM LLC https://civicrm.org/licensing
7 * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:958b81df5ba2401b9a334be65ccdb015)
13 * Database access object for the PaymentProcessorType entity.
15 class CRM_Financial_DAO_PaymentProcessorType
extends CRM_Core_DAO
{
16 const EXT
= 'civicrm';
17 const TABLE_ADDED
= '1.8';
18 const COMPONENT
= 'CiviContribute';
21 * Static instance to hold the table name.
25 public static $_tableName = 'civicrm_payment_processor_type';
28 * Should CiviCRM log any modifications to this table in the civicrm_log table.
32 public static $_log = FALSE;
35 * Payment Processor Type ID
42 * Payment Processor Type Name.
49 * Payment Processor Type Title.
56 * Payment Processor Description.
63 * Is this processor active?
70 * Is this processor the default?
79 public $user_name_label;
84 public $password_label;
89 public $signature_label;
94 public $subject_label;
104 public $url_site_default;
109 public $url_api_default;
114 public $url_recur_default;
119 public $url_button_default;
124 public $url_site_test_default;
129 public $url_api_test_default;
134 public $url_recur_test_default;
139 public $url_button_test_default;
142 * Billing Mode (deprecated)
146 public $billing_mode;
149 * Can process recurring contributions
156 * Payment Type: Credit or Debit (deprecated)
160 public $payment_type;
163 * Payment Instrument ID
167 public $payment_instrument_id;
172 public function __construct() {
173 $this->__table
= 'civicrm_payment_processor_type';
174 parent
::__construct();
178 * Returns localized title of this entity.
180 * @param bool $plural
181 * Whether to return the plural version of the title.
183 public static function getEntityTitle($plural = FALSE) {
184 return $plural ?
ts('Payment Processor Types') : ts('Payment Processor Type');
188 * Returns all the column names of this table
192 public static function &fields() {
193 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
194 Civi
::$statics[__CLASS__
]['fields'] = [
197 'type' => CRM_Utils_Type
::T_INT
,
198 'title' => ts('Payment Processor Type ID'),
199 'description' => ts('Payment Processor Type ID'),
201 'where' => 'civicrm_payment_processor_type.id',
202 'table_name' => 'civicrm_payment_processor_type',
203 'entity' => 'PaymentProcessorType',
204 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
214 'type' => CRM_Utils_Type
::T_STRING
,
215 'title' => ts('Payment Processor Type variable name to be used in code'),
216 'description' => ts('Payment Processor Type Name.'),
219 'size' => CRM_Utils_Type
::BIG
,
220 'where' => 'civicrm_payment_processor_type.name',
221 'table_name' => 'civicrm_payment_processor_type',
222 'entity' => 'PaymentProcessorType',
223 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
229 'type' => CRM_Utils_Type
::T_STRING
,
230 'title' => ts('Payment Processor Type Title'),
231 'description' => ts('Payment Processor Type Title.'),
234 'size' => CRM_Utils_Type
::HUGE
,
235 'where' => 'civicrm_payment_processor_type.title',
236 'table_name' => 'civicrm_payment_processor_type',
237 'entity' => 'PaymentProcessorType',
238 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
243 'name' => 'description',
244 'type' => CRM_Utils_Type
::T_STRING
,
245 'title' => ts('Processor Type Description'),
246 'description' => ts('Payment Processor Description.'),
248 'size' => CRM_Utils_Type
::HUGE
,
249 'where' => 'civicrm_payment_processor_type.description',
250 'table_name' => 'civicrm_payment_processor_type',
251 'entity' => 'PaymentProcessorType',
252 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
257 'name' => 'is_active',
258 'type' => CRM_Utils_Type
::T_BOOLEAN
,
259 'title' => ts('Processor Type Is Active?'),
260 'description' => ts('Is this processor active?'),
261 'where' => 'civicrm_payment_processor_type.is_active',
263 'table_name' => 'civicrm_payment_processor_type',
264 'entity' => 'PaymentProcessorType',
265 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
270 'name' => 'is_default',
271 'type' => CRM_Utils_Type
::T_BOOLEAN
,
272 'title' => ts('Processor Type is Default?'),
273 'description' => ts('Is this processor the default?'),
274 'where' => 'civicrm_payment_processor_type.is_default',
276 'table_name' => 'civicrm_payment_processor_type',
277 'entity' => 'PaymentProcessorType',
278 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
282 'user_name_label' => [
283 'name' => 'user_name_label',
284 'type' => CRM_Utils_Type
::T_STRING
,
285 'title' => ts('Label for User Name if used'),
287 'size' => CRM_Utils_Type
::HUGE
,
288 'where' => 'civicrm_payment_processor_type.user_name_label',
289 'table_name' => 'civicrm_payment_processor_type',
290 'entity' => 'PaymentProcessorType',
291 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
295 'password_label' => [
296 'name' => 'password_label',
297 'type' => CRM_Utils_Type
::T_STRING
,
298 'title' => ts('Label for password'),
300 'size' => CRM_Utils_Type
::HUGE
,
301 'where' => 'civicrm_payment_processor_type.password_label',
302 'table_name' => 'civicrm_payment_processor_type',
303 'entity' => 'PaymentProcessorType',
304 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
308 'signature_label' => [
309 'name' => 'signature_label',
310 'type' => CRM_Utils_Type
::T_STRING
,
311 'title' => ts('Label for Signature'),
313 'size' => CRM_Utils_Type
::HUGE
,
314 'where' => 'civicrm_payment_processor_type.signature_label',
315 'table_name' => 'civicrm_payment_processor_type',
316 'entity' => 'PaymentProcessorType',
317 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
322 'name' => 'subject_label',
323 'type' => CRM_Utils_Type
::T_STRING
,
324 'title' => ts('Label for Subject'),
326 'size' => CRM_Utils_Type
::HUGE
,
327 'where' => 'civicrm_payment_processor_type.subject_label',
328 'table_name' => 'civicrm_payment_processor_type',
329 'entity' => 'PaymentProcessorType',
330 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
335 'name' => 'class_name',
336 'type' => CRM_Utils_Type
::T_STRING
,
337 'title' => ts('Suffix for PHP class name implementation'),
340 'size' => CRM_Utils_Type
::HUGE
,
341 'where' => 'civicrm_payment_processor_type.class_name',
342 'table_name' => 'civicrm_payment_processor_type',
343 'entity' => 'PaymentProcessorType',
344 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
348 'url_site_default' => [
349 'name' => 'url_site_default',
350 'type' => CRM_Utils_Type
::T_STRING
,
351 'title' => ts('Default Live Site URL'),
353 'size' => CRM_Utils_Type
::HUGE
,
354 'where' => 'civicrm_payment_processor_type.url_site_default',
355 'table_name' => 'civicrm_payment_processor_type',
356 'entity' => 'PaymentProcessorType',
357 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
361 'url_api_default' => [
362 'name' => 'url_api_default',
363 'type' => CRM_Utils_Type
::T_STRING
,
364 'title' => ts('Default API Site URL'),
366 'size' => CRM_Utils_Type
::HUGE
,
367 'where' => 'civicrm_payment_processor_type.url_api_default',
368 'table_name' => 'civicrm_payment_processor_type',
369 'entity' => 'PaymentProcessorType',
370 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
374 'url_recur_default' => [
375 'name' => 'url_recur_default',
376 'type' => CRM_Utils_Type
::T_STRING
,
377 'title' => ts('Default Live Recurring Payments URL'),
379 'size' => CRM_Utils_Type
::HUGE
,
380 'where' => 'civicrm_payment_processor_type.url_recur_default',
381 'table_name' => 'civicrm_payment_processor_type',
382 'entity' => 'PaymentProcessorType',
383 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
387 'url_button_default' => [
388 'name' => 'url_button_default',
389 'type' => CRM_Utils_Type
::T_STRING
,
390 'title' => ts('Default Live Button URL'),
392 'size' => CRM_Utils_Type
::HUGE
,
393 'where' => 'civicrm_payment_processor_type.url_button_default',
394 'table_name' => 'civicrm_payment_processor_type',
395 'entity' => 'PaymentProcessorType',
396 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
400 'url_site_test_default' => [
401 'name' => 'url_site_test_default',
402 'type' => CRM_Utils_Type
::T_STRING
,
403 'title' => ts('Default Test Site URL'),
405 'size' => CRM_Utils_Type
::HUGE
,
406 'where' => 'civicrm_payment_processor_type.url_site_test_default',
407 'table_name' => 'civicrm_payment_processor_type',
408 'entity' => 'PaymentProcessorType',
409 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
413 'url_api_test_default' => [
414 'name' => 'url_api_test_default',
415 'type' => CRM_Utils_Type
::T_STRING
,
416 'title' => ts('Default Test API URL'),
418 'size' => CRM_Utils_Type
::HUGE
,
419 'where' => 'civicrm_payment_processor_type.url_api_test_default',
420 'table_name' => 'civicrm_payment_processor_type',
421 'entity' => 'PaymentProcessorType',
422 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
426 'url_recur_test_default' => [
427 'name' => 'url_recur_test_default',
428 'type' => CRM_Utils_Type
::T_STRING
,
429 'title' => ts('Default Test Recurring Payment URL'),
431 'size' => CRM_Utils_Type
::HUGE
,
432 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
433 'table_name' => 'civicrm_payment_processor_type',
434 'entity' => 'PaymentProcessorType',
435 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
439 'url_button_test_default' => [
440 'name' => 'url_button_test_default',
441 'type' => CRM_Utils_Type
::T_STRING
,
442 'title' => ts('Default Test Button URL'),
444 'size' => CRM_Utils_Type
::HUGE
,
445 'where' => 'civicrm_payment_processor_type.url_button_test_default',
446 'table_name' => 'civicrm_payment_processor_type',
447 'entity' => 'PaymentProcessorType',
448 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
453 'name' => 'billing_mode',
454 'type' => CRM_Utils_Type
::T_INT
,
455 'title' => ts('Billing Mode'),
456 'description' => ts('Billing Mode (deprecated)'),
458 'where' => 'civicrm_payment_processor_type.billing_mode',
459 'table_name' => 'civicrm_payment_processor_type',
460 'entity' => 'PaymentProcessorType',
461 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
465 'label' => ts("Billing Mode"),
467 'pseudoconstant' => [
468 'callback' => 'CRM_Core_SelectValues::billingMode',
473 'name' => 'is_recur',
474 'type' => CRM_Utils_Type
::T_BOOLEAN
,
475 'title' => ts('Processor Type Supports Recurring?'),
476 'description' => ts('Can process recurring contributions'),
477 'where' => 'civicrm_payment_processor_type.is_recur',
478 'table_name' => 'civicrm_payment_processor_type',
479 'entity' => 'PaymentProcessorType',
480 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
485 'name' => 'payment_type',
486 'type' => CRM_Utils_Type
::T_INT
,
487 'title' => ts('Processor Type Payment Type'),
488 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
489 'where' => 'civicrm_payment_processor_type.payment_type',
491 'table_name' => 'civicrm_payment_processor_type',
492 'entity' => 'PaymentProcessorType',
493 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
497 'payment_instrument_id' => [
498 'name' => 'payment_instrument_id',
499 'type' => CRM_Utils_Type
::T_INT
,
500 'title' => ts('Payment Method'),
501 'description' => ts('Payment Instrument ID'),
502 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
504 'table_name' => 'civicrm_payment_processor_type',
505 'entity' => 'PaymentProcessorType',
506 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
508 'pseudoconstant' => [
509 'optionGroupName' => 'payment_instrument',
510 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
515 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
517 return Civi
::$statics[__CLASS__
]['fields'];
521 * Return a mapping from field-name to the corresponding key (as used in fields()).
524 * Array(string $name => string $uniqueName).
526 public static function &fieldKeys() {
527 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
528 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
530 return Civi
::$statics[__CLASS__
]['fieldKeys'];
534 * Returns the names of this table
538 public static function getTableName() {
539 return self
::$_tableName;
543 * Returns if this table needs to be logged
547 public function getLog() {
552 * Returns the list of fields that can be imported
554 * @param bool $prefix
558 public static function &import($prefix = FALSE) {
559 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, []);
564 * Returns the list of fields that can be exported
566 * @param bool $prefix
570 public static function &export($prefix = FALSE) {
571 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, []);
576 * Returns the list of indices
578 * @param bool $localize
582 public static function indices($localize = TRUE) {
589 'localizable' => FALSE,
591 'sig' => 'civicrm_payment_processor_type::1::name',
594 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;