5 if ( ! defined(
'GRAVITYVIEW_DIR' ) ) {
32 if ( empty( $configuration[
'id'] ) || ! is_string( $configuration[
'id'] ) ) {
33 gravityview()->log->error(
'Invalid configuration[id] supplied for internal field: {id}', array(
'data' => $configuration,
'id' => \
GV\Utils::get( $configuration,
'id' ) ) );
37 $field = self::by_id( $configuration[
'id'] );
39 $field->update_configuration( $configuration );
77 if ( ! $this->show_label ) {
81 if (
$label = parent::get_label( $view, $source,
$entry, $request ) ) {
89 return $this->field ? $this->field->label :
'';
106 gravityview()->log->error(
'$entry is not a valid \GV\Entry instance' );
123 return $this->get_value_filters(
$value, $view, $source,
$entry, $request );
If this file is called directly, abort.
If this file is called directly, abort.
If this file is called directly, abort.
static from_configuration( $configuration)
Create self from a configuration array.
If this file is called directly, abort.
static by_id( $field_id)
Get a from an internal Gravity Forms field ID.
If this file is called directly, abort.
If this file is called directly, abort.
gravityview()
The main GravityView wrapper function.
get_label(View $view=null, Source $source=null, Entry $entry=null, Request $request=null)
Retrieve the label for this field.
get_value(View $view=null, Source $source=null, Entry $entry=null, Request $request=null)
Retrieve the value for this field.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
static get_instance( $field_name)