GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Data Fields
GravityView_Debug_Bar Class Reference
Inheritance diagram for GravityView_Debug_Bar:

Public Member Functions

 esc_html_recursive ($item)
 Apply esc_html() to an array. More...
 
 get_notices ()
 
 get_warnings ()
 
 init ()
 Only show if WP_DEBUG is running. More...
 
 prerender ()
 
 render ()
 Render the panel HTML. More...
 
 render_item ($notice, $anchor= '')
 Render each log item. More...
 
 set_visible ($visible=false)
 Should the panel be shown? If there are notices or warnings, yes. More...
 

Data Fields

 $_visible = true
 
 $notices = NULL
 
 $warnings = NULL
 

Detailed Description

Definition at line 9 of file class-debug-bar.php.

Member Function Documentation

esc_html_recursive (   $item)

Apply esc_html() to an array.

Parameters
string | array$itemUnescaped
Returns
string Escaped HTML

Definition at line 136 of file class-debug-bar.php.

References $value.

Referenced by render_item().

get_notices ( )

Definition at line 36 of file class-debug-bar.php.

References $notices, and GravityView_Logging\get_notices().

Referenced by render(), and set_visible().

get_warnings ( )

Definition at line 27 of file class-debug-bar.php.

References $warnings, and GravityView_Logging\get_errors().

Referenced by render(), and set_visible().

init ( )

Only show if WP_DEBUG is running.

Set the title of the panel.

Returns
void

Definition at line 21 of file class-debug-bar.php.

prerender ( )

Definition at line 45 of file class-debug-bar.php.

References set_visible().

render ( )

Render the panel HTML.

Returns
string Panel output

Definition at line 62 of file class-debug-bar.php.

References $output, get_notices(), get_warnings(), GRAVITYVIEW_FILE, and render_item().

render_item (   $notice,
  $anchor = '' 
)

Render each log item.

Parameters
array$noticemessage, description, content
string$anchorThe anchor ID for the item
Returns
string HTML output

Definition at line 158 of file class-debug-bar.php.

References $anchor, $output, and esc_html_recursive().

Referenced by render().

set_visible (   $visible = false)

Should the panel be shown? If there are notices or warnings, yes.

Parameters
boolean$visible{

Definition at line 54 of file class-debug-bar.php.

References get_notices(), and get_warnings().

Referenced by prerender().

Field Documentation

$_visible = true

Definition at line 15 of file class-debug-bar.php.

$notices = NULL

Definition at line 13 of file class-debug-bar.php.

Referenced by get_notices().

$warnings = NULL

Definition at line 11 of file class-debug-bar.php.

Referenced by get_warnings().


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