web/wp-content/plugins/caldera-forms/classes/entry.php
/**
	 * Find metas and set in meta property of this class
	 *
	 * @since 1.4.0
	 */
Find metas and set in meta property of this class
@since 1.4.0
Find metas and set in meta property of this class @since 1 . 4 . 0
protected function find_metas(){
		global $wpdb;
		$table = $wpdb->prefix . 'cf_form_entry_meta';
		$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 ){
				$_meta = new Caldera_Forms_Entry_Meta();
				$_meta = $_meta->set_form_object( $result );
				$this->meta[] = $_meta;
			}
		}
	}
protected function find_metas ( ) { global $ wpdb ; $ table = $ wpdb -> prefix . 'cf_form_entry_meta' ; $ 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 ) { $ _meta = new Caldera_Forms_Entry_Meta ( ) ; $ _meta = $ _meta -> set_form_object ( $ result ) ; $ this -> meta [ ] = $ _meta ; } } }
Find metas and set in meta property of this class
 @since 1.4.0
Find metas and set in meta property of this class @since 1 . 4 . 0