GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions
GF_Form Class Reference

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

Inheritance diagram for GF_Form:
Form Source

Public Member Functions

 __get ( $key)
 Proxies. More...
 
 get_entries ()
 Get all entries for this form. More...
 
 get_fields ()
 Get an array of GV Fields for this data source. More...
 
 offsetExists ( $offset)
 ArrayAccess compatibility layer with a Gravity Forms form array. More...
 
 offsetGet ( $offset)
 ArrayAccess compatibility layer with a Gravity Forms form array. More...
 
 offsetSet ( $offset, $value)
 ArrayAccess compatibility layer with a Gravity Forms form array. More...
 
 offsetUnset ( $offset)
 ArrayAccess compatibility layer with a Gravity Forms form array. More...
 
- Public Member Functions inherited from Form
 __get ( $key)
 Magic shortcuts. More...
 
 get_entries ()
 Get all entries for this form. More...
 

Static Public Member Functions

static by_id ( $form_id)
 Construct a instance by ID. More...
 
static from_form ( $form)
 Construct a instance from a Gravity Forms form array. More...
 
static get_field ()
 Get a by Form and Field ID for this data source. More...
 
- Static Public Member Functions inherited from Form
static by_id ( $form_id)
 Construct a instance by ID. More...
 
- Static Public Member Functions inherited from Source
static get_field ()
 Get a instance by ID. More...
 

Static Public Attributes

static $backend = self::BACKEND_GRAVITYFORMS
 
- Static Public Attributes inherited from Source
static $backend = null
 

Private Member Functions

 __construct ()
 Initialization. More...
 

Additional Inherited Members

- Data Fields inherited from Form
 $ID = null
 
- Data Fields inherited from Source
const BACKEND_GRAVITYFORMS = 'gravityforms'
 
const BACKEND_INTERNAL = 'internal'
 

Detailed Description

If this file is called directly, abort.

The Gravity Forms Form class implementation.

Accessible as an array for back-compatibility.

Definition at line 14 of file class-gv-form-gravityforms.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
private

Initialization.

Definition at line 26 of file class-gv-form-gravityforms.php.

References gravityview().

Member Function Documentation

◆ __get()

__get (   $key)

Proxies.

Parameters
string$keyThe property to get.
Returns
mixed

Definition at line 201 of file class-gv-form-gravityforms.php.

◆ by_id()

static by_id (   $form_id)
static

Construct a instance by ID.

Parameters
int | string$form_idThe internal form ID.
Since
2.0
Returns
|null An instance of this form or null if not found.

Definition at line 41 of file class-gv-form-gravityforms.php.

References GV\$form, $form_id, and $forms.

Referenced by GV\Mocks\GravityView_API_field_label(), GV\Mocks\GravityView_API_field_value(), GV\Mocks\GravityView_frontend_get_view_entries(), GravityView_Admin_Views\set_default_view_fields(), Entry_Table_Template\the_entry(), and Entry_List_Template\the_field().

◆ from_form()

static from_form (   $form)
static

Construct a instance from a Gravity Forms form array.

Since
2.0.7
Parameters
array$formThe form array
Returns
|null An instance of this form or null if not found.

Definition at line 70 of file class-gv-form-gravityforms.php.

References GV\$form.

◆ get_entries()

get_entries ( )

Get all entries for this form.

Since
2.0
Returns
The

Add the fetcher lazy callback.

Apply the filters

Apply the sorts

Gravity Forms does not have multi-sorting, so just overwrite.

The offset and limit

Add the counter lazy callback.

Apply the filters

| $filter

Definition at line 90 of file class-gv-form-gravityforms.php.

References $entries, $entry, and GV\$form.

◆ get_field()

static get_field ( )
static

Get a by Form and Field ID for this data source.

Parameters
\GV\GF_Form$formThe Gravity Form form ID.
int$field_idThe Gravity Form field ID for the $form_id.
Returns
|null The requested field or null if not found.

Unwrap the arguments.

Wrap it up into a .

Definition at line 159 of file class-gv-form-gravityforms.php.

References $args, $field_id, GV\$form, and gravityview().

◆ get_fields()

get_fields ( )

Get an array of GV Fields for this data source.

Returns
[]|array Empty array if no fields

Definition at line 179 of file class-gv-form-gravityforms.php.

References $field.

◆ offsetExists()

offsetExists (   $offset)

ArrayAccess compatibility layer with a Gravity Forms form array.

Definition at line 219 of file class-gv-form-gravityforms.php.

◆ offsetGet()

offsetGet (   $offset)

ArrayAccess compatibility layer with a Gravity Forms form array.

Maps the old keys to the new data;

Definition at line 235 of file class-gv-form-gravityforms.php.

◆ offsetSet()

offsetSet (   $offset,
  $value 
)

ArrayAccess compatibility layer with a Gravity Forms form array.

Definition at line 249 of file class-gv-form-gravityforms.php.

References gravityview().

◆ offsetUnset()

offsetUnset (   $offset)

ArrayAccess compatibility layer with a Gravity Forms form array.

Definition at line 262 of file class-gv-form-gravityforms.php.

References gravityview().

Field Documentation

◆ $backend

$backend = self::BACKEND_GRAVITYFORMS
static

Definition at line 21 of file class-gv-form-gravityforms.php.


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