/**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Payment Processor Type ID'), 'description' => 'Payment Processor Type ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Payment Processor variable name to be used in code'), 'description' => 'Payment Processor Name.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Payment Processor Title'), 'description' => 'Payment Processor Name.', 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Processor Type Description'), 'description' => 'Payment Processor Description.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Processor Type Is Active?'), 'description' => 'Is this processor active?'), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Processor Type is Default?'), 'description' => 'Is this processor the default?'), 'user_name_label' => array('name' => 'user_name_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for User Name if used'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'password_label' => array('name' => 'password_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for password'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'signature_label' => array('name' => 'signature_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Signature'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'subject_label' => array('name' => 'subject_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Subject'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'class_name' => array('name' => 'class_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Suffix for PHP class name implementation'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_site_default' => array('name' => 'url_site_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_api_default' => array('name' => 'url_api_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default API Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_recur_default' => array('name' => 'url_recur_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Recurring Payments URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_button_default' => array('name' => 'url_button_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Button URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_site_test_default' => array('name' => 'url_site_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_api_test_default' => array('name' => 'url_api_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test API URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_recur_test_default' => array('name' => 'url_recur_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Recurring Payment URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_button_test_default' => array('name' => 'url_button_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Button URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'billing_mode' => array('name' => 'billing_mode', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Billing Mode'), 'description' => 'Billing Mode (deprecated)', 'required' => true, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::billingMode')), 'is_recur' => array('name' => 'is_recur', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Processor Type Supports Recurring?'), 'description' => 'Can process recurring contributions'), 'payment_type' => array('name' => 'payment_type', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Processor Type Payment Type'), 'description' => 'Payment Type: Credit or Debit (deprecated)', 'default' => '1'), 'payment_instrument_id' => array('name' => 'payment_instrument_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Payment Method'), 'description' => 'Payment Instrument ID', 'default' => '1', 'pseudoconstant' => array('optionGroupName' => 'payment_instrument', 'optionEditPath' => 'civicrm/admin/options/payment_instrument')));
     }
     return self::$_fields;
 }
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Payment Processor variable name to be used in code'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Payment Processor Title'), 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'user_name_label' => array('name' => 'user_name_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for User Name if used'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'password_label' => array('name' => 'password_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for password'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'signature_label' => array('name' => 'signature_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Signature'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'subject_label' => array('name' => 'subject_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Subject'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'class_name' => array('name' => 'class_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Suffix for PHP clas name implementation'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_site_default' => array('name' => 'url_site_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_api_default' => array('name' => 'url_api_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default API Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_recur_default' => array('name' => 'url_recur_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Recurring Payments URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_button_default' => array('name' => 'url_button_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Live Button URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_site_test_default' => array('name' => 'url_site_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Site URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_api_test_default' => array('name' => 'url_api_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test API URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_recur_test_default' => array('name' => 'url_recur_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Recurring Payment URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url_button_test_default' => array('name' => 'url_button_test_default', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Default Test Button URL'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'billing_mode' => array('name' => 'billing_mode', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Billing Mode'), 'required' => true, 'pseudoconstant' => array('0' => 'not in database')), 'is_recur' => array('name' => 'is_recur', 'type' => CRM_Utils_Type::T_BOOLEAN), 'payment_type' => array('name' => 'payment_type', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Payment Type'), 'default' => '1'));
     }
     return self::$_fields;
 }