GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
add ( $widget) | |
Add a to this collection. More... | |
by_id ( $id) | |
Get a copy of this filtered by ID. More... | |
by_position ( $position) | |
Get a copy of this filtered by position. More... | |
get ( $widget_uid) | |
Get a from this list by UID. 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... | |
Static Public Member Functions | |
static | from_configuration ( $configuration) |
Parse a configuration array into a Widget_Collection. More... | |
If this file is called directly, abort.
A collection of objects.
Definition at line 12 of file class-gv-collection-widget.php.
add | ( | $widget | ) |
Add a to this collection.
\GV\Widget | $widget | The widget to add to the internal array. |
Definition at line 22 of file class-gv-collection-widget.php.
References gravityview().
by_id | ( | $id | ) |
Get a copy of this filtered by ID.
string | $id | The IDs to get the widgets for. |
Definition at line 83 of file class-gv-collection-widget.php.
by_position | ( | $position | ) |
Get a copy of this filtered by position.
string | $position | The position to get the widgets for. Can be a wildcard * |
Definition at line 60 of file class-gv-collection-widget.php.
|
static |
Parse a configuration array into a Widget_Collection.
array | $configuration | The configuration, structured like so: |
array(
[other zones] 'footer_right' => array( [other widgets] '5372653f25d44' => array( @see \GV\Widget::as_configuration() for structure ) [other widgets]
)
[other zones] )
Definition at line 119 of file class-gv-collection-widget.php.
get | ( | $widget_uid | ) |
Get a from this list by UID.
int | $widget_uid | The UID of the widget in the collection to get. |
Definition at line 40 of file class-gv-collection-widget.php.