GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
__construct () | |
is_edit_entry ( $form_id=0) | |
Checks whether this an edit entry request. More... | |
is_entry ( $form_id=0) | |
Checks whether this is a single entry request. More... | |
is_renderable () | |
Whether this request is something that is renderable. More... | |
is_search () | |
Checks whether this an entry search request. More... | |
is_view ( $return_view=true) | |
The current $post is a View, no? More... | |
Static Public Member Functions | |
static | is_add_oembed_preview () |
Is this the Add Media / From URL preview request? More... | |
static | is_admin () |
Check if WordPress is_admin(), and make sure not DOING_AJAX. More... | |
static | is_ajax () |
Is this an AJAX call in progress? More... | |
static | is_frontend () |
This is the frontend. More... | |
static | is_rest () |
Is this a REST request? Call after parse_request. More... | |
Private Member Functions | |
_has_field_key ( $get) | |
Calculate whether the $_REQUEST has a GravityView field. More... | |
If this file is called directly, abort.
The Request abstract class.
Knows more about the request than anyone else.
Definition at line 14 of file class-gv-request.php.
__construct | ( | ) |
Definition at line 16 of file class-gv-request.php.
|
private |
Calculate whether the $_REQUEST has a GravityView field.
Definition at line 264 of file class-gv-request.php.
References $field, $value, GravityView_Fields\get_all(), and gravityview().
|
static |
Is this the Add Media / From URL preview request?
Will not work in WordPress 4.8+
The preview request is a parse-embed AJAX call without a type set.
Definition at line 70 of file class-gv-request.php.
|
static |
Check if WordPress is_admin(), and make sure not DOING_AJAX.
Definition at line 47 of file class-gv-request.php.
|
static |
Is this an AJAX call in progress?
Definition at line 80 of file class-gv-request.php.
is_edit_entry | ( | $form_id = 0 | ) |
Checks whether this an edit entry request.
int | $form_id | The form ID, since slugs can be non-unique. Default: 0. |
gravityview_is_edit_entry
Whether we're currently on the Edit Entry screen boolean | $is_edit_entry |
Definition at line 206 of file class-gv-request.php.
is_entry | ( | $form_id = 0 | ) |
Checks whether this is a single entry request.
int | $form_id | The form ID, since slugs can be non-unique. Default: 0. |
Not CPT, so probably a shortcode
A joined request.
A regular one.
Definition at line 123 of file class-gv-request.php.
References $entries, $entry, $form_id, $forms, GV\$i, Utils\get(), and gravityview().
|
static |
This is the frontend.
Definition at line 59 of file class-gv-request.php.
is_renderable | ( | ) |
Whether this request is something that is renderable.
gravityview/request/is_renderable
Is this request renderable? boolean | $is_renderable | Huh? |
\GV\Request | $this | This. |
Definition at line 25 of file class-gv-request.php.
|
static |
Is this a REST request? Call after parse_request.
Definition at line 89 of file class-gv-request.php.
is_search | ( | ) |
Checks whether this an entry search request.
Definition at line 231 of file class-gv-request.php.
References $search_method.
is_view | ( | $return_view = true | ) |
The current $post is a View, no?
bool | $return_view | Whether to return a View object or boolean. |
Definition at line 104 of file class-gv-request.php.
References $post, and View\from_post().
Referenced by GravityView_Welcome\getting_started_screen().