GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions
Form_Collection Class Reference

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

Inheritance diagram for Form_Collection:
Collection

Public Member Functions

 add ( $form)
 Add a to this collection. More...
 
 get ( $form_id, $backend='gravityforms')
 Get a from this list. More...
 
- Public Member Functions inherited from Collection
 add ( $value)
 Add an object to this collection. More...
 
 all ()
 Returns all the objects in this collection as an an array. More...
 
 clear ()
 Clear this collection. More...
 
 count ()
 Returns the count of the objects in this collection. More...
 
 first ()
 Get the first added object. More...
 
 last ()
 Get the last added object. More...
 
 merge (\GV\Collection $collection)
 Merge another collection into here. More...
 

Detailed Description

If this file is called directly, abort.

A collection of objects.

Definition at line 12 of file class-gv-collection-form.php.

Member Function Documentation

◆ add()

add (   $form)

Add a to this collection.

Parameters
\GV\Form$formThe form to add to the internal array.
Since
2.0
Returns
void

Definition at line 22 of file class-gv-collection-form.php.

References GV\$form, and gravityview().

◆ get()

get (   $form_id,
  $backend = 'gravityforms' 
)

Get a from this list.

Parameters
int$form_idThe ID of the form to get.
string$backendThe form backend identifier, allows for multiple form backends in the future. Unused until then.
Since
2.0
Returns
|null The with the $form_id as the ID, or null if not found.

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

References GV\$form, and $form_id.


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