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

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

Inheritance diagram for Entry_Renderer:
Renderer Edit_Entry_Renderer

Public Member Functions

 render (Entry $entry, View $view, Request $request=null)
 Renders a single instance. More...
 
- Public Member Functions inherited from Renderer
 __construct ()
 Initialization. More...
 
 legacy_template_warning ( $view, $path)
 Warn about legacy template being used. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Renderer
static maybe_print_notices ( $gravityview=null)
 Print unconfigured notices to admins. More...
 

Detailed Description

If this file is called directly, abort.

The class.

Houses some preliminary rendering functionality.

Definition at line 14 of file class-gv-renderer-entry.php.

Member Function Documentation

◆ render()

render ( Entry  $entry,
View  $view,
Request  $request = null 
)

Renders a single instance.

Parameters
\GV\Entry$entryThe Entry instance to render.
\GV\View$viewThe View connected to the entry.
\GV\Request$requestThe request context we're currently in. Default: gravityview()->request
Since
2.0
Returns
string The rendered Entry.

This View is password protected. Output the form.

Entry does not belong to this view.

Runs Actions:
gravityview_render_entry_{View ID} Before rendering a single entry for a specific View ID
Since
1.17
2.0
Parameters
\GV\Entry$entryThe entry about to be rendered
\GV\View$viewThe connected view
\GV\Request$requestThe associated request
Runs Filter:
gravityview_template_slug_{$template_id} Modify the template slug about to be loaded in directory views.
Since
1.6
Parameters
deprecated
See also
The gravityview_get_template_id filter
Parameters
string$slugDefault: 'table'
string$viewThe current view context: single

Load a legacy override template if exists.

We have to bail and call the legacy renderer. Crap!

Show a warning at the top, if View is editable by the user.

Runs Filter:
gravityview/template/entry/class Filter the template class that is about to be used to render the entry.
Since
2.0
Parameters
string$classThe chosen class - Default: .
\GV\Entry$entryThe entry about to be rendered.
\GV\View$viewThe view connected to it.
\GV\Request$requestThe associated request.

Mock the legacy state for the widgets and whatnot

Definition at line 28 of file class-gv-renderer-entry.php.

References $class, $entries, $template, gravityview(), and Legacy_Context\push().


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