Navigation
eZ Documentation Center
 

This is outdated documentation made for eZ Publish Platform 5.1. It is being moved into the eZ Publish 5.x documentation, so please go there for most up-to-date documentation.

Skip to end of metadata
Go to start of metadata

TextLine

This field type represents a simple string.

 

NameInternal nameExpected input type
TextLineezstringstring

 

Description

This FieldType makes it possible to store and retrieve a single line of unformatted text. It is capable of handling up to 255 number of characters.

 

Validation

The input passed into this filed type is subject of validation by the StringLengthValidator validator. The length of the string provided must be between the minimum length defined in minStringLength and the maximum defined in maxStringLength. The default value for both properties is 0, which means that the validation is disabled by default.
To set the validation properties the validateValidatorConfiguration() method needs to be inspected, which will receive an array with minStringLength and maxStringLength like in the following representation:

Array
(
    [minStringLength] => 1
    [maxStringLength] => 60
)

 

Value object

Properties

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

PropertyTypeDescription
$textstringThis property will be used for the text content.
Constructor

The constructor for this value object will initialize a new Value object with the value provided. It accepts a string as argument and will import it to the text attribute.

 

 

For more details on the Value object for this field type please refer to the auto-generated documentation.

 

 

 

 

 

  • No labels