__table = 'civicrm_payment_processor_type'; parent::__construct(); } /** * Returns all the column names of this table * * @return array */ static function &fields() { if (!isset(Civi::$statics[__CLASS__]['fields'])) { Civi::$statics[__CLASS__]['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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'is_active' => array( 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Processor Type Is Active?') , 'description' => 'Is this processor active?', 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'is_default' => array( 'name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Processor Type is Default?') , 'description' => 'Is this processor the default?', 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'password_label' => array( 'name' => 'password_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for password') , 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'signature_label' => array( 'name' => 'signature_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Signature') , 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'subject_label' => array( 'name' => 'subject_label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label for Subject') , 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'billing_mode' => array( 'name' => 'billing_mode', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Billing Mode') , 'description' => 'Billing Mode (deprecated)', 'required' => true, 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, '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', 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , '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', 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, ) , 'payment_instrument_id' => array( 'name' => 'payment_instrument_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Payment Method') , 'description' => 'Payment Instrument ID', 'default' => '1', 'table_name' => 'civicrm_payment_processor_type', 'entity' => 'PaymentProcessorType', 'bao' => 'CRM_Financial_BAO_PaymentProcessorType', 'localizable' => 0, 'pseudoconstant' => array( 'optionGroupName' => 'payment_instrument', 'optionEditPath' => 'civicrm/admin/options/payment_instrument', ) ) , ); CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']); } return Civi::$statics[__CLASS__]['fields']; } /** * Return a mapping from field-name to the corresponding key (as used in fields()). * * @return array * Array(string $name => string $uniqueName). */ static function &fieldKeys() { if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) { Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields())); } return Civi::$statics[__CLASS__]['fieldKeys']; } /** * Returns the names of this table * * @return string */ static function getTableName() { return self::$_tableName; } /** * Returns if this table needs to be logged * * @return boolean */ function getLog() { return self::$_log; } /** * Returns the list of fields that can be imported * * @param bool $prefix * * @return array */ static function &import($prefix = false) { $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'payment_processor_type', $prefix, array()); return $r; } /** * Returns the list of fields that can be exported * * @param bool $prefix * * @return array */ static function &export($prefix = false) { $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'payment_processor_type', $prefix, array()); return $r; } /** * Returns the list of indices */ public static function indices($localize = TRUE) { $indices = array( 'UI_name' => array( 'name' => 'UI_name', 'field' => array( 0 => 'name', ) , 'localizable' => false, 'unique' => true, 'sig' => 'civicrm_payment_processor_type::1::name', ) , ); return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; } }