(NFC) Set _log and _table_name variables to be public
[civicrm-core.git] / CRM / Financial / DAO / FinancialTrxn.php
index bf194318976b9a2dfbd79772b599c0038a5c0e23..f89106a691d20f108aa85484e0723c44cb2f7864 100644 (file)
@@ -2,11 +2,11 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  *
  * Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:21185c4929ef1a8d126c72733cc7ad1d)
+ * (GenCodeChecksum:d30cfdb7f54eac46852246cf30654a97)
  */
 
 /**
@@ -19,14 +19,14 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
    *
    * @var string
    */
-  static $_tableName = 'civicrm_financial_trxn';
+  public static $_tableName = 'civicrm_financial_trxn';
 
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
    * @var bool
    */
-  static $_log = TRUE;
+  public static $_log = TRUE;
 
   /**
    * @var int unsigned
@@ -161,7 +161,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
    */
   public static function getReferenceColumns() {
     if (!isset(Civi::$statics[__CLASS__]['links'])) {
-      Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'from_financial_account_id', 'civicrm_financial_account', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'to_financial_account_id', 'civicrm_financial_account', 'id');
       Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'payment_processor_id', 'civicrm_payment_processor', 'id');
@@ -192,7 +192,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'from_financial_account_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Transaction From Account'),
-          'description' => 'FK to financial_account table.',
+          'description' => ts('FK to financial_account table.'),
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
@@ -211,7 +211,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'to_financial_account_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Transaction To Account'),
-          'description' => 'FK to financial_financial_account table.',
+          'description' => ts('FK to financial_financial_account table.'),
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
@@ -230,7 +230,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'trxn_date',
           'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
           'title' => ts('Financial Transaction Date'),
-          'description' => 'date transaction occurred',
+          'description' => ts('date transaction occurred'),
           'default' => 'NULL',
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
@@ -245,7 +245,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'total_amount',
           'type' => CRM_Utils_Type::T_MONEY,
           'title' => ts('Financial Total Amount'),
-          'description' => 'amount of transaction',
+          'description' => ts('amount of transaction'),
           'required' => TRUE,
           'precision' => [
             20,
@@ -260,7 +260,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'fee_amount',
           'type' => CRM_Utils_Type::T_MONEY,
           'title' => ts('Financial Fee Amount'),
-          'description' => 'actual processor fee if known - may be 0.',
+          'description' => ts('actual processor fee if known - may be 0.'),
           'precision' => [
             20,
             2
@@ -274,7 +274,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'net_amount',
           'type' => CRM_Utils_Type::T_MONEY,
           'title' => ts('Financial Net Amount'),
-          'description' => 'actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.',
+          'description' => ts('actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.'),
           'precision' => [
             20,
             2
@@ -288,7 +288,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'currency',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Financial Currency'),
-          'description' => '3 character string, value from config setting or input via user.',
+          'description' => ts('3 character string, value from config setting or input via user.'),
           'maxlength' => 3,
           'size' => CRM_Utils_Type::FOUR,
           'import' => TRUE,
@@ -315,7 +315,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'is_payment',
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Is Payment?'),
-          'description' => 'Is this entry either a payment or a reversal of a payment?',
+          'description' => ts('Is this entry either a payment or a reversal of a payment?'),
           'import' => TRUE,
           'where' => 'civicrm_financial_trxn.is_payment',
           'headerPattern' => '',
@@ -331,7 +331,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'trxn_id',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Transaction ID'),
-          'description' => 'Transaction id supplied by external processor. This may not be unique.',
+          'description' => ts('Transaction id supplied by external processor. This may not be unique.'),
           'maxlength' => 255,
           'size' => 10,
           'table_name' => 'civicrm_financial_trxn',
@@ -346,7 +346,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'trxn_result_code',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Transaction Result Code'),
-          'description' => 'processor result code',
+          'description' => ts('processor result code'),
           'maxlength' => 255,
           'size' => CRM_Utils_Type::HUGE,
           'table_name' => 'civicrm_financial_trxn',
@@ -358,7 +358,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'status_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Financial Transaction Status Id'),
-          'description' => 'pseudo FK to civicrm_option_value of contribution_status_id option_group',
+          'description' => ts('pseudo FK to civicrm_option_value of contribution_status_id option_group'),
           'import' => TRUE,
           'where' => 'civicrm_financial_trxn.status_id',
           'headerPattern' => '/status/i',
@@ -377,7 +377,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'payment_processor_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Payment Processor'),
-          'description' => 'Payment Processor for this financial transaction',
+          'description' => ts('Payment Processor for this financial transaction'),
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
@@ -388,7 +388,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'payment_instrument_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Payment Method'),
-          'description' => 'FK to payment_instrument option group values',
+          'description' => ts('FK to payment_instrument option group values'),
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
@@ -405,7 +405,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'card_type_id',
           'type' => CRM_Utils_Type::T_INT,
           'title' => ts('Card Type ID'),
-          'description' => 'FK to accept_creditcard option group values',
+          'description' => ts('FK to accept_creditcard option group values'),
           'table_name' => 'civicrm_financial_trxn',
           'entity' => 'FinancialTrxn',
           'bao' => 'CRM_Financial_DAO_FinancialTrxn',
@@ -422,7 +422,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'check_number',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Check Number'),
-          'description' => 'Check number',
+          'description' => ts('Check number'),
           'maxlength' => 255,
           'size' => 6,
           'table_name' => 'civicrm_financial_trxn',
@@ -437,7 +437,7 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'name' => 'pan_truncation',
           'type' => CRM_Utils_Type::T_STRING,
           'title' => ts('Pan Truncation'),
-          'description' => 'Last 4 digits of credit card',
+          'description' => ts('Last 4 digits of credit card'),
           'maxlength' => 4,
           'size' => 4,
           'table_name' => 'civicrm_financial_trxn',