web/wp-content/plugins/caldera-forms/classes/entry.php
/**
	 * Find field values and set in fields property of this class
	 *
	 * @since 1.4.0
	 */
Find field values and set in fields property of this class
@since 1.4.0
Find field values and set in fields property of this class @since 1 . 4 . 0
protected function find_fields(){
		global $wpdb;
		$table = $wpdb->prefix . 'cf_form_entry_values';
		$sql = $wpdb->prepare( "SELECT * FROM $table WHERE `entry_id` = %d",  $this->entry_id  );
		$results = $wpdb->get_results( $sql );
		if( ! empty( $results ) ){
			foreach( $results as $result ){
				$_field = new Caldera_Forms_Entry_Field(  $result );
				$this->fields[] = $_field;
			}
		}
	}
protected function find_fields ( ) { global $ wpdb ; $ table = $ wpdb -> prefix . 'cf_form_entry_values' ; $ sql = $ wpdb -> prepare ( " SELECT * FROM  $ table  WHERE `entry_id` = %d " , $ this -> entry_id ) ; $ results = $ wpdb -> get_results ( $ sql ) ; if ( ! empty ( $ results ) ) { foreach ( $ results as $ result ) { $ _field = new Caldera_Forms_Entry_Field ( $ result ) ; $ this -> fields [ ] = $ _field ; } } }
Find field values and set in fields property of this class
 @since 1.4.0
Find field values and set in fields property of this class @since 1 . 4 . 0