GravityView  2.10.1
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Data Fields
Mock_Request Class Reference

If this file is called directly, abort. More...

Inheritance diagram for Mock_Request:
Request

Public Member Functions

 __call ( $function, $args)
 
 is_edit_entry ( $form_id=0)
 
 is_entry ( $form_id=0)
 
 is_search ()
 
 is_view ()
 
- Public Member Functions inherited from Request
 __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 ()
 The current $post is a View, no? More...
 

Data Fields

 $returns
 

Additional Inherited Members

- Static Public Member Functions inherited from Request
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...
 

Detailed Description

If this file is called directly, abort.

A mock for testing.

Definition at line 12 of file class-gv-request-mock.php.

Member Function Documentation

◆ __call()

__call (   $function,
  $args 
)

Definition at line 39 of file class-gv-request-mock.php.

References GV\get().

◆ is_edit_entry()

is_edit_entry (   $form_id = 0)

Definition at line 31 of file class-gv-request-mock.php.

◆ is_entry()

is_entry (   $form_id = 0)

Definition at line 27 of file class-gv-request-mock.php.

◆ is_search()

is_search ( )

Definition at line 35 of file class-gv-request-mock.php.

◆ is_view()

is_view ( )

Definition at line 23 of file class-gv-request-mock.php.

Field Documentation

◆ $returns

$returns
Initial value:
= array(
'is_view' => false,
'is_entry' => false,
'is_edit_entry' => false,
'is_search' => false,
)

Definition at line 16 of file class-gv-request-mock.php.


The documentation for this class was generated from the following file: