Class

FormFieldNumberEditor

Package: Builder\Form\field Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Julien BRISWALTER j1.seth@phpboost.com Version: PHPBoost 5.2 - last update: 2018 06 03 Since: PHPBoost 4.1 - 2015 05 20 Contributor: Arnaud GENET elenwii@phpboost.com Contributor: mipel mipel@phpboost.com Located at: builder/form/field/FormFieldNumberEditor.class.php

This class manage number fields.

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

Constructs a FormFieldNumberEditor. It has these options in addition to the AbstractFormField ones:

  • size: The min value of the HTML field
  • size: The max value of the HTML field
  • size: The step of the value of the HTML field
public string
# display( )
protected
# compute_options( array & $field_options )
protected Template
Properties summary
protected string $type
# 'number'
protected $min
# null
protected integer $max
# 0
protected integer $step
# 0
protected string $pattern
# '[0-9]*'