3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2017 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
29 * @copyright CiviCRM LLC (c) 2004-2017
31 * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:b47064fa57473507062b1e69983ccc52)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
38 * CRM_Financial_DAO_PaymentProcessorType constructor.
40 class CRM_Financial_DAO_PaymentProcessorType
extends CRM_Core_DAO
{
42 * Static instance to hold the table name.
46 static $_tableName = 'civicrm_payment_processor_type';
48 * Should CiviCRM log any modifications to this table in the civicrm_log table.
54 * Payment Processor Type ID
60 * Payment Processor Name.
66 * Payment Processor Name.
72 * Payment Processor Description.
78 * Is this processor active?
84 * Is this processor the default?
93 public $user_name_label;
98 public $password_label;
103 public $signature_label;
108 public $subject_label;
118 public $url_site_default;
123 public $url_api_default;
128 public $url_recur_default;
133 public $url_button_default;
138 public $url_site_test_default;
143 public $url_api_test_default;
148 public $url_recur_test_default;
153 public $url_button_test_default;
155 * Billing Mode (deprecated)
159 public $billing_mode;
161 * Can process recurring contributions
167 * Payment Type: Credit or Debit (deprecated)
171 public $payment_type;
173 * Payment Instrument ID
177 public $payment_instrument_id;
181 function __construct() {
182 $this->__table
= 'civicrm_payment_processor_type';
183 parent
::__construct();
186 * Returns all the column names of this table
190 static function &fields() {
191 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
192 Civi
::$statics[__CLASS__
]['fields'] = array(
195 'type' => CRM_Utils_Type
::T_INT
,
196 'title' => ts('Payment Processor Type ID') ,
197 'description' => 'Payment Processor Type ID',
199 'table_name' => 'civicrm_payment_processor_type',
200 'entity' => 'PaymentProcessorType',
201 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
206 'type' => CRM_Utils_Type
::T_STRING
,
207 'title' => ts('Payment Processor variable name to be used in code') ,
208 'description' => 'Payment Processor Name.',
210 'size' => CRM_Utils_Type
::BIG
,
211 'table_name' => 'civicrm_payment_processor_type',
212 'entity' => 'PaymentProcessorType',
213 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
218 'type' => CRM_Utils_Type
::T_STRING
,
219 'title' => ts('Payment Processor Title') ,
220 'description' => 'Payment Processor Name.',
222 'size' => CRM_Utils_Type
::HUGE
,
223 'table_name' => 'civicrm_payment_processor_type',
224 'entity' => 'PaymentProcessorType',
225 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
228 'description' => array(
229 'name' => 'description',
230 'type' => CRM_Utils_Type
::T_STRING
,
231 'title' => ts('Processor Type Description') ,
232 'description' => 'Payment Processor Description.',
234 'size' => CRM_Utils_Type
::HUGE
,
235 'table_name' => 'civicrm_payment_processor_type',
236 'entity' => 'PaymentProcessorType',
237 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
240 'is_active' => array(
241 'name' => 'is_active',
242 'type' => CRM_Utils_Type
::T_BOOLEAN
,
243 'title' => ts('Processor Type Is Active?') ,
244 'description' => 'Is this processor active?',
245 'table_name' => 'civicrm_payment_processor_type',
246 'entity' => 'PaymentProcessorType',
247 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
250 'is_default' => array(
251 'name' => 'is_default',
252 'type' => CRM_Utils_Type
::T_BOOLEAN
,
253 'title' => ts('Processor Type is Default?') ,
254 'description' => 'Is this processor the default?',
255 'table_name' => 'civicrm_payment_processor_type',
256 'entity' => 'PaymentProcessorType',
257 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
260 'user_name_label' => array(
261 'name' => 'user_name_label',
262 'type' => CRM_Utils_Type
::T_STRING
,
263 'title' => ts('Label for User Name if used') ,
265 'size' => CRM_Utils_Type
::HUGE
,
266 'table_name' => 'civicrm_payment_processor_type',
267 'entity' => 'PaymentProcessorType',
268 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
271 'password_label' => array(
272 'name' => 'password_label',
273 'type' => CRM_Utils_Type
::T_STRING
,
274 'title' => ts('Label for password') ,
276 'size' => CRM_Utils_Type
::HUGE
,
277 'table_name' => 'civicrm_payment_processor_type',
278 'entity' => 'PaymentProcessorType',
279 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
282 'signature_label' => array(
283 'name' => 'signature_label',
284 'type' => CRM_Utils_Type
::T_STRING
,
285 'title' => ts('Label for Signature') ,
287 'size' => CRM_Utils_Type
::HUGE
,
288 'table_name' => 'civicrm_payment_processor_type',
289 'entity' => 'PaymentProcessorType',
290 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
293 'subject_label' => array(
294 'name' => 'subject_label',
295 'type' => CRM_Utils_Type
::T_STRING
,
296 'title' => ts('Label for Subject') ,
298 'size' => CRM_Utils_Type
::HUGE
,
299 'table_name' => 'civicrm_payment_processor_type',
300 'entity' => 'PaymentProcessorType',
301 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
304 'class_name' => array(
305 'name' => 'class_name',
306 'type' => CRM_Utils_Type
::T_STRING
,
307 'title' => ts('Suffix for PHP class name implementation') ,
309 'size' => CRM_Utils_Type
::HUGE
,
310 'table_name' => 'civicrm_payment_processor_type',
311 'entity' => 'PaymentProcessorType',
312 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
315 'url_site_default' => array(
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 'table_name' => 'civicrm_payment_processor_type',
322 'entity' => 'PaymentProcessorType',
323 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
326 'url_api_default' => array(
327 'name' => 'url_api_default',
328 'type' => CRM_Utils_Type
::T_STRING
,
329 'title' => ts('Default API Site URL') ,
331 'size' => CRM_Utils_Type
::HUGE
,
332 'table_name' => 'civicrm_payment_processor_type',
333 'entity' => 'PaymentProcessorType',
334 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
337 'url_recur_default' => array(
338 'name' => 'url_recur_default',
339 'type' => CRM_Utils_Type
::T_STRING
,
340 'title' => ts('Default Live Recurring Payments URL') ,
342 'size' => CRM_Utils_Type
::HUGE
,
343 'table_name' => 'civicrm_payment_processor_type',
344 'entity' => 'PaymentProcessorType',
345 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
348 'url_button_default' => array(
349 'name' => 'url_button_default',
350 'type' => CRM_Utils_Type
::T_STRING
,
351 'title' => ts('Default Live Button URL') ,
353 'size' => CRM_Utils_Type
::HUGE
,
354 'table_name' => 'civicrm_payment_processor_type',
355 'entity' => 'PaymentProcessorType',
356 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
359 'url_site_test_default' => array(
360 'name' => 'url_site_test_default',
361 'type' => CRM_Utils_Type
::T_STRING
,
362 'title' => ts('Default Test Site URL') ,
364 'size' => CRM_Utils_Type
::HUGE
,
365 'table_name' => 'civicrm_payment_processor_type',
366 'entity' => 'PaymentProcessorType',
367 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
370 'url_api_test_default' => array(
371 'name' => 'url_api_test_default',
372 'type' => CRM_Utils_Type
::T_STRING
,
373 'title' => ts('Default Test API URL') ,
375 'size' => CRM_Utils_Type
::HUGE
,
376 'table_name' => 'civicrm_payment_processor_type',
377 'entity' => 'PaymentProcessorType',
378 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
381 'url_recur_test_default' => array(
382 'name' => 'url_recur_test_default',
383 'type' => CRM_Utils_Type
::T_STRING
,
384 'title' => ts('Default Test Recurring Payment URL') ,
386 'size' => CRM_Utils_Type
::HUGE
,
387 'table_name' => 'civicrm_payment_processor_type',
388 'entity' => 'PaymentProcessorType',
389 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
392 'url_button_test_default' => array(
393 'name' => 'url_button_test_default',
394 'type' => CRM_Utils_Type
::T_STRING
,
395 'title' => ts('Default Test Button URL') ,
397 'size' => CRM_Utils_Type
::HUGE
,
398 'table_name' => 'civicrm_payment_processor_type',
399 'entity' => 'PaymentProcessorType',
400 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
403 'billing_mode' => array(
404 'name' => 'billing_mode',
405 'type' => CRM_Utils_Type
::T_INT
,
406 'title' => ts('Billing Mode') ,
407 'description' => 'Billing Mode (deprecated)',
409 'table_name' => 'civicrm_payment_processor_type',
410 'entity' => 'PaymentProcessorType',
411 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
416 'pseudoconstant' => array(
417 'callback' => 'CRM_Core_SelectValues::billingMode',
421 'name' => 'is_recur',
422 'type' => CRM_Utils_Type
::T_BOOLEAN
,
423 'title' => ts('Processor Type Supports Recurring?') ,
424 'description' => 'Can process recurring contributions',
425 'table_name' => 'civicrm_payment_processor_type',
426 'entity' => 'PaymentProcessorType',
427 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
430 'payment_type' => array(
431 'name' => 'payment_type',
432 'type' => CRM_Utils_Type
::T_INT
,
433 'title' => ts('Processor Type Payment Type') ,
434 'description' => 'Payment Type: Credit or Debit (deprecated)',
436 'table_name' => 'civicrm_payment_processor_type',
437 'entity' => 'PaymentProcessorType',
438 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
441 'payment_instrument_id' => array(
442 'name' => 'payment_instrument_id',
443 'type' => CRM_Utils_Type
::T_INT
,
444 'title' => ts('Payment Method') ,
445 'description' => 'Payment Instrument ID',
447 'table_name' => 'civicrm_payment_processor_type',
448 'entity' => 'PaymentProcessorType',
449 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
451 'pseudoconstant' => array(
452 'optionGroupName' => 'payment_instrument',
453 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
457 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
459 return Civi
::$statics[__CLASS__
]['fields'];
462 * Return a mapping from field-name to the corresponding key (as used in fields()).
465 * Array(string $name => string $uniqueName).
467 static function &fieldKeys() {
468 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
469 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
471 return Civi
::$statics[__CLASS__
]['fieldKeys'];
474 * Returns the names of this table
478 static function getTableName() {
479 return self
::$_tableName;
482 * Returns if this table needs to be logged
490 * Returns the list of fields that can be imported
492 * @param bool $prefix
496 static function &import($prefix = false) {
497 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, array());
501 * Returns the list of fields that can be exported
503 * @param bool $prefix
507 static function &export($prefix = false) {
508 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, array());
512 * Returns the list of indices
514 public static function indices($localize = TRUE) {
521 'localizable' => false,
523 'sig' => 'civicrm_payment_processor_type::1::name',
526 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;