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 an integer value.

NameInternal nameExpected input
Integerezintegerinteger

Table of contents:

Description


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

Input expectations


TypeExample
integer

2397

Value object


Properties

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

PropertyTypeDescription
$valueintThis property will be used to store the value provided as an integer.
Value object content example

Constructor

The Integer \Value constructor will initialize a new Value object with the value provided. It expects a numeric, integer value.

Constructor example

Hash format

Hash value of this FieldType is simply integer value as a string.

Example:

"8"

String representation

String representation of the FieldType's value will return the integer value as a string.

Example:

"8"

Validation


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

NameTypeDefault valueDescription
minIntegerValueint0
This setting defines the minimum value this FieldType will allow as input.
maxIntegerValueint

false / SINCE 5.4.9 null

This setting defines the maximum value this FieldType will allow as input.
Example of validator configuration in PHP

Settings


This FieldType does not support settings.