3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
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-2015
31 * Generated from xml/schema/CRM/Financial/PaymentProcessorType.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
34 require_once 'CRM/Core/DAO.php';
35 require_once 'CRM/Utils/Type.php';
36 class CRM_Financial_DAO_PaymentProcessorType
extends CRM_Core_DAO
{
38 * static instance to hold the table name
42 static $_tableName = 'civicrm_payment_processor_type';
44 * static instance to hold the field values
48 static $_fields = null;
50 * static instance to hold the keys used in $_fields for each field.
54 static $_fieldKeys = null;
56 * static instance to hold the FK relationships
60 static $_links = null;
62 * static instance to hold the values that can
67 static $_import = null;
69 * static instance to hold the values that can
74 static $_export = null;
76 * static value to see if we should log any modifications to
77 * this table in the civicrm_log table
83 * Payment Processor Type ID
89 * Payment Processor Name.
95 * Payment Processor Name.
101 * Payment Processor Description.
107 * Is this processor active?
113 * Is this processor the default?
122 public $user_name_label;
127 public $password_label;
132 public $signature_label;
137 public $subject_label;
147 public $url_site_default;
152 public $url_api_default;
157 public $url_recur_default;
162 public $url_button_default;
167 public $url_site_test_default;
172 public $url_api_test_default;
177 public $url_recur_test_default;
182 public $url_button_test_default;
188 public $billing_mode;
190 * Can process recurring contributions
196 * Payment Type: Credit or Debit
200 public $payment_type;
204 * @return civicrm_payment_processor_type
206 function __construct() {
207 $this->__table
= 'civicrm_payment_processor_type';
208 parent
::__construct();
211 * Returns all the column names of this table
215 static function &fields() {
216 if (!(self
::$_fields)) {
217 self
::$_fields = array(
220 'type' => CRM_Utils_Type
::T_INT
,
221 'title' => ts('Payment Processor Type ID') ,
222 'description' => 'Payment Processor Type ID',
227 'type' => CRM_Utils_Type
::T_STRING
,
228 'title' => ts('Payment Processor variable name to be used in code') ,
229 'description' => 'Payment Processor Name.',
231 'size' => CRM_Utils_Type
::BIG
,
235 'type' => CRM_Utils_Type
::T_STRING
,
236 'title' => ts('Payment Processor Title') ,
237 'description' => 'Payment Processor Name.',
239 'size' => CRM_Utils_Type
::HUGE
,
241 'description' => array(
242 'name' => 'description',
243 'type' => CRM_Utils_Type
::T_STRING
,
244 'title' => ts('Processor Type Description') ,
245 'description' => 'Payment Processor Description.',
247 'size' => CRM_Utils_Type
::HUGE
,
249 'is_active' => array(
250 'name' => 'is_active',
251 'type' => CRM_Utils_Type
::T_BOOLEAN
,
252 'title' => ts('Processor Type Is Active?') ,
253 'description' => 'Is this processor active?',
255 'is_default' => array(
256 'name' => 'is_default',
257 'type' => CRM_Utils_Type
::T_BOOLEAN
,
258 'title' => ts('Processor Type is Default?') ,
259 'description' => 'Is this processor the default?',
261 'user_name_label' => array(
262 'name' => 'user_name_label',
263 'type' => CRM_Utils_Type
::T_STRING
,
264 'title' => ts('Label for User Name if used') ,
266 'size' => CRM_Utils_Type
::HUGE
,
268 'password_label' => array(
269 'name' => 'password_label',
270 'type' => CRM_Utils_Type
::T_STRING
,
271 'title' => ts('Label for password') ,
273 'size' => CRM_Utils_Type
::HUGE
,
275 'signature_label' => array(
276 'name' => 'signature_label',
277 'type' => CRM_Utils_Type
::T_STRING
,
278 'title' => ts('Label for Signature') ,
280 'size' => CRM_Utils_Type
::HUGE
,
282 'subject_label' => array(
283 'name' => 'subject_label',
284 'type' => CRM_Utils_Type
::T_STRING
,
285 'title' => ts('Label for Subject') ,
287 'size' => CRM_Utils_Type
::HUGE
,
289 'class_name' => array(
290 'name' => 'class_name',
291 'type' => CRM_Utils_Type
::T_STRING
,
292 'title' => ts('Suffix for PHP clas name implementation') ,
294 'size' => CRM_Utils_Type
::HUGE
,
296 'url_site_default' => array(
297 'name' => 'url_site_default',
298 'type' => CRM_Utils_Type
::T_STRING
,
299 'title' => ts('Default Live Site URL') ,
301 'size' => CRM_Utils_Type
::HUGE
,
303 'url_api_default' => array(
304 'name' => 'url_api_default',
305 'type' => CRM_Utils_Type
::T_STRING
,
306 'title' => ts('Default API Site URL') ,
308 'size' => CRM_Utils_Type
::HUGE
,
310 'url_recur_default' => array(
311 'name' => 'url_recur_default',
312 'type' => CRM_Utils_Type
::T_STRING
,
313 'title' => ts('Default Live Recurring Payments URL') ,
315 'size' => CRM_Utils_Type
::HUGE
,
317 'url_button_default' => array(
318 'name' => 'url_button_default',
319 'type' => CRM_Utils_Type
::T_STRING
,
320 'title' => ts('Default Live Button URL') ,
322 'size' => CRM_Utils_Type
::HUGE
,
324 'url_site_test_default' => array(
325 'name' => 'url_site_test_default',
326 'type' => CRM_Utils_Type
::T_STRING
,
327 'title' => ts('Default Test Site URL') ,
329 'size' => CRM_Utils_Type
::HUGE
,
331 'url_api_test_default' => array(
332 'name' => 'url_api_test_default',
333 'type' => CRM_Utils_Type
::T_STRING
,
334 'title' => ts('Default Test API URL') ,
336 'size' => CRM_Utils_Type
::HUGE
,
338 'url_recur_test_default' => array(
339 'name' => 'url_recur_test_default',
340 'type' => CRM_Utils_Type
::T_STRING
,
341 'title' => ts('Default Test Recurring Payment URL') ,
343 'size' => CRM_Utils_Type
::HUGE
,
345 'url_button_test_default' => array(
346 'name' => 'url_button_test_default',
347 'type' => CRM_Utils_Type
::T_STRING
,
348 'title' => ts('Default Test Button URL') ,
350 'size' => CRM_Utils_Type
::HUGE
,
352 'billing_mode' => array(
353 'name' => 'billing_mode',
354 'type' => CRM_Utils_Type
::T_INT
,
355 'title' => ts('Billing Mode') ,
356 'description' => 'Billing Mode',
361 'pseudoconstant' => array(
362 'callback' => 'CRM_Core_SelectValues::billingMode',
366 'name' => 'is_recur',
367 'type' => CRM_Utils_Type
::T_BOOLEAN
,
368 'title' => ts('Processor Type Supports Recurring?') ,
369 'description' => 'Can process recurring contributions',
371 'payment_type' => array(
372 'name' => 'payment_type',
373 'type' => CRM_Utils_Type
::T_INT
,
374 'title' => ts('Processor Type Payment Type') ,
375 'description' => 'Payment Type: Credit or Debit',
380 return self
::$_fields;
383 * Returns an array containing, for each field, the arary key used for that
384 * field in self::$_fields.
388 static function &fieldKeys() {
389 if (!(self
::$_fieldKeys)) {
390 self
::$_fieldKeys = array(
394 'description' => 'description',
395 'is_active' => 'is_active',
396 'is_default' => 'is_default',
397 'user_name_label' => 'user_name_label',
398 'password_label' => 'password_label',
399 'signature_label' => 'signature_label',
400 'subject_label' => 'subject_label',
401 'class_name' => 'class_name',
402 'url_site_default' => 'url_site_default',
403 'url_api_default' => 'url_api_default',
404 'url_recur_default' => 'url_recur_default',
405 'url_button_default' => 'url_button_default',
406 'url_site_test_default' => 'url_site_test_default',
407 'url_api_test_default' => 'url_api_test_default',
408 'url_recur_test_default' => 'url_recur_test_default',
409 'url_button_test_default' => 'url_button_test_default',
410 'billing_mode' => 'billing_mode',
411 'is_recur' => 'is_recur',
412 'payment_type' => 'payment_type',
415 return self
::$_fieldKeys;
418 * Returns the names of this table
422 static function getTableName() {
423 return self
::$_tableName;
426 * Returns if this table needs to be logged
434 * Returns the list of fields that can be imported
436 * @param bool $prefix
440 static function &import($prefix = false) {
441 if (!(self
::$_import)) {
442 self
::$_import = array();
443 $fields = self
::fields();
444 foreach($fields as $name => $field) {
445 if (CRM_Utils_Array
::value('import', $field)) {
447 self
::$_import['payment_processor_type'] = & $fields[$name];
449 self
::$_import[$name] = & $fields[$name];
454 return self
::$_import;
457 * Returns the list of fields that can be exported
459 * @param bool $prefix
463 static function &export($prefix = false) {
464 if (!(self
::$_export)) {
465 self
::$_export = array();
466 $fields = self
::fields();
467 foreach($fields as $name => $field) {
468 if (CRM_Utils_Array
::value('export', $field)) {
470 self
::$_export['payment_processor_type'] = & $fields[$name];
472 self
::$_export[$name] = & $fields[$name];
477 return self
::$_export;