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:15dff8fa9ba4df684c09d6fb8c9f0430)
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',
210 'type' => CRM_Utils_Type
::T_STRING
,
211 'title' => ts('Payment Processor Type variable name to be used in code'),
212 'description' => ts('Payment Processor Type Name.'),
215 'size' => CRM_Utils_Type
::BIG
,
216 'where' => 'civicrm_payment_processor_type.name',
217 'table_name' => 'civicrm_payment_processor_type',
218 'entity' => 'PaymentProcessorType',
219 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
225 'type' => CRM_Utils_Type
::T_STRING
,
226 'title' => ts('Payment Processor Type Title'),
227 'description' => ts('Payment Processor Type Title.'),
230 'size' => CRM_Utils_Type
::HUGE
,
231 'where' => 'civicrm_payment_processor_type.title',
232 'table_name' => 'civicrm_payment_processor_type',
233 'entity' => 'PaymentProcessorType',
234 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
239 'name' => 'description',
240 'type' => CRM_Utils_Type
::T_STRING
,
241 'title' => ts('Processor Type Description'),
242 'description' => ts('Payment Processor Description.'),
244 'size' => CRM_Utils_Type
::HUGE
,
245 'where' => 'civicrm_payment_processor_type.description',
246 'table_name' => 'civicrm_payment_processor_type',
247 'entity' => 'PaymentProcessorType',
248 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
253 'name' => 'is_active',
254 'type' => CRM_Utils_Type
::T_BOOLEAN
,
255 'title' => ts('Processor Type Is Active?'),
256 'description' => ts('Is this processor active?'),
257 'where' => 'civicrm_payment_processor_type.is_active',
259 'table_name' => 'civicrm_payment_processor_type',
260 'entity' => 'PaymentProcessorType',
261 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
266 'name' => 'is_default',
267 'type' => CRM_Utils_Type
::T_BOOLEAN
,
268 'title' => ts('Processor Type is Default?'),
269 'description' => ts('Is this processor the default?'),
270 'where' => 'civicrm_payment_processor_type.is_default',
272 'table_name' => 'civicrm_payment_processor_type',
273 'entity' => 'PaymentProcessorType',
274 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
278 'user_name_label' => [
279 'name' => 'user_name_label',
280 'type' => CRM_Utils_Type
::T_STRING
,
281 'title' => ts('Label for User Name if used'),
283 'size' => CRM_Utils_Type
::HUGE
,
284 'where' => 'civicrm_payment_processor_type.user_name_label',
285 'table_name' => 'civicrm_payment_processor_type',
286 'entity' => 'PaymentProcessorType',
287 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
291 'password_label' => [
292 'name' => 'password_label',
293 'type' => CRM_Utils_Type
::T_STRING
,
294 'title' => ts('Label for password'),
296 'size' => CRM_Utils_Type
::HUGE
,
297 'where' => 'civicrm_payment_processor_type.password_label',
298 'table_name' => 'civicrm_payment_processor_type',
299 'entity' => 'PaymentProcessorType',
300 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
304 'signature_label' => [
305 'name' => 'signature_label',
306 'type' => CRM_Utils_Type
::T_STRING
,
307 'title' => ts('Label for Signature'),
309 'size' => CRM_Utils_Type
::HUGE
,
310 'where' => 'civicrm_payment_processor_type.signature_label',
311 'table_name' => 'civicrm_payment_processor_type',
312 'entity' => 'PaymentProcessorType',
313 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
318 'name' => 'subject_label',
319 'type' => CRM_Utils_Type
::T_STRING
,
320 'title' => ts('Label for Subject'),
322 'size' => CRM_Utils_Type
::HUGE
,
323 'where' => 'civicrm_payment_processor_type.subject_label',
324 'table_name' => 'civicrm_payment_processor_type',
325 'entity' => 'PaymentProcessorType',
326 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
331 'name' => 'class_name',
332 'type' => CRM_Utils_Type
::T_STRING
,
333 'title' => ts('Suffix for PHP class name implementation'),
336 'size' => CRM_Utils_Type
::HUGE
,
337 'where' => 'civicrm_payment_processor_type.class_name',
338 'table_name' => 'civicrm_payment_processor_type',
339 'entity' => 'PaymentProcessorType',
340 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
344 'url_site_default' => [
345 'name' => 'url_site_default',
346 'type' => CRM_Utils_Type
::T_STRING
,
347 'title' => ts('Default Live Site URL'),
349 'size' => CRM_Utils_Type
::HUGE
,
350 'where' => 'civicrm_payment_processor_type.url_site_default',
351 'table_name' => 'civicrm_payment_processor_type',
352 'entity' => 'PaymentProcessorType',
353 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
357 'url_api_default' => [
358 'name' => 'url_api_default',
359 'type' => CRM_Utils_Type
::T_STRING
,
360 'title' => ts('Default API Site URL'),
362 'size' => CRM_Utils_Type
::HUGE
,
363 'where' => 'civicrm_payment_processor_type.url_api_default',
364 'table_name' => 'civicrm_payment_processor_type',
365 'entity' => 'PaymentProcessorType',
366 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
370 'url_recur_default' => [
371 'name' => 'url_recur_default',
372 'type' => CRM_Utils_Type
::T_STRING
,
373 'title' => ts('Default Live Recurring Payments URL'),
375 'size' => CRM_Utils_Type
::HUGE
,
376 'where' => 'civicrm_payment_processor_type.url_recur_default',
377 'table_name' => 'civicrm_payment_processor_type',
378 'entity' => 'PaymentProcessorType',
379 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
383 'url_button_default' => [
384 'name' => 'url_button_default',
385 'type' => CRM_Utils_Type
::T_STRING
,
386 'title' => ts('Default Live Button URL'),
388 'size' => CRM_Utils_Type
::HUGE
,
389 'where' => 'civicrm_payment_processor_type.url_button_default',
390 'table_name' => 'civicrm_payment_processor_type',
391 'entity' => 'PaymentProcessorType',
392 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
396 'url_site_test_default' => [
397 'name' => 'url_site_test_default',
398 'type' => CRM_Utils_Type
::T_STRING
,
399 'title' => ts('Default Test Site URL'),
401 'size' => CRM_Utils_Type
::HUGE
,
402 'where' => 'civicrm_payment_processor_type.url_site_test_default',
403 'table_name' => 'civicrm_payment_processor_type',
404 'entity' => 'PaymentProcessorType',
405 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
409 'url_api_test_default' => [
410 'name' => 'url_api_test_default',
411 'type' => CRM_Utils_Type
::T_STRING
,
412 'title' => ts('Default Test API URL'),
414 'size' => CRM_Utils_Type
::HUGE
,
415 'where' => 'civicrm_payment_processor_type.url_api_test_default',
416 'table_name' => 'civicrm_payment_processor_type',
417 'entity' => 'PaymentProcessorType',
418 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
422 'url_recur_test_default' => [
423 'name' => 'url_recur_test_default',
424 'type' => CRM_Utils_Type
::T_STRING
,
425 'title' => ts('Default Test Recurring Payment URL'),
427 'size' => CRM_Utils_Type
::HUGE
,
428 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
429 'table_name' => 'civicrm_payment_processor_type',
430 'entity' => 'PaymentProcessorType',
431 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
435 'url_button_test_default' => [
436 'name' => 'url_button_test_default',
437 'type' => CRM_Utils_Type
::T_STRING
,
438 'title' => ts('Default Test Button URL'),
440 'size' => CRM_Utils_Type
::HUGE
,
441 'where' => 'civicrm_payment_processor_type.url_button_test_default',
442 'table_name' => 'civicrm_payment_processor_type',
443 'entity' => 'PaymentProcessorType',
444 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
449 'name' => 'billing_mode',
450 'type' => CRM_Utils_Type
::T_INT
,
451 'title' => ts('Billing Mode'),
452 'description' => ts('Billing Mode (deprecated)'),
454 'where' => 'civicrm_payment_processor_type.billing_mode',
455 'table_name' => 'civicrm_payment_processor_type',
456 'entity' => 'PaymentProcessorType',
457 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
462 'pseudoconstant' => [
463 'callback' => 'CRM_Core_SelectValues::billingMode',
468 'name' => 'is_recur',
469 'type' => CRM_Utils_Type
::T_BOOLEAN
,
470 'title' => ts('Processor Type Supports Recurring?'),
471 'description' => ts('Can process recurring contributions'),
472 'where' => 'civicrm_payment_processor_type.is_recur',
473 'table_name' => 'civicrm_payment_processor_type',
474 'entity' => 'PaymentProcessorType',
475 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
480 'name' => 'payment_type',
481 'type' => CRM_Utils_Type
::T_INT
,
482 'title' => ts('Processor Type Payment Type'),
483 'description' => ts('Payment Type: Credit or Debit (deprecated)'),
484 'where' => 'civicrm_payment_processor_type.payment_type',
486 'table_name' => 'civicrm_payment_processor_type',
487 'entity' => 'PaymentProcessorType',
488 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
492 'payment_instrument_id' => [
493 'name' => 'payment_instrument_id',
494 'type' => CRM_Utils_Type
::T_INT
,
495 'title' => ts('Payment Method'),
496 'description' => ts('Payment Instrument ID'),
497 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
499 'table_name' => 'civicrm_payment_processor_type',
500 'entity' => 'PaymentProcessorType',
501 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
503 'pseudoconstant' => [
504 'optionGroupName' => 'payment_instrument',
505 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
510 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
512 return Civi
::$statics[__CLASS__
]['fields'];
516 * Return a mapping from field-name to the corresponding key (as used in fields()).
519 * Array(string $name => string $uniqueName).
521 public static function &fieldKeys() {
522 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
523 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
525 return Civi
::$statics[__CLASS__
]['fieldKeys'];
529 * Returns the names of this table
533 public static function getTableName() {
534 return self
::$_tableName;
538 * Returns if this table needs to be logged
542 public function getLog() {
547 * Returns the list of fields that can be imported
549 * @param bool $prefix
553 public static function &import($prefix = FALSE) {
554 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, []);
559 * Returns the list of fields that can be exported
561 * @param bool $prefix
565 public static function &export($prefix = FALSE) {
566 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, []);
571 * Returns the list of indices
573 * @param bool $localize
577 public static function indices($localize = TRUE) {
584 'localizable' => FALSE,
586 'sig' => 'civicrm_payment_processor_type::1::name',
589 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;