web/wp-content/plugins/caldera-forms/classes/entry.php
/**
	 * Find the entry in DB and set the entry property of this class
	 *
	 * @since 1.4.0
	 */
Find the entry in DB and set the entry property of this class
@since 1.4.0
Find the entry in DB and set the entry property of this class @since 1 . 4 . 0
protected function find_entry(){
		global $wpdb;
		$table = $wpdb->prefix . 'cf_form_entries';
		$sql = $wpdb->prepare( "SELECT * FROM $table WHERE `id` = %d AND `form_id` = %s", $this->entry_id, $this->form[ 'ID' ]  );
		$results = $wpdb->get_results( $sql );
		if ( ! empty( $results ) ) {
			$this->found = true;
			$this->entry = new Caldera_Forms_Entry_Entry();
			$this->entry->set_form_object( $results[ 0 ] );
		}else{
			$this->found = false;
		}
	}
protected function find_entry ( ) { global $ wpdb ; $ table = $ wpdb -> prefix . 'cf_form_entries' ; $ sql = $ wpdb -> prepare ( " SELECT * FROM  $ table  WHERE `id` = %d AND `form_id` = %s " , $ this -> entry_id , $ this -> form [ 'ID' ] ) ; $ results = $ wpdb -> get_results ( $ sql ) ; if ( ! empty ( $ results ) ) { $ this -> found = true ; $ this -> entry = new Caldera_Forms_Entry_Entry ( ) ; $ this -> entry -> set_form_object ( $ results [ 0 ] ) ; } else { $ this -> found = false ; } }
Find the entry in DB and set the entry property of this class
 @since 1.4.0
Find the entry in DB and set the entry property of this class @since 1 . 4 . 0