Skip to main content

GV\Form

The \GV\Form class.

Houses all base Form functionality and provides a uniform API to various form backends via \GV\Form implementations.

Source: stubs/gravityview.php:5191

Details

  • Kind: class
  • Namespace: GV
  • Extends: GV\Source

Properties

PropertyTypeDescription
$IDintThe ID for this form.

Methods

MethodDescription
by_id()Construct a \GV\Form instance by ID.
get_entries()Get all entries for this form.
__get()Magic shortcuts.

Method Reference

by_id()

public static function by_id( $form_id )

Construct a \GV\Form instance by ID.

Parameters

NameTypeDefaultDescription
$form_idint | stringThe internal form ID.

Returns

  • \GV\Form | null — An instance of this form or null if not found.

Since: 2.0

Source: stubs/gravityview.php:5213

get_entries()

public abstract function get_entries()

Get all entries for this form.

Returns

Since: 2.0

Source: stubs/gravityview.php:5224

__get()

public function __get( $key )

Magic shortcuts.

  • entries -> $this->get_entries()

Parameters

NameTypeDefaultDescription
$key

Source: stubs/gravityview.php:5230