Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Skip to end of metadata
Go to start of metadata

This field type represents a float value.

NameInternal nameExpected input
Floatezfloatfloat

Table of contents:

Description


This FieldType stores numeric values which will be provided as floats.

Input expectations 


The FieldType expects a number as input. Both decimal and integer numbers are accepted.

TypeExample
float

194079.572

int144

Value object


Properties

The Value class of this field type contains the following properties:

PropertyTypeDescription
$valuefloatThis property will be used to store the value provided as a float.
Value object content example

Constructor

The Float\Value constructor will initialize a new Value object with the value provided. It expects a numeric value with or without decimals.

Constructor example

Validation


This FieldType supports FloatValueValidator, defining maximal and minimal float value:

NameTypeDefault valueDescription
minFloatValuefloatfalse / SINCE 5.4.9 null
This setting defines the minimum value this FieldType will allow as input.
maxFloatValuefloatfalse / SINCE 5.4.9 null
This setting defines the maximum value this FieldType will allow as input.
Validator configuration example in PHP

Settings


This FieldType does not support settings.