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:1133a3c9eb58738c315a8509fea39d72)
13 * Database access object for the PaymentProcessorType entity.
15 class CRM_Financial_DAO_PaymentProcessorType
extends CRM_Core_DAO
{
18 * Static instance to hold the table name.
22 public static $_tableName = 'civicrm_payment_processor_type';
25 * Should CiviCRM log any modifications to this table in the civicrm_log table.
29 public static $_log = FALSE;
32 * Payment Processor Type ID
39 * Payment Processor Type Name.
46 * Payment Processor Type Title.
53 * Payment Processor Description.
60 * Is this processor active?
67 * Is this processor the default?
76 public $user_name_label;
81 public $password_label;
86 public $signature_label;
91 public $subject_label;
101 public $url_site_default;
106 public $url_api_default;
111 public $url_recur_default;
116 public $url_button_default;
121 public $url_site_test_default;
126 public $url_api_test_default;
131 public $url_recur_test_default;
136 public $url_button_test_default;
139 * Billing Mode (deprecated)
143 public $billing_mode;
146 * Can process recurring contributions
153 * Payment Type: Credit or Debit (deprecated)
157 public $payment_type;
160 * Payment Instrument ID
164 public $payment_instrument_id;
169 public function __construct() {
170 $this->__table
= 'civicrm_payment_processor_type';
171 parent
::__construct();
175 * Returns all the column names of this table
179 public static function &fields() {
180 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
181 Civi
::$statics[__CLASS__
]['fields'] = [
184 'type' => CRM_Utils_Type
::T_INT
,
185 'title' => ts('Payment Processor Type ID'),
186 'description' => ts('Payment Processor Type ID'),
188 'where' => 'civicrm_payment_processor_type.id',
189 'table_name' => 'civicrm_payment_processor_type',
190 'entity' => 'PaymentProcessorType',
191 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
196 'type' => CRM_Utils_Type
::T_STRING
,
197 'title' => ts('Payment Processor Type variable name to be used in code'),
198 'description' => ts('Payment Processor Type Name.'),
201 'size' => CRM_Utils_Type
::BIG
,
202 'where' => 'civicrm_payment_processor_type.name',
203 'table_name' => 'civicrm_payment_processor_type',
204 'entity' => 'PaymentProcessorType',
205 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
210 'type' => CRM_Utils_Type
::T_STRING
,
211 'title' => ts('Payment Processor Type Title'),
212 'description' => ts('Payment Processor Type Title.'),
215 'size' => CRM_Utils_Type
::HUGE
,
216 'where' => 'civicrm_payment_processor_type.title',
217 'table_name' => 'civicrm_payment_processor_type',
218 'entity' => 'PaymentProcessorType',
219 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
223 'name' => 'description',
224 'type' => CRM_Utils_Type
::T_STRING
,
225 'title' => ts('Processor Type Description'),
226 'description' => ts('Payment Processor Description.'),
228 'size' => CRM_Utils_Type
::HUGE
,
229 'where' => 'civicrm_payment_processor_type.description',
230 'table_name' => 'civicrm_payment_processor_type',
231 'entity' => 'PaymentProcessorType',
232 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
236 'name' => 'is_active',
237 'type' => CRM_Utils_Type
::T_BOOLEAN
,
238 'title' => ts('Processor Type Is Active?'),
239 'description' => ts('Is this processor active?'),
240 'where' => 'civicrm_payment_processor_type.is_active',
242 'table_name' => 'civicrm_payment_processor_type',
243 'entity' => 'PaymentProcessorType',
244 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
248 'name' => 'is_default',
249 'type' => CRM_Utils_Type
::T_BOOLEAN
,
250 'title' => ts('Processor Type is Default?'),
251 'description' => ts('Is this processor the default?'),
252 'where' => 'civicrm_payment_processor_type.is_default',
254 'table_name' => 'civicrm_payment_processor_type',
255 'entity' => 'PaymentProcessorType',
256 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
259 'user_name_label' => [
260 'name' => 'user_name_label',
261 'type' => CRM_Utils_Type
::T_STRING
,
262 'title' => ts('Label for User Name if used'),
264 'size' => CRM_Utils_Type
::HUGE
,
265 'where' => 'civicrm_payment_processor_type.user_name_label',
266 'table_name' => 'civicrm_payment_processor_type',
267 'entity' => 'PaymentProcessorType',
268 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
271 'password_label' => [
272 'name' => 'password_label',
273 'type' => CRM_Utils_Type
::T_STRING
,
274 'title' => ts('Label for password'),
276 'size' => CRM_Utils_Type
::HUGE
,
277 'where' => 'civicrm_payment_processor_type.password_label',
278 'table_name' => 'civicrm_payment_processor_type',
279 'entity' => 'PaymentProcessorType',
280 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
283 'signature_label' => [
284 'name' => 'signature_label',
285 'type' => CRM_Utils_Type
::T_STRING
,
286 'title' => ts('Label for Signature'),
288 'size' => CRM_Utils_Type
::HUGE
,
289 'where' => 'civicrm_payment_processor_type.signature_label',
290 'table_name' => 'civicrm_payment_processor_type',
291 'entity' => 'PaymentProcessorType',
292 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
296 'name' => 'subject_label',
297 'type' => CRM_Utils_Type
::T_STRING
,
298 'title' => ts('Label for Subject'),
300 'size' => CRM_Utils_Type
::HUGE
,
301 'where' => 'civicrm_payment_processor_type.subject_label',
302 'table_name' => 'civicrm_payment_processor_type',
303 'entity' => 'PaymentProcessorType',
304 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
308 'name' => 'class_name',
309 'type' => CRM_Utils_Type
::T_STRING
,
310 'title' => ts('Suffix for PHP class name implementation'),
313 'size' => CRM_Utils_Type
::HUGE
,
314 'where' => 'civicrm_payment_processor_type.class_name',
315 'table_name' => 'civicrm_payment_processor_type',
316 'entity' => 'PaymentProcessorType',
317 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
320 'url_site_default' => [
321 'name' => 'url_site_default',
322 'type' => CRM_Utils_Type
::T_STRING
,
323 'title' => ts('Default Live Site URL'),
325 'size' => CRM_Utils_Type
::HUGE
,
326 'where' => 'civicrm_payment_processor_type.url_site_default',
327 'table_name' => 'civicrm_payment_processor_type',
328 'entity' => 'PaymentProcessorType',
329 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
332 'url_api_default' => [
333 'name' => 'url_api_default',
334 'type' => CRM_Utils_Type
::T_STRING
,
335 'title' => ts('Default API Site URL'),
337 'size' => CRM_Utils_Type
::HUGE
,
338 'where' => 'civicrm_payment_processor_type.url_api_default',
339 'table_name' => 'civicrm_payment_processor_type',
340 'entity' => 'PaymentProcessorType',
341 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
344 'url_recur_default' => [
345 'name' => 'url_recur_default',
346 'type' => CRM_Utils_Type
::T_STRING
,
347 'title' => ts('Default Live Recurring Payments URL'),
349 'size' => CRM_Utils_Type
::HUGE
,
350 'where' => 'civicrm_payment_processor_type.url_recur_default',
351 'table_name' => 'civicrm_payment_processor_type',
352 'entity' => 'PaymentProcessorType',
353 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
356 'url_button_default' => [
357 'name' => 'url_button_default',
358 'type' => CRM_Utils_Type
::T_STRING
,
359 'title' => ts('Default Live Button URL'),
361 'size' => CRM_Utils_Type
::HUGE
,
362 'where' => 'civicrm_payment_processor_type.url_button_default',
363 'table_name' => 'civicrm_payment_processor_type',
364 'entity' => 'PaymentProcessorType',
365 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
368 'url_site_test_default' => [
369 'name' => 'url_site_test_default',
370 'type' => CRM_Utils_Type
::T_STRING
,
371 'title' => ts('Default Test Site URL'),
373 'size' => CRM_Utils_Type
::HUGE
,
374 'where' => 'civicrm_payment_processor_type.url_site_test_default',
375 'table_name' => 'civicrm_payment_processor_type',
376 'entity' => 'PaymentProcessorType',
377 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
380 'url_api_test_default' => [
381 'name' => 'url_api_test_default',
382 'type' => CRM_Utils_Type
::T_STRING
,
383 'title' => ts('Default Test API URL'),
385 'size' => CRM_Utils_Type
::HUGE
,
386 'where' => 'civicrm_payment_processor_type.url_api_test_default',
387 'table_name' => 'civicrm_payment_processor_type',
388 'entity' => 'PaymentProcessorType',
389 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
392 'url_recur_test_default' => [
393 'name' => 'url_recur_test_default',
394 'type' => CRM_Utils_Type
::T_STRING
,
395 'title' => ts('Default Test Recurring Payment URL'),
397 'size' => CRM_Utils_Type
::HUGE
,
398 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
399 'table_name' => 'civicrm_payment_processor_type',
400 'entity' => 'PaymentProcessorType',
401 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
404 'url_button_test_default' => [
405 'name' => 'url_button_test_default',
406 'type' => CRM_Utils_Type
::T_STRING
,
407 'title' => ts('Default Test Button URL'),
409 'size' => CRM_Utils_Type
::HUGE
,
410 'where' => 'civicrm_payment_processor_type.url_button_test_default',
411 'table_name' => 'civicrm_payment_processor_type',
412 'entity' => 'PaymentProcessorType',
413 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
417 'name' => 'billing_mode',
418 'type' => CRM_Utils_Type
::T_INT
,
419 'title' => ts('Billing Mode'),
420 'description' => ts('Billing Mode (deprecated)'),
422 'where' => 'civicrm_payment_processor_type.billing_mode',
423 'table_name' => 'civicrm_payment_processor_type',
424 'entity' => 'PaymentProcessorType',
425 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
430 'pseudoconstant' => [
431 'callback' => 'CRM_Core_SelectValues::billingMode',
435 'name' => 'is_recur',
436 'type' => CRM_Utils_Type
::T_BOOLEAN
,
437 'title' => ts('Processor Type Supports Recurring?'),
438 'description' => ts('Can process recurring contributions'),
439 'where' => 'civicrm_payment_processor_type.is_recur',
440 'table_name' => 'civicrm_payment_processor_type',
441 'entity' => 'PaymentProcessorType',
442 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
446 'name' => 'payment_type',
447 'type' => CRM_Utils_Type
::T_INT
,
448 'title' => ts('Processor Type Payment Type'),
449 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
450 'where' => 'civicrm_payment_processor_type.payment_type',
452 'table_name' => 'civicrm_payment_processor_type',
453 'entity' => 'PaymentProcessorType',
454 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
457 'payment_instrument_id' => [
458 'name' => 'payment_instrument_id',
459 'type' => CRM_Utils_Type
::T_INT
,
460 'title' => ts('Payment Method'),
461 'description' => ts('Payment Instrument ID'),
462 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
464 'table_name' => 'civicrm_payment_processor_type',
465 'entity' => 'PaymentProcessorType',
466 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
468 'pseudoconstant' => [
469 'optionGroupName' => 'payment_instrument',
470 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
474 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
476 return Civi
::$statics[__CLASS__
]['fields'];
480 * Return a mapping from field-name to the corresponding key (as used in fields()).
483 * Array(string $name => string $uniqueName).
485 public static function &fieldKeys() {
486 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
487 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
489 return Civi
::$statics[__CLASS__
]['fieldKeys'];
493 * Returns the names of this table
497 public static function getTableName() {
498 return self
::$_tableName;
502 * Returns if this table needs to be logged
506 public function getLog() {
511 * Returns the list of fields that can be imported
513 * @param bool $prefix
517 public static function &import($prefix = FALSE) {
518 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, []);
523 * Returns the list of fields that can be exported
525 * @param bool $prefix
529 public static function &export($prefix = FALSE) {
530 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, []);
535 * Returns the list of indices
537 * @param bool $localize
541 public static function indices($localize = TRUE) {
548 'localizable' => FALSE,
550 'sig' => 'civicrm_payment_processor_type::1::name',
553 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;