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
| Property | Type | Description |
|---|---|---|
$ID | int | The ID for this form. |
Methods
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | int | string | The 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
- \GV\Entry_Collection — The \GV\Entry_Collection
Since: 2.0
Source: future/includes/class-gv-form.php:50
__get()
public function __get( $key )
Magic shortcuts.
entries->$this->get_entries()
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$key |
Source: future/includes/class-gv-form.php:57