Skip to main content

GV\GF_Entry

The Gravity Forms Entry class implementation.

Accessible as an array for back-compatibility.

Source: stubs/gravityview.php:3074

Details​

  • Kind: class
  • Namespace: GV
  • Extends: GV\Entry
  • Implements: ArrayAccess

Properties​

PropertyTypeDescription
$backendstringThe identifier of the backend used for this entry.
$slugstringThe entry slug.

Methods​

MethodDescription
by_id()Construct a \GV\Entry instance by ID.
by_slug()Construct a \GV\Entry instance by slug name.
from_entry()Construct a \GV\Entry instance from a Gravity Forms entry array.

Method Reference​

by_id()​

public static function by_id( $entry_id, $form_id=0 )

Construct a \GV\Entry instance by ID.

Parameters​

NameTypeDefaultDescription
$entry_idint | stringThe internal entry ID.
$form_idint0The form ID, since slugs can be non-unique. Default: 0.

Returns​

  • \GV\GF_Entry | null — An instance of this entry or null if not found.

Since: 2.0

Source: stubs/gravityview.php:3104

by_slug()​

public static function by_slug( $entry_slug, $form_id=0 )

Construct a \GV\Entry instance by slug name.

Parameters​

NameTypeDefaultDescription
$entry_slugint | stringThe registered slug for the entry.
$form_idint0The form ID, since slugs can be non-unique. Default: 0.

Returns​

  • \GV\GF_Entry | null — An instance of this entry or null if not found.

Since: 2.0

Source: stubs/gravityview.php:3117

from_entry()​

public static function from_entry( $entry )

Construct a \GV\Entry instance from a Gravity Forms entry array.

Parameters​

NameTypeDefaultDescription
$entryarrayThe entry array

Returns​

  • \GV\GF_Entry | null — An instance of this entry or null if not found.

Source: stubs/gravityview.php:3127