Field_Email
Extends \Joomla\Form\FieldForm Field class for the Joomla Framework.
Provides and input field for e-mail addresses
link |
http://www.w3.org/TR/html-markup/input.email.html#input.email |
---|---|
see | \Joomla\Form\JFormRuleEmail |
since |
1.0 |
deprecated |
The joomla/form package is deprecated |
Methods
__construct
Method to instantiate the form field object.
__construct(\Joomla\Form\Form $form = null)
__get
Method to get certain otherwise inaccessible properties from the form field object.
__get(string $name) : mixed
since |
1.0 |
---|
Arguments
- $name
string
The property name for which to the the value.
Response
mixed
The property value or null.
getFieldName
Method to get the field name used.
getFieldName(string $fieldName) : string
since |
1.0 |
---|
Arguments
- $fieldName
string
The field element name.
Response
string
The field name
getId
Method to get the id used for the field input tag.
getId(string $fieldId, string $fieldName) : string
since |
1.0 |
---|
Arguments
- $fieldId
string
The field element id.- $fieldName
string
The field element name.
Response
string
The id to be used for the field input tag.
getInput
Method to get the field input markup.
getInput() : string
since |
1.0 |
---|
Response
string
The field input markup.
getLabel
Method to get the field label markup.
getLabel() : string
since |
1.0 |
---|
Response
string
The field label markup.
getName
Method to get the name used for the field input tag.
getName(string $fieldName) : string
since |
1.0 |
---|
Arguments
- $fieldName
string
The field element name.
Response
string
The name to be used for the field input tag.
getTitle
Method to get the field title.
getTitle() : string
since |
1.0 |
---|
Response
string
The field title.
setForm
Method to attach a Form object to the field.
setForm(\Joomla\Form\Form $form) : \Joomla\Form\Field
since |
1.0 |
---|
Arguments
- $form
\Joomla\Form\Form
The Form object to attach to the form field.
Response
\Joomla\Form\Field
The form field object so that the method can be used in a chain.
setup
Method to attach a Form object to the field.
setup(\SimpleXMLElement $element, mixed $value, string $group = null) : boolean
since |
1.0 |
---|
Arguments
- $element
\SimpleXMLElement
The SimpleXMLElement object representing thetag for the form field object. - $value
mixed
The form field value to validate.- $group
string
The field name group control value. This acts as as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".
Response
boolean
True on success.
Properties
type
The form field type.
since |
1.0 |
---|
Type(s)
string
description
The description text for the form field. Usually used in tooltips.
since |
1.0 |
---|
Type(s)
string
element
The SimpleXMLElement object of the
since |
1.0 |
---|
Type(s)
\SimpleXMLElement
form
The Form object of the form attached to the form field.
formControl
The form control prefix for field names from the Form object attached to the form field.
since |
1.0 |
---|
Type(s)
string
translateLabel
True to translate the field label string.
since |
1.0 |
---|
Type(s)
boolean
translateDescription
True to translate the field description string.
since |
1.0 |
---|
Type(s)
boolean
id
The document id for the form field.
since |
1.0 |
---|
Type(s)
string
input
The input for the form field.
since |
1.0 |
---|
Type(s)
string
label
The label for the form field.
since |
1.0 |
---|
Type(s)
string
multiple
The multiple state for the form field. If true then multiple values are allowed for the field. Most often used for list field types.
since |
1.0 |
---|
Type(s)
boolean
name
The name of the form field.
since |
1.0 |
---|
Type(s)
string
fieldname
The name of the field.
since |
1.0 |
---|
Type(s)
string
group
The group of the field.
since |
1.0 |
---|
Type(s)
string
required
The required state for the form field. If true then there must be a value for the field to be considered valid.
since |
1.0 |
---|
Type(s)
boolean
disabled
The disabled state for the form field. If true then there must not be a possibility to change the pre-selected value, and the value must not be submitted by the browser.
since |
1.0 |
---|
Type(s)
boolean
readonly
The readonly state for the form field. If true then there must not be a possibility to change the pre-selected value, and the value must submitted by the browser.
since |
1.0 |
---|
Type(s)
boolean
validate
The validation method for the form field. This value will determine which method is used to validate the value for a field.
since |
1.0 |
---|
Type(s)
string
value
The value of the form field.
since |
1.0 |
---|
Type(s)
mixed
labelClass
The label's CSS class of the form field
since |
1.0 |
---|
Type(s)
mixed
count
The count value for generated name field
since |
1.0 |
---|
Type(s)
integer
generated_fieldname
The string used for generated fields names
since |
1.0 |
---|
Type(s)
string