Class

FormFieldFree

Package: Builder\Form\field Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2015 11 09 Since: PHPBoost 3.0 - 2009 09 19 Contributor: Julien BRISWALTER j1.seth@phpboost.com Located at: builder/form/field/FormFieldFree.class.php

This class manage free contents fields. It provides you additionnal field options :

  • template : A template object to personnalize the field
  • content : The field html content if you don't use a personnal template
AbstractFormField implements FormField
Extended by FormFieldFree
Direct known subclasses
FormFieldBooleanInformation
Methods summary
public
# __construct( string $id, string $label, mixed $value, array $properties = 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 string
# display( )

Return the element

protected Template