Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Converter_Base::get_fields( $tablename = '' )
This method grabs appropriate fields from the table specified
Description Description
Parameters Parameters
-
(Required) The table name to grab fields from
Source Source
File: includes/admin/classes/class-bbp-converter-base.php
private function get_fields( $tablename = '' ) { $retval = array(); $field_array = $this->get_results( "DESCRIBE {$tablename}", ARRAY_A ); // Bail if no fields if ( empty( $field_array ) ) { return $retval; } // Add fields to array foreach ( $field_array as $field ) { if ( ! empty( $field['Field'] ) ) { $retval[] = $field['Field']; } } // Add social fields for users table if ( $tablename === $this->wpdb->users ) { $retval[] = 'role'; $retval[] = 'yim'; $retval[] = 'aim'; $retval[] = 'jabber'; } return $retval; }