GV\Multi_Entry
The multi-entry Entry implementation.
An entry that is really a join of 2+ entries. Used for JOINS in the \GF_Query component.
Source: future/includes/class-gv-entry-multi.php:15
Details
- Kind:
class - Namespace:
GV - Extends:
Entry - Implements:
ArrayAccess
Properties
| Property | Type | Description |
|---|---|---|
$entries | The entries in this form. | |
$backend | string | The identifier of the backend used for this entry. |
Methods
| Method | Description |
|---|---|
from_entries() | Construct a multientry from an array of entries. |
as_entry() | Fake legacy template support. |
get_permalink() | Return the link to this multi entry in the supplied context. |
Method Reference
from_entries()
public static function from_entries( $entries )
Construct a multientry from an array of entries.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$entries | \GV\Entry[] | The entries. |
Returns
- \GV\Multi_Entry — A multientry object.
Source: future/includes/class-gv-entry-multi.php:41
as_entry()
public function as_entry()
Fake legacy template support.
Take the first entry and set it as the current entry. But support nesting.
Returns
array— See \GV\Entry::as_entry()
Source: future/includes/class-gv-entry-multi.php:63
get_permalink()
public function get_permalink( \GV\View $view=null, \GV\Request $request=null, $track_directory=true )
Return the link to this multi entry in the supplied context.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$view | \GV\View | null | null | The View context. |
$request | \GV\Request | null | The Request (current if null). |
$track_directory | boolean | true | Keep the housing directory arguments intact (used for breadcrumbs, for example). Default: true. |
Returns
string— The permalink to this entry.
Since: 2.2
Source: future/includes/class-gv-entry-multi.php:90