37 $this->label = esc_html__(
'Is Fulfilled',
'gk-gravityview' );
38 $this->
description = esc_html__(
'Indicates if the entry or order has been fulfilled.',
'gk-gravityview' );
41 add_filter(
'gravityview_field_entry_value_' . $this->name .
'_pre_link', array( $this,
'get_content' ), 10, 4 );
42 add_filter(
'gravityview/field/is_fulfilled/value', array( $this,
'get_value' ), 10 );
44 parent::__construct();
93 switch ( intval(
$value ) ) {
94 case self::NOT_FULFILLED:
96 $return = __(
'Not Fulfilled',
'gk-gravityview');
100 $return = __(
'Fulfilled',
'gk-gravityview');
124 foreach ( $matches as $match ) {
126 $full_tag = $match[0];
132 $return = str_replace( $full_tag,
$value, $return );
135 unset( $formatted_amount,
$value, $amount, $full_tag, $matches );
Modify field settings by extending this class.
new GravityView_Field_Is_Fulfilled
get_value( $value)
Filter the value of the field (future)
get_content( $output, $entry=array(), $field_settings=array(), $field=array())
Filter the value of the field.
$field_settings['content']
__construct()
GravityView_Field_Is_Fulfilled constructor.
replace_merge_tag( $matches=array(), $text='', $form=array(), $entry=array(), $url_encode=false, $esc_html=false)
Add {is_fulfilled} merge tag.
if(gravityview() ->plugin->is_GF_25()) $form
scale description p description
get_string_from_value( $value)
Get the string output based on the numeric value used by Gravity Forms.
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.