GravityView  1.22.6
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Protected Attributes
Entry Class Reference

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

Inheritance diagram for Entry:

Public Member Functions

 as_entry ()
 Return the backing entry object. More...

Static Public Member Functions

static add_rewrite_endpoint ()
 Adds the necessary rewrites for single Entries. More...
static by_id ( $entry_id)
 Construct a instance by ID. More...
static get_endpoint_name ()
 Return the endpoint name for a single Entry. More...

Data Fields

 $ID = null

Static Public Attributes

static $backend = null

Protected Attributes


Detailed Description

If this file is called directly, abort.

The base class.

Contains all entry data and some processing and logic rules.

Definition at line 14 of file class-gv-entry.php.

Member Function Documentation

◆ add_rewrite_endpoint()

static add_rewrite_endpoint ( )

Adds the necessary rewrites for single Entries.

Let's make sure the endpoint array is not polluted.

Definition at line 42 of file class-gv-entry.php.

◆ as_entry()

as_entry ( )

Return the backing entry object.

array The backing entry object.

Definition at line 91 of file class-gv-entry.php.

References $entry.

◆ by_id()

static by_id (   $entry_id)

Construct a instance by ID.

int | string$entry_idThe internal entry ID.
|null An instance of this entry or null if not found.

Definition at line 82 of file class-gv-entry.php.

◆ get_endpoint_name()

static get_endpoint_name ( )

Return the endpoint name for a single Entry.

Also used as the query_var for the time being.

Runs Filter:
gravityview_directory_endpoint Change the slug used for single entries
[in,out]string$endpointSlug to use when accessing single entry. Default: entry

Definition at line 63 of file class-gv-entry.php.

Referenced by GravityView_API\entry_link(), GravityView_oEmbed\get_handler_regex(), and GravityView_frontend\is_single_entry().

Field Documentation

◆ $backend

$backend = null

Definition at line 21 of file class-gv-entry.php.

◆ $entry


Definition at line 34 of file class-gv-entry.php.

◆ $ID

$ID = null

Definition at line 29 of file class-gv-entry.php.

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