5 * @copyright CiviCRM LLC (c) 2004-2019
7 * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
8 * DO NOT EDIT. Generated by CRM_Core_CodeGen
9 * (GenCodeChecksum:b8290611e8abcbd771b1006fd34e3ec5)
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 Name.
46 * Payment Processor Name.
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 variable name to be used in code'),
198 'description' => ts('Payment Processor Name.'),
200 'size' => CRM_Utils_Type
::BIG
,
201 'where' => 'civicrm_payment_processor_type.name',
202 'table_name' => 'civicrm_payment_processor_type',
203 'entity' => 'PaymentProcessorType',
204 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
209 'type' => CRM_Utils_Type
::T_STRING
,
210 'title' => ts('Payment Processor Title'),
211 'description' => ts('Payment Processor Name.'),
213 'size' => CRM_Utils_Type
::HUGE
,
214 'where' => 'civicrm_payment_processor_type.title',
215 'table_name' => 'civicrm_payment_processor_type',
216 'entity' => 'PaymentProcessorType',
217 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
221 'name' => 'description',
222 'type' => CRM_Utils_Type
::T_STRING
,
223 'title' => ts('Processor Type Description'),
224 'description' => ts('Payment Processor Description.'),
226 'size' => CRM_Utils_Type
::HUGE
,
227 'where' => 'civicrm_payment_processor_type.description',
228 'table_name' => 'civicrm_payment_processor_type',
229 'entity' => 'PaymentProcessorType',
230 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
234 'name' => 'is_active',
235 'type' => CRM_Utils_Type
::T_BOOLEAN
,
236 'title' => ts('Processor Type Is Active?'),
237 'description' => ts('Is this processor active?'),
238 'where' => 'civicrm_payment_processor_type.is_active',
239 'table_name' => 'civicrm_payment_processor_type',
240 'entity' => 'PaymentProcessorType',
241 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
245 'name' => 'is_default',
246 'type' => CRM_Utils_Type
::T_BOOLEAN
,
247 'title' => ts('Processor Type is Default?'),
248 'description' => ts('Is this processor the default?'),
249 'where' => 'civicrm_payment_processor_type.is_default',
250 'table_name' => 'civicrm_payment_processor_type',
251 'entity' => 'PaymentProcessorType',
252 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
255 'user_name_label' => [
256 'name' => 'user_name_label',
257 'type' => CRM_Utils_Type
::T_STRING
,
258 'title' => ts('Label for User Name if used'),
260 'size' => CRM_Utils_Type
::HUGE
,
261 'where' => 'civicrm_payment_processor_type.user_name_label',
262 'table_name' => 'civicrm_payment_processor_type',
263 'entity' => 'PaymentProcessorType',
264 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
267 'password_label' => [
268 'name' => 'password_label',
269 'type' => CRM_Utils_Type
::T_STRING
,
270 'title' => ts('Label for password'),
272 'size' => CRM_Utils_Type
::HUGE
,
273 'where' => 'civicrm_payment_processor_type.password_label',
274 'table_name' => 'civicrm_payment_processor_type',
275 'entity' => 'PaymentProcessorType',
276 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
279 'signature_label' => [
280 'name' => 'signature_label',
281 'type' => CRM_Utils_Type
::T_STRING
,
282 'title' => ts('Label for Signature'),
284 'size' => CRM_Utils_Type
::HUGE
,
285 'where' => 'civicrm_payment_processor_type.signature_label',
286 'table_name' => 'civicrm_payment_processor_type',
287 'entity' => 'PaymentProcessorType',
288 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
292 'name' => 'subject_label',
293 'type' => CRM_Utils_Type
::T_STRING
,
294 'title' => ts('Label for Subject'),
296 'size' => CRM_Utils_Type
::HUGE
,
297 'where' => 'civicrm_payment_processor_type.subject_label',
298 'table_name' => 'civicrm_payment_processor_type',
299 'entity' => 'PaymentProcessorType',
300 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
304 'name' => 'class_name',
305 'type' => CRM_Utils_Type
::T_STRING
,
306 'title' => ts('Suffix for PHP class name implementation'),
308 'size' => CRM_Utils_Type
::HUGE
,
309 'where' => 'civicrm_payment_processor_type.class_name',
310 'table_name' => 'civicrm_payment_processor_type',
311 'entity' => 'PaymentProcessorType',
312 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
315 'url_site_default' => [
316 'name' => 'url_site_default',
317 'type' => CRM_Utils_Type
::T_STRING
,
318 'title' => ts('Default Live Site URL'),
320 'size' => CRM_Utils_Type
::HUGE
,
321 'where' => 'civicrm_payment_processor_type.url_site_default',
322 'table_name' => 'civicrm_payment_processor_type',
323 'entity' => 'PaymentProcessorType',
324 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
327 'url_api_default' => [
328 'name' => 'url_api_default',
329 'type' => CRM_Utils_Type
::T_STRING
,
330 'title' => ts('Default API Site URL'),
332 'size' => CRM_Utils_Type
::HUGE
,
333 'where' => 'civicrm_payment_processor_type.url_api_default',
334 'table_name' => 'civicrm_payment_processor_type',
335 'entity' => 'PaymentProcessorType',
336 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
339 'url_recur_default' => [
340 'name' => 'url_recur_default',
341 'type' => CRM_Utils_Type
::T_STRING
,
342 'title' => ts('Default Live Recurring Payments URL'),
344 'size' => CRM_Utils_Type
::HUGE
,
345 'where' => 'civicrm_payment_processor_type.url_recur_default',
346 'table_name' => 'civicrm_payment_processor_type',
347 'entity' => 'PaymentProcessorType',
348 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
351 'url_button_default' => [
352 'name' => 'url_button_default',
353 'type' => CRM_Utils_Type
::T_STRING
,
354 'title' => ts('Default Live Button URL'),
356 'size' => CRM_Utils_Type
::HUGE
,
357 'where' => 'civicrm_payment_processor_type.url_button_default',
358 'table_name' => 'civicrm_payment_processor_type',
359 'entity' => 'PaymentProcessorType',
360 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
363 'url_site_test_default' => [
364 'name' => 'url_site_test_default',
365 'type' => CRM_Utils_Type
::T_STRING
,
366 'title' => ts('Default Test Site URL'),
368 'size' => CRM_Utils_Type
::HUGE
,
369 'where' => 'civicrm_payment_processor_type.url_site_test_default',
370 'table_name' => 'civicrm_payment_processor_type',
371 'entity' => 'PaymentProcessorType',
372 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
375 'url_api_test_default' => [
376 'name' => 'url_api_test_default',
377 'type' => CRM_Utils_Type
::T_STRING
,
378 'title' => ts('Default Test API URL'),
380 'size' => CRM_Utils_Type
::HUGE
,
381 'where' => 'civicrm_payment_processor_type.url_api_test_default',
382 'table_name' => 'civicrm_payment_processor_type',
383 'entity' => 'PaymentProcessorType',
384 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
387 'url_recur_test_default' => [
388 'name' => 'url_recur_test_default',
389 'type' => CRM_Utils_Type
::T_STRING
,
390 'title' => ts('Default Test Recurring Payment URL'),
392 'size' => CRM_Utils_Type
::HUGE
,
393 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
394 'table_name' => 'civicrm_payment_processor_type',
395 'entity' => 'PaymentProcessorType',
396 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
399 'url_button_test_default' => [
400 'name' => 'url_button_test_default',
401 'type' => CRM_Utils_Type
::T_STRING
,
402 'title' => ts('Default Test Button URL'),
404 'size' => CRM_Utils_Type
::HUGE
,
405 'where' => 'civicrm_payment_processor_type.url_button_test_default',
406 'table_name' => 'civicrm_payment_processor_type',
407 'entity' => 'PaymentProcessorType',
408 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
412 'name' => 'billing_mode',
413 'type' => CRM_Utils_Type
::T_INT
,
414 'title' => ts('Billing Mode'),
415 'description' => ts('Billing Mode (deprecated)'),
417 'where' => 'civicrm_payment_processor_type.billing_mode',
418 'table_name' => 'civicrm_payment_processor_type',
419 'entity' => 'PaymentProcessorType',
420 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
425 'pseudoconstant' => [
426 'callback' => 'CRM_Core_SelectValues::billingMode',
430 'name' => 'is_recur',
431 'type' => CRM_Utils_Type
::T_BOOLEAN
,
432 'title' => ts('Processor Type Supports Recurring?'),
433 'description' => ts('Can process recurring contributions'),
434 'where' => 'civicrm_payment_processor_type.is_recur',
435 'table_name' => 'civicrm_payment_processor_type',
436 'entity' => 'PaymentProcessorType',
437 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
441 'name' => 'payment_type',
442 'type' => CRM_Utils_Type
::T_INT
,
443 'title' => ts('Processor Type Payment Type'),
444 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
445 'where' => 'civicrm_payment_processor_type.payment_type',
447 'table_name' => 'civicrm_payment_processor_type',
448 'entity' => 'PaymentProcessorType',
449 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
452 'payment_instrument_id' => [
453 'name' => 'payment_instrument_id',
454 'type' => CRM_Utils_Type
::T_INT
,
455 'title' => ts('Payment Method'),
456 'description' => ts('Payment Instrument ID'),
457 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
459 'table_name' => 'civicrm_payment_processor_type',
460 'entity' => 'PaymentProcessorType',
461 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
463 'pseudoconstant' => [
464 'optionGroupName' => 'payment_instrument',
465 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
469 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
471 return Civi
::$statics[__CLASS__
]['fields'];
475 * Return a mapping from field-name to the corresponding key (as used in fields()).
478 * Array(string $name => string $uniqueName).
480 public static function &fieldKeys() {
481 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
482 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
484 return Civi
::$statics[__CLASS__
]['fieldKeys'];
488 * Returns the names of this table
492 public static function getTableName() {
493 return self
::$_tableName;
497 * Returns if this table needs to be logged
501 public function getLog() {
506 * Returns the list of fields that can be imported
508 * @param bool $prefix
512 public static function &import($prefix = FALSE) {
513 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, []);
518 * Returns the list of fields that can be exported
520 * @param bool $prefix
524 public static function &export($prefix = FALSE) {
525 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, []);
530 * Returns the list of indices
532 * @param bool $localize
536 public static function indices($localize = TRUE) {
543 'localizable' => FALSE,
545 'sig' => 'civicrm_payment_processor_type::1::name',
548 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;