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:db09edc5cc1a18facd824b62fe4d4061)
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',
205 'type' => CRM_Utils_Type
::T_STRING
,
206 'title' => ts('Payment Processor variable name to be used in code') ,
207 'description' => 'Payment Processor Name.',
209 'size' => CRM_Utils_Type
::BIG
,
210 'table_name' => 'civicrm_payment_processor_type',
211 'entity' => 'PaymentProcessorType',
212 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
216 'type' => CRM_Utils_Type
::T_STRING
,
217 'title' => ts('Payment Processor Title') ,
218 'description' => 'Payment Processor Name.',
220 'size' => CRM_Utils_Type
::HUGE
,
221 'table_name' => 'civicrm_payment_processor_type',
222 'entity' => 'PaymentProcessorType',
223 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
225 'description' => array(
226 'name' => 'description',
227 'type' => CRM_Utils_Type
::T_STRING
,
228 'title' => ts('Processor Type Description') ,
229 'description' => 'Payment Processor Description.',
231 'size' => CRM_Utils_Type
::HUGE
,
232 'table_name' => 'civicrm_payment_processor_type',
233 'entity' => 'PaymentProcessorType',
234 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
236 'is_active' => array(
237 'name' => 'is_active',
238 'type' => CRM_Utils_Type
::T_BOOLEAN
,
239 'title' => ts('Processor Type Is Active?') ,
240 'description' => 'Is this processor active?',
241 'table_name' => 'civicrm_payment_processor_type',
242 'entity' => 'PaymentProcessorType',
243 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
245 'is_default' => array(
246 'name' => 'is_default',
247 'type' => CRM_Utils_Type
::T_BOOLEAN
,
248 'title' => ts('Processor Type is Default?') ,
249 'description' => 'Is this processor the default?',
250 'table_name' => 'civicrm_payment_processor_type',
251 'entity' => 'PaymentProcessorType',
252 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
254 'user_name_label' => array(
255 'name' => 'user_name_label',
256 'type' => CRM_Utils_Type
::T_STRING
,
257 'title' => ts('Label for User Name if used') ,
259 'size' => CRM_Utils_Type
::HUGE
,
260 'table_name' => 'civicrm_payment_processor_type',
261 'entity' => 'PaymentProcessorType',
262 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
264 'password_label' => array(
265 'name' => 'password_label',
266 'type' => CRM_Utils_Type
::T_STRING
,
267 'title' => ts('Label for password') ,
269 'size' => CRM_Utils_Type
::HUGE
,
270 'table_name' => 'civicrm_payment_processor_type',
271 'entity' => 'PaymentProcessorType',
272 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
274 'signature_label' => array(
275 'name' => 'signature_label',
276 'type' => CRM_Utils_Type
::T_STRING
,
277 'title' => ts('Label for Signature') ,
279 'size' => CRM_Utils_Type
::HUGE
,
280 'table_name' => 'civicrm_payment_processor_type',
281 'entity' => 'PaymentProcessorType',
282 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
284 'subject_label' => array(
285 'name' => 'subject_label',
286 'type' => CRM_Utils_Type
::T_STRING
,
287 'title' => ts('Label for Subject') ,
289 'size' => CRM_Utils_Type
::HUGE
,
290 'table_name' => 'civicrm_payment_processor_type',
291 'entity' => 'PaymentProcessorType',
292 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
294 'class_name' => array(
295 'name' => 'class_name',
296 'type' => CRM_Utils_Type
::T_STRING
,
297 'title' => ts('Suffix for PHP class name implementation') ,
299 'size' => CRM_Utils_Type
::HUGE
,
300 'table_name' => 'civicrm_payment_processor_type',
301 'entity' => 'PaymentProcessorType',
302 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
304 'url_site_default' => array(
305 'name' => 'url_site_default',
306 'type' => CRM_Utils_Type
::T_STRING
,
307 'title' => ts('Default Live Site URL') ,
309 'size' => CRM_Utils_Type
::HUGE
,
310 'table_name' => 'civicrm_payment_processor_type',
311 'entity' => 'PaymentProcessorType',
312 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
314 'url_api_default' => array(
315 'name' => 'url_api_default',
316 'type' => CRM_Utils_Type
::T_STRING
,
317 'title' => ts('Default API Site URL') ,
319 'size' => CRM_Utils_Type
::HUGE
,
320 'table_name' => 'civicrm_payment_processor_type',
321 'entity' => 'PaymentProcessorType',
322 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
324 'url_recur_default' => array(
325 'name' => 'url_recur_default',
326 'type' => CRM_Utils_Type
::T_STRING
,
327 'title' => ts('Default Live Recurring Payments URL') ,
329 'size' => CRM_Utils_Type
::HUGE
,
330 'table_name' => 'civicrm_payment_processor_type',
331 'entity' => 'PaymentProcessorType',
332 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
334 'url_button_default' => array(
335 'name' => 'url_button_default',
336 'type' => CRM_Utils_Type
::T_STRING
,
337 'title' => ts('Default Live Button URL') ,
339 'size' => CRM_Utils_Type
::HUGE
,
340 'table_name' => 'civicrm_payment_processor_type',
341 'entity' => 'PaymentProcessorType',
342 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
344 'url_site_test_default' => array(
345 'name' => 'url_site_test_default',
346 'type' => CRM_Utils_Type
::T_STRING
,
347 'title' => ts('Default Test Site URL') ,
349 'size' => CRM_Utils_Type
::HUGE
,
350 'table_name' => 'civicrm_payment_processor_type',
351 'entity' => 'PaymentProcessorType',
352 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
354 'url_api_test_default' => array(
355 'name' => 'url_api_test_default',
356 'type' => CRM_Utils_Type
::T_STRING
,
357 'title' => ts('Default Test API URL') ,
359 'size' => CRM_Utils_Type
::HUGE
,
360 'table_name' => 'civicrm_payment_processor_type',
361 'entity' => 'PaymentProcessorType',
362 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
364 'url_recur_test_default' => array(
365 'name' => 'url_recur_test_default',
366 'type' => CRM_Utils_Type
::T_STRING
,
367 'title' => ts('Default Test Recurring Payment URL') ,
369 'size' => CRM_Utils_Type
::HUGE
,
370 'table_name' => 'civicrm_payment_processor_type',
371 'entity' => 'PaymentProcessorType',
372 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
374 'url_button_test_default' => array(
375 'name' => 'url_button_test_default',
376 'type' => CRM_Utils_Type
::T_STRING
,
377 'title' => ts('Default Test Button URL') ,
379 'size' => CRM_Utils_Type
::HUGE
,
380 'table_name' => 'civicrm_payment_processor_type',
381 'entity' => 'PaymentProcessorType',
382 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
384 'billing_mode' => array(
385 'name' => 'billing_mode',
386 'type' => CRM_Utils_Type
::T_INT
,
387 'title' => ts('Billing Mode') ,
388 'description' => 'Billing Mode (deprecated)',
390 'table_name' => 'civicrm_payment_processor_type',
391 'entity' => 'PaymentProcessorType',
392 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
396 'pseudoconstant' => array(
397 'callback' => 'CRM_Core_SelectValues::billingMode',
401 'name' => 'is_recur',
402 'type' => CRM_Utils_Type
::T_BOOLEAN
,
403 'title' => ts('Processor Type Supports Recurring?') ,
404 'description' => 'Can process recurring contributions',
405 'table_name' => 'civicrm_payment_processor_type',
406 'entity' => 'PaymentProcessorType',
407 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
409 'payment_type' => array(
410 'name' => 'payment_type',
411 'type' => CRM_Utils_Type
::T_INT
,
412 'title' => ts('Processor Type Payment Type') ,
413 'description' => 'Payment Type: Credit or Debit (deprecated)',
415 'table_name' => 'civicrm_payment_processor_type',
416 'entity' => 'PaymentProcessorType',
417 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
419 'payment_instrument_id' => array(
420 'name' => 'payment_instrument_id',
421 'type' => CRM_Utils_Type
::T_INT
,
422 'title' => ts('Payment Method') ,
423 'description' => 'Payment Instrument ID',
425 'table_name' => 'civicrm_payment_processor_type',
426 'entity' => 'PaymentProcessorType',
427 'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
428 'pseudoconstant' => array(
429 'optionGroupName' => 'payment_instrument',
430 'optionEditPath' => 'civicrm/admin/options/payment_instrument',
434 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
436 return Civi
::$statics[__CLASS__
]['fields'];
439 * Return a mapping from field-name to the corresponding key (as used in fields()).
442 * Array(string $name => string $uniqueName).
444 static function &fieldKeys() {
445 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
446 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
448 return Civi
::$statics[__CLASS__
]['fieldKeys'];
451 * Returns the names of this table
455 static function getTableName() {
456 return self
::$_tableName;
459 * Returns if this table needs to be logged
467 * Returns the list of fields that can be imported
469 * @param bool $prefix
473 static function &import($prefix = false) {
474 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'payment_processor_type', $prefix, array());
478 * Returns the list of fields that can be exported
480 * @param bool $prefix
484 static function &export($prefix = false) {
485 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'payment_processor_type', $prefix, array());