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

This file contains magic wrapper code for gravityview(). More...

Public Member Functions

 get ( $view=null)
 Gets a View. More...
 
 set ( $view)
 Mock the internal pointer. More...
 

Private Attributes

 $view = null
 

Detailed Description

This file contains magic wrapper code for gravityview().

Every gravityview() magic key maps to a class that exposes more magic. Chains of infinite magic can be constructed spanning seas of mermaids, valleys of unicorns and whirlwinds of shooting stars. The views magic wrapper.

Definition at line 15 of file class-gv-wrappers.php.

Member Function Documentation

◆ get()

get (   $view = null)

Gets a View.

Doesn't care what you provide it. Will try to find out what you need from the current context, from the supplied args, etc.

Parameters
string|int|array|

By View.

By View ID.

By post object.

By array.

From various contexts.

Final fallback.

Definition at line 33 of file class-gv-wrappers.php.

References $post, views\$view, and gravityview().

◆ set()

set (   $view)

Mock the internal pointer.

Parameters
\GV\View$viewThe View to supply on fallback in ::get()
Returns
void

Definition at line 93 of file class-gv-wrappers.php.

References views\$view.

Field Documentation

◆ $view

$view = null
private

Definition at line 20 of file class-gv-wrappers.php.

Referenced by views\get(), and views\set().


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