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: future/includes/class-gv-form.php:15

Details

  • Kind: class
  • Namespace: GV
  • Extends: 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: future/includes/class-gv-form.php:38

get_entries()

abstract public function get_entries()

Get all entries for this form.

Returns

Since: 2.0

Source: future/includes/class-gv-form.php:50

__get()

public function __get( $key )

Magic shortcuts.

  • entries -> $this->get_entries()

Parameters

NameTypeDefaultDescription
$key

Source: future/includes/class-gv-form.php:57