GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions
gvlogic Class Reference

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

Inheritance diagram for gvlogic:
Shortcode

Public Member Functions

 callback ( $atts, $content='', $tag='')
 Process and output the [gvfield] shortcode. More...
 
- Public Member Functions inherited from Shortcode
 callback ( $atts, $content='', $tag='')
 The WordPress Shortcode API callback for this shortcode. More...
 

Static Public Member Functions

static add ( $name=null)
 
- Static Public Member Functions inherited from Shortcode
static add ( $name=null)
 Register this shortcode class with the WordPress Shortcode API. More...
 
static parse ( $content)
 Parse a string of content and figure out which ones there are. More...
 
static remove ()
 Unregister this shortcode. More...
 

Data Fields

 $name = 'gvlogic'
 
- Data Fields inherited from Shortcode
 $atts
 
 $content
 
 $name
 

Private Member Functions

 authorized ( $atts)
 Are we authorized to follow the if path? More...
 
 get_operator ( $atts)
 Fetch the operator. More...
 
 get_operators ( $with_values=false)
 Get array of supported operators. More...
 
 get_output ( $match, $atts, $content)
 Get the output content. More...
 
 get_value ( $atts)
 Fetch the value. More...
 
 parse_atts ( $atts, $content, $tag)
 Process the attributes passed to the shortcode. More...
 

Detailed Description

If this file is called directly, abort.

The [gvlogic] shortcode.

Definition at line 12 of file class-gv-shortcode-gvlogic.php.

Member Function Documentation

◆ add()

static add (   $name = null)
static

...some aliases.

Definition at line 21 of file class-gv-shortcode-gvlogic.php.

◆ authorized()

authorized (   $atts)
private

Are we authorized to follow the if path?

Parameters
array$attsThe attributes.
Returns
bool Yes, or no.

Definition at line 128 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, and Utils\get().

Referenced by gvlogic\callback().

◆ callback()

callback (   $atts,
  $content = '',
  $tag = '' 
)

Process and output the [gvfield] shortcode.

Parameters
array$attsThe attributes passed.
string$contentThe content inside the shortcode.
string$tagThe tag.
Returns
string The output.

Definition at line 41 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, Shortcode\$content, $output, $value, gvlogic\authorized(), Utils\get(), gvlogic\get_operator(), gvlogic\get_output(), gvlogic\get_value(), gravityview(), gv_map_deep(), GVCommon\matches_operation(), gvlogic\parse_atts(), and GravityView_Merge_Tags\replace_get_variables().

◆ get_operator()

get_operator (   $atts)
private

Fetch the operator.

Parameters
array$attsThe attributes.
Returns
bool|string The operator.

Definition at line 146 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, $value, and gvlogic\get_operators().

Referenced by gvlogic\callback().

◆ get_operators()

get_operators (   $with_values = false)
private

Get array of supported operators.

Parameters
bool$with_values
Returns
array

Definition at line 285 of file class-gv-shortcode-gvlogic.php.

Referenced by gvlogic\get_operator(), gvlogic\get_value(), and gvlogic\parse_atts().

◆ get_output()

get_output (   $match,
  $atts,
  $content 
)
private

Get the output content.

Parameters
bool$matchif or else?
array$attsThe attributes.
string$contentThe content.
Returns
string The output.

Definition at line 194 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, Shortcode\$content, and gravityview().

Referenced by gvlogic\callback().

◆ get_value()

get_value (   $atts)
private

Fetch the value.

Parameters
array$attsThe attributes.
Returns
null|string The value.

Definition at line 169 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, $value, and gvlogic\get_operators().

Referenced by gvlogic\callback().

◆ parse_atts()

parse_atts (   $atts,
  $content,
  $tag 
)
private

Process the attributes passed to the shortcode.

Make sure they're valid

Returns
array Array of attributes parsed for the shortcode
Runs Filter:
gravityview/gvlogic/atts The logic attributes.
Since
2.5
Parameters
array$attsThe logic attributes.

Definition at line 309 of file class-gv-shortcode-gvlogic.php.

References Shortcode\$atts, and gvlogic\get_operators().

Referenced by gvlogic\callback().

Field Documentation

◆ $name

$name = 'gvlogic'

Definition at line 16 of file class-gv-shortcode-gvlogic.php.


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