GravityView  2.9
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_fields ()
 Get an array of GV Fields for this data source. More...
 
 get_query_class ( $view)
 Return the query class for this View. 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 ( $view)
 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 625 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, and $form_id.

Referenced by GV\Mocks\GravityView_API_field_label(), GV\Mocks\GravityView_API_field_value(), GV\Mocks\GravityView_frontend_get_view_entries(), Entry_Table_Template\the_field(), 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 72 of file class-gv-form-gravityforms.php.

References 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 583 of file class-gv-form-gravityforms.php.

References $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 603 of file class-gv-form-gravityforms.php.

References $field.

◆ get_query_class()

get_query_class (   $view)

Return the query class for this View.

Returns
string The class name.
Runs Filter:
gravityview/query/class
Parameters
[in,out]stringThe query class. Default: GF_Query.
\GV\View$thisThe View.

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

References $entries, $entry, $field, GV\$form, $form_id, GravityView_frontend\_override_sorting_id_by_field_type(), GravityView_Entry_Approval_Status\APPROVED, Utils\get(), GV\get(), gravityview(), GVCommon\has_cap(), GVCommon\is_field_numeric(), and GravityView_Entry_Approval\meta_key.

◆ offsetExists()

offsetExists (   $offset)

ArrayAccess compatibility layer with a Gravity Forms form array.

Definition at line 642 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 657 of file class-gv-form-gravityforms.php.

◆ offsetSet()

offsetSet (   $offset,
  $value 
)

ArrayAccess compatibility layer with a Gravity Forms form array.

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

References gravityview().

◆ offsetUnset()

offsetUnset (   $offset)

ArrayAccess compatibility layer with a Gravity Forms form array.

Definition at line 682 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: