GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Protected Member Functions | Protected Attributes
GravityView_Admin_View_Item Class Reference

A field or widget in GravityView view configuration. More...

Inheritance diagram for GravityView_Admin_View_Item:
GravityView_Admin_View_Field GravityView_Admin_View_Widget

Public Member Functions

 __construct ($title= '', $item_id, $item=array(), $settings=array())
 
 __toString ()
 When echoing this class, print the HTML output. More...
 
 getOutput ()
 Generate HTML for field or a widget modal. More...
 

Protected Member Functions

 additional_info ()
 Overridden by child classes. More...
 
 get_item_info ($html=true)
 Generate the output for a field based on the additional_info() output. More...
 

Protected Attributes

 $id
 
 $item
 
 $label_type
 
 $settings
 
 $subtitle
 
 $title
 

Detailed Description

A field or widget in GravityView view configuration.

Definition at line 10 of file class-gravityview-admin-view-item.php.

Constructor & Destructor Documentation

__construct (   $title = '',
  $item_id,
  $item = array(),
  $settings = array() 
)

Definition at line 42 of file class-gravityview-admin-view-item.php.

References $item, $settings, and $title.

Member Function Documentation

__toString ( )

When echoing this class, print the HTML output.

Returns
string HTML output of the class

Definition at line 75 of file class-gravityview-admin-view-item.php.

References getOutput().

additional_info ( )
protected

Overridden by child classes.

Returns
array Array of content with arrays for each item. Those arrays have value, label and (optional) class keys

Definition at line 84 of file class-gravityview-admin-view-item.php.

Referenced by get_item_info().

get_item_info (   $html = true)
protected

Generate the output for a field based on the additional_info() output.

See also
GravityView_Admin_View_Item::additional_info()
Parameters
boolean$htmlDisplay HTML output? If yes, output is wrapped in spans. If no, plaintext.
Returns
string|null If empty, return null. Otherwise, return output HTML/text.
Runs Filter:
gravityview_admin_label_item_info Tap in to modify the field information displayed next to an item
Parameters
array$field_info_itemsAdditional information to display in a field
GravityView_Admin_View_Field$thisField shown in the admin

Definition at line 95 of file class-gravityview-admin-view-item.php.

References $class, $html, $item, $output, and additional_info().

Referenced by getOutput().

getOutput ( )

Generate HTML for field or a widget modal.

Returns
string

Definition at line 134 of file class-gravityview-admin-view-item.php.

References $container_class, $label, $output, $title, and get_item_info().

Referenced by __toString().

Field Documentation

$id
protected

Definition at line 20 of file class-gravityview-admin-view-item.php.

$item
protected

Definition at line 35 of file class-gravityview-admin-view-item.php.

Referenced by __construct(), and get_item_info().

$label_type
protected

Definition at line 30 of file class-gravityview-admin-view-item.php.

$settings
protected

Definition at line 40 of file class-gravityview-admin-view-item.php.

Referenced by __construct().

$subtitle
protected

Definition at line 25 of file class-gravityview-admin-view-item.php.

$title
protected

Definition at line 15 of file class-gravityview-admin-view-item.php.

Referenced by __construct(), and getOutput().


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