Package: Builder\Form\field Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Kevin MASSY Version: PHPBoost 5.2 - last update: 2018 06 03 Since: PHPBoost 4.0 - 2013 02 27 Contributor: Julien BRISWALTER Located at: builder/form/field/FormFieldSelectSources.class.php
AbstractFormField implements FormField
Extended by FormFieldSelectSources
Methods summary
# __construct( string $id, string $label, array $value = array(), 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 string
# display( )

Return the element

# retrieve_value( )

Tries to retrieve the value in the HTTP request's parameters.

# compute_options( array & $field_options )
protected Template