GravityView_Lightbox_Entry_Request
Source: includes/extensions/lightbox-entry/class-gravityview-lightbox-entry-request.php:7
Details
- Kind:
class - Namespace:
(global) - Extends:
Frontend_Request
Methods
| Method | Description |
|---|---|
__construct() | Class constructor. |
is_entry() | Checks whether this is a single entry request |
is_view() | The current $post is a View, no? |
is_renderable() | Whether this request is something that is renderable. |
Method Reference
__construct()
public function __construct( View $view, GF_Entry $entry )
Class constructor.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$view | View | ||
$entry | GF_Entry |
Source: includes/extensions/lightbox-entry/class-gravityview-lightbox-entry-request.php:32
is_entry()
public function is_entry( $form_id=0 )
Checks whether this is a single entry request
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | int | 0 | The form ID, since slugs can be non-unique. Default: 0. |
Returns
- \GV\GF_Entry |
false— The entry requested or false.
Since: 2.29.0
Source: includes/extensions/lightbox-entry/class-gravityview-lightbox-entry-request.php:44
is_view()
public function is_view( $return_view=true )
The current $post is a View, no?
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$return_view | bool | true | Whether to return a View object or boolean. |
Returns
- \GV\View |
bool— If the global $post is a View, returns the View or true, depending on $return_view. If not a View, returns false.
Since: 2.29.0
Source: includes/extensions/lightbox-entry/class-gravityview-lightbox-entry-request.php:53
is_renderable()
public function is_renderable(): bool
Whether this request is something that is renderable.
Returns
bool— Yes or no.
Since: 2.29.0
Source: includes/extensions/lightbox-entry/class-gravityview-lightbox-entry-request.php:62