This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
    
Integer field type¶
This field type represents an integer value.
| Name | Internal name | Expected input | 
|---|---|---|
Integer | 
ibexa_integer | 
integer | 
PHP API field type¶
Input expectations¶
| Type | Example | 
|---|---|
integer | 
2397 | 
Value object¶
Properties¶
The Value class of this field type contains the following properties:
| Property | Type | Description | 
|---|---|---|
$value | 
int | 
This property is used to store the value provided as an integer. | 
1 2  |  | 
Constructor¶
The Integer\Value constructor initializes a new value object with the value provided.
It expects a numeric, integer value.
1 2 3 4 5  |  | 
Hash format¶
Hash value of this field type is an integer value as a string.
Example: "8"
String representation¶
String representation of the field type's value returns the integer value as a string.
Example: "8"
Validation¶
This field type supports IntegerValueValidator, defining maximum and minimum float value:
| Name | Type | Default value | Description | 
|---|---|---|---|
minIntegerValue | 
int | 
0 | 
This setting defines the minimum value this field type which is allowed as input. | 
maxIntegerValue | 
int | 
null | 
This setting defines the maximum value this field type which is allowed as input. | 
1 2 3 4 5  |  | 
Settings¶
This field type doesn't support settings.