Summary
- File
-
Package
\Builder\Form\field
- Parents \FormElement
This class manage radio input fields.
This class manage radio input fields.
display() : string
Return the element
| None found |
get_id() : string
Returns the id.
| None found |
get_label() : string
Returns the label
| None found |
set_id(string $id)
Sets the id
| string | $id | The id. |
| None found |
set_form_id(string $prefix)
Sets the id prefix
| string | $prefix | The new id prefix. |
| None found |
set_fieldset_id( $fieldset_id)
Sets the if of the fieldset which contains the field
| $fieldset_id | id of the fieldset |
| None found |
get_value() : mixed
| None found |
set_value(string $value)
Sets the value
| string | $value | The value |
| None found |
retrieve_value()
Tries to retrieve the value in the HTTP request's parameters.
| None found |
get_html_id() : string
Returns the effective HTML id.
| None found |
is_disabled() : boolean
Tells whether the field is disabled
| None found |
disable()
Disabled the field
| None found |
enable()
Enables the field
| None found |
validate() : boolean
Validates the field by cheching if all the constraints are satisfied.
true if the form is valid
| None found |
get_validation_error_message()
Returns validation error message.
| None found |
set_validation_error_message(string $error_message)
Set the validation error message.
| string | $error_message | The message to set |
| None found |
add_constraint(\FormFieldConstraint $constraint)
Adds a constraint to the field constraints.
| \FormFieldConstraint | $constraint | The constraint to add |
| None found |
add_form_constraint(\FormConstraint $constraint)
Add javascript code on the onblur field parameter that makes validation
| \FormConstraint | $constraint |
| None found |
has_constraints() : boolean
Return true if the field has one or more constraints, false otherwise.
| None found |
get_js_validations() : string
Returns the javascript onsubmit code.
The javascript code that makes the validation when the form is submitted
| None found |