Class

FormFieldColorPicker

Package: Builder\Form\field Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Kevin MASSY reidlos@phpboost.com Version: PHPBoost 5.2 - last update: 2017 03 10 Since: PHPBoost 3.0 - 2012 10 21 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: mipel mipel@phpboost.com Located at: builder/form/field/FormFieldColorPicker.class.php

The class FormCheckBox represents a checkbox field in a form. It corresponds to a boolean.

AbstractFormField implements FormField
Extended by FormFieldColorPicker
Methods summary
public
# __construct( string $id, string $label, mixed $value, array $field_options = array(), array $constraints = array() )

Constructs and set parameters to the field. The specific parameters of this abstract class (common with many fields) are the following:

  • description at which you must associate the description of the field
  • class which corresponds to the HTML class of the field
  • required which tells whether this field must be completed. If it's the case, it will display a * beside the label and will add a non empty constraint to the constraints.

None of these parameters is required.

public Template
# display( )
protected Template