Skip to main content

GravityMathAddOn

Source: includes/class-gravitymath-gfaddon.php:6

Details

  • Kind: class
  • Namespace: (global)
  • Extends: GFAddOn

Methods

MethodDescription
__construct()We're not able to set the __construct() method to private because we're extending the GFAddon class, so
get_instance()
init_frontend()
form_settings_fields()
get_default_value()Get the supplied default value for a form otherwise default to 'skip'

Method Reference

__construct()

public function __construct( $prevent_multiple_instances='' )

We're not able to set the __construct() method to private because we're extending the GFAddon class, so

we fake it. When called using new GravityView_Settings, it will return get_instance() instead. We pass 'get_instance' as a test string.

Parameters

NameTypeDefaultDescription
$prevent_multiple_instancesstring''

See Also

Since: 2.5.0

Source: includes/class-gravitymath-gfaddon.php:70

get_instance()

public static function get_instance()

Returns

Since: 1.0

Source: includes/class-gravitymath-gfaddon.php:83

init_frontend()

public function init_frontend()

Returns

  • void

Since: 1.0

Source: includes/class-gravitymath-gfaddon.php:97

form_settings_fields()

public function form_settings_fields( $form )

Parameters

NameTypeDefaultDescription
$form\GF_FormThe form object.

Returns

  • array[]

Source: includes/class-gravitymath-gfaddon.php:108

get_default_value()

public function get_default_value( $default_value='skip', $atts=[] )

Get the supplied default value for a form otherwise default to 'skip'

Parameters

NameTypeDefaultDescription
$default_valuestring'skip'
$atts[]

Returns

  • mixed | string

Since: 1.0

Source: includes/class-gravitymath-gfaddon.php:137