Skip to main content

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

PropertyTypeDescription
$entriesThe entries in this form.
$backendstringThe identifier of the backend used for this entry.

Methods

MethodDescription
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

NameTypeDefaultDescription
$entries\GV\Entry[]The entries.

Returns

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

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

NameTypeDefaultDescription
$view\GV\View | nullnullThe View context.
$request\GV\RequestnullThe Request (current if null).
$track_directorybooleantrueKeep 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