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 Checkbox status, checked or unchecked.

NameInternal nameExpected input type
Checkboxezbooleanboolean

Table of contents:

Description


The Checkbox FieldType stores the current status for a checkbox input, checked of unchecked, by storing a boolean value.

Value object


Properties

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

PropertyTypeDefault valueDescription
$boolbooleanfalseThis property will be used for the checkbox status, which will be represented by a boolean value.
Value object content examples

Constructor

The Checkbox\Value constructor accepts an array of selected elements identifiers.

Constructor example

String representation

As this FieldType is not a string but a bool, it will return "1" (true) or "0" (false) in cases where it is casted to string.