AbstractFormField
Abstract class that proposes a default implementation for the FormField interface.
- AbstractFormField implements FormField
Direct known subclasses
AbstractFormFieldChoice, FormFieldActionLink, FormFieldHidden, FormFieldHTML, FormFieldLabel, FormFieldMultiLineTextEditor, FormFieldMultipleAutocompleter, FormFieldMultipleCheckbox, FormFieldMultipleFilePicker, FormFieldMultipleSelectChoice, FormFieldNumberEditor, FormFieldPasswordEditor, FormFieldActionLinkList, FormFieldPossibleValues, FormFieldSelectSources, FormFieldTextEditor, FormFieldUploadFile, FormFieldAuthorizationsSetter, FormFieldCaptcha, FormFieldCheckbox, FormFieldColorPicker, FormFieldDate, FormFieldFilePicker, FormFieldFreeIndirect known subclasses
FormFieldAjaxCompleter, FormFieldAjaxSearchUserAutoComplete, FormFieldLangsSelect, FormFieldMailEditor, FormFieldMemberCaution, FormFieldMemberSanction, FormFieldRadioChoice, FormFieldRangeEditor, FormFieldRanksSelect, FormFieldRichTextEditor, FormFieldSearch, FormFieldShortMultiLineTextEditor, FormFieldAjaxUserAutoComplete, FormFieldSimpleSelectChoice, FormFieldTelEditor, FormFieldThemesSelect, FormFieldTimezone, FormFieldUploadPictureFile, FormFieldUrlEditor, FormFieldBooleanInformation, FormFieldCategoriesSelect, FormFieldCSRFToken, FormFieldDateTime, FormFieldDecimalNumberEditor, FormFieldEditors, FormFieldGroups
protected
|
#
__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:
None of these parameters is required. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
mixed
|
|
public
|
|
public
true
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
add_form_constraint(
Add javascript code on the onblur field parameter that makes validation |
public
boolean
|
|
public
string
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
boolean
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
abstract protected
|
|
protected
|
display()
|
protected
string
|
$id
|
#
''
|
protected
string
|
$label
|
#
''
|
protected
string
|
$description
|
#
''
|
protected
string
|
$value
|
#
null
|
protected
boolean
|
$disabled
|
#
false
|
protected
boolean
|
$readonly
|
#
false
|
protected
string
|
$css_class
|
#
''
|
protected
string
|
$css_field_class
|
#
''
|
protected
string
|
$css_form_field_class
|
#
''
|
protected
string
|
$required
|
#
false
|
protected
string
|
$pattern
|
#
''
|
protected
string
|
$placeholder
|
#
''
|
protected
string
|
$validation_error_message
|
#
''
|
protected
|
$constraints
|
#
array()
|
protected
|
$form_constraints
|
#
array()
|
protected
|
$template
|
#
null
|
protected
string[string]
|
$events
|
#
array()
|