/**
  * 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('Entity Financial Account ID'), 'description' => 'ID', 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'description' => 'Links to an entity_table like civicrm_financial_type', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_entity_financial_account.entity_table', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity ID'), 'description' => 'Links to an id in the entity_table, such as vid in civicrm_financial_type', 'required' => true), 'account_relationship' => array('name' => 'account_relationship', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Account Relationship'), 'description' => 'FK to a new civicrm_option_value (account_relationship)', 'required' => true, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'account_relationship', 'optionEditPath' => 'civicrm/admin/options/account_relationship')), 'financial_account_id' => array('name' => 'financial_account_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Financial Account'), 'description' => 'FK to the financial_account_id', 'required' => true, 'FKClassName' => 'CRM_Financial_DAO_FinancialAccount', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_financial_account', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     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), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_entity_financial_account.entity_table', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'account_relationship' => array('name' => 'account_relationship', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Account Relationship'), 'required' => true, 'pseudoconstant' => array('optionGroupName' => 'account_relationship')), 'financial_account_id' => array('name' => 'financial_account_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Financial_DAO_FinancialAccount', 'pseudoconstant' => array('table' => 'civicrm_financial_account', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     return self::$_fields;
 }