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

Modify option field type by extending this class. More...

Inheritance diagram for GravityView_FieldType:
GravityView_FieldType_checkbox GravityView_FieldType_checkboxes GravityView_FieldType_hidden GravityView_FieldType_html GravityView_FieldType_multiselect GravityView_FieldType_radio GravityView_FieldType_select GravityView_FieldType_text GravityView_FieldType_textarea

Public Member Functions

 __construct ($name= '', $field=array(), $curr_value=NULL)
 
 get_field_desc ()
 Retrieve field description. More...
 
 get_field_id ()
 Build input id based on the name. More...
 
 get_field_label ()
 Retrieve field label. More...
 
 get_field_left_label ()
 Retrieve field left label. More...
 
 get_label_class ()
 Retrieve field label class. More...
 
 get_tooltip ()
 
 render_input ($override_input)
 important! Override this class outputs the input html part More...
 
 render_option ()
 important! Override this class outputs the field option html More...
 
 render_setting ($override_input=NULL)
 important! Override this class if needed outputs the field setting html More...
 
 show_merge_tags ()
 Verify if field should have merge tags. More...
 

Static Public Member Functions

static get_field_defaults ()
 Returns the default details for a field option. More...
 

Protected Attributes

 $field
 
 $name
 
 $value
 

Detailed Description

Modify option field type by extending this class.

Definition at line 6 of file class.field.type.php.

Constructor & Destructor Documentation

__construct (   $name = '',
  $field = array(),
  $curr_value = NULL 
)

Definition at line 29 of file class.field.type.php.

References $field, and $name.

Member Function Documentation

static get_field_defaults ( )
static

Returns the default details for a field option.

  • default // default option value, in case nothing is defined (
Returns
array

Definition at line 64 of file class.field.type.php.

get_field_desc ( )
get_field_id ( )

Build input id based on the name.

Returns
string

Definition at line 93 of file class.field.type.php.

get_field_label ( )
get_field_left_label ( )

Retrieve field left label.

Since
1.7
Returns
string

Definition at line 115 of file class.field.type.php.

Referenced by GravityView_FieldType_checkbox\render_setting().

get_label_class ( )

Retrieve field label class.

Returns
string

Definition at line 123 of file class.field.type.php.

get_tooltip ( )
render_input (   $override_input)

important! Override this class outputs the input html part

Definition at line 192 of file class.field.type.php.

Referenced by render_setting().

render_option ( )

important! Override this class outputs the field option html

Definition at line 156 of file class.field.type.php.

render_setting (   $override_input = NULL)

important! Override this class if needed outputs the field setting html

Definition at line 164 of file class.field.type.php.

References get_field_label(), get_tooltip(), and render_input().

show_merge_tags ( )

Verify if field should have merge tags.

Returns
boolean

Definition at line 141 of file class.field.type.php.

Referenced by GravityView_FieldType_number\render_input(), GravityView_FieldType_text\render_input(), and GravityView_FieldType_textarea\render_input().

Field Documentation

$field
protected

Definition at line 20 of file class.field.type.php.

Referenced by __construct().

$name
protected

Definition at line 13 of file class.field.type.php.

Referenced by __construct().

$value
protected

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