GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gv-collection-entry-filter.php
Go to the documentation of this file.
1 <?php
2 namespace GV;
3 
4 /** If this file is called directly, abort. */
5 if ( ! defined( 'GRAVITYVIEW_DIR' ) ) {
6  die();
7 }
8 
9 /**
10  * Entry filtering settings.
11  *
12  * A proposed long-term vision for this would be an API
13  * similar to the new-school ORMs out there.
14  *
15  * new Entry_Filter(
16  * Field::by_id( 3 )->eq( 99 )->and(
17  * Field::by_id( 4 )->neq( null )->or( Field::by_id( 4 )->lte( 0 ) )
18  * )->and(
19  * Field::by_id( 5 )->like( "%search%" )->and( Field::by_id( 6 )->between( $t, $f ) )
20  * )
21  * );
22  *
23  * Very flexible in code, but unserialization could be a pain in the neck.
24  *
25  * For now we use the Gravity Forms backend for this, since developing an ORM
26  * will take us another year :)
27  */
28 abstract class Entry_Filter {
29 }
30 
31 /** Load implementations. */
32 require gravityview()->plugin->dir( 'future/includes/class-gv-collection-entry-filter-gravityforms.php' );
If this file is called directly, abort.
gravityview()
The main GravityView wrapper function.