Abstract Form Field class for the Joomla Platform.
- Depuis
- 1.7.0
◆ __construct()
__construct |
( |
|
$form = null | ) |
|
◆ __get()
Method to get certain otherwise inaccessible properties from the form field object.
- Paramètres
-
string | $name | The property name for which to get the value. |
- Renvoie
- mixed The property value or null.
- Depuis
- 1.7.0
Références $input, $label, et $name.
◆ __set()
Method to set certain otherwise inaccessible properties of the form field object.
- Paramètres
-
string | $name | The property name for which to set the value. |
mixed | $value | The value of the property. |
- Renvoie
- void
- Depuis
- 3.2
Références $name, $value, et name.
◆ getAttribute()
getAttribute |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
Method to get an attribute of the field
- Paramètres
-
string | $name | Name of the attribute to get |
mixed | $default | Optional value to return if attribute not found |
- Renvoie
- mixed Value of the attribute / default
- Depuis
- 3.2
Références $attributes, $default, et null.
◆ getControlGroup()
Method to get a control group with label and input.
- Renvoie
- string A string containing the html for the control group
- Depuis
- 3.2
- Obsolète:
- 3.2.3 Use renderField() instead
◆ getFieldName()
getFieldName |
( |
|
$fieldName | ) |
|
|
protected |
Method to get the field name used.
- Paramètres
-
string | $fieldName | The field element name. |
- Renvoie
- string The field name
- Depuis
- 1.7.0
Références $count.
◆ getId()
getId |
( |
|
$fieldId, |
|
|
|
$fieldName |
|
) |
| |
|
protected |
Method to get the id used for the field input tag.
- Paramètres
-
string | $fieldId | The field element id. |
string | $fieldName | The field element name. |
- Renvoie
- string The id to be used for the field input tag.
- Depuis
- 1.7.0
Références $id.
◆ getInput()
Method to get the field input markup.
- Renvoie
- string The field input markup.
- Depuis
- 1.7.0
Références name.
◆ getLabel()
Method to get the field label markup.
- Renvoie
- string The field label markup.
- Depuis
- 1.7.0
Références $data, et $position.
◆ getLayoutData()
◆ getLayoutPaths()
Allow to override renderer include paths in child fields
- Renvoie
- array
- Depuis
- 3.5
Références $renderer.
◆ getName()
Method to get the name used for the field input tag.
- Paramètres
-
string | $fieldName | The field element name. |
- Renvoie
- string The name to be used for the field input tag.
- Depuis
- 1.7.0
Références $groups, et $name.
◆ getRenderer()
getRenderer |
( |
|
$layoutId = 'default' | ) |
|
|
protected |
Get the renderer
- Paramètres
-
string | $layoutId | Id to load |
- Renvoie
- FileLayout
- Depuis
- 3.5
Références $renderer.
◆ getTitle()
Method to get the field title.
- Renvoie
- string The field title.
- Depuis
- 1.7.0
Références $title.
◆ isDebugEnabled()
Is debug enabled for this field
- Renvoie
- boolean
- Depuis
- 3.5
◆ render()
render |
( |
|
$layoutId, |
|
|
|
$data = array() |
|
) |
| |
Render a layout of this field
- Paramètres
-
string | $layoutId | Layout identifier |
array | $data | Optional data for the layout |
- Renvoie
- string
- Depuis
- 3.5
Références $data.
◆ renderField()
renderField |
( |
|
$options = array() | ) |
|
◆ setForm()
Method to attach a JForm object to the field.
- Paramètres
-
Form | $form | The JForm object to attach to the form field. |
- Renvoie
- FormField The form field object so that the method can be used in a chain.
- Depuis
- 1.7.0
Références $form.
◆ setup()
setup |
( |
\SimpleXMLElement |
$element, |
|
|
|
$value, |
|
|
|
$group = null |
|
) |
| |
Method to attach a JForm object to the field.
- Paramètres
-
\SimpleXMLElement | $element | The SimpleXMLElement object representing the <field> tag for the form field object. |
mixed | $value | The form field value to validate. |
string | $group | 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]". |
- Renvoie
- boolean True on success.
- Depuis
- 1.7.0
Références $attributes, $value, null, et value.
◆ setValue()
Simple method to set the value
- Paramètres
-
- Renvoie
- void
- Depuis
- 3.2
Références $value, et value.
◆ $autocomplete
◆ $autofocus
◆ $class
◆ $count
◆ $default
◆ $description
◆ $disabled
◆ $element
◆ $fieldname
◆ $form
◆ $formControl
◆ $generated_fieldname
$generated_fieldname = '__field' |
|
staticprotected |
◆ $group
◆ $hidden
◆ $hint
◆ $id
◆ $input
◆ $label
◆ $labelclass
◆ $layout
◆ $multiple
◆ $name
◆ $onchange
◆ $onclick
◆ $pattern
◆ $readonly
◆ $renderLabelLayout
$renderLabelLayout = 'joomla.form.renderlabel' |
|
protected |
◆ $renderLayout
$renderLayout = 'joomla.form.renderfield' |
|
protected |
◆ $repeat
◆ $required
◆ $showon
◆ $size
◆ $spellcheck
◆ $translateDescription
$translateDescription = true |
|
protected |
◆ $translateHint
◆ $translateLabel
◆ $type
◆ $validate
◆ $validationtext
◆ $value
La documentation de cette classe a été générée à partir du fichier suivant :