Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__get ($name) | |
__set ($name, $value) | |
setup (\SimpleXMLElement $element, $value, $group=null) | |
loadSubForm () | |
filter ($value, $group=null, Registry $input=null) | |
Fonctions membres publiques hérités de FormField | |
__construct ($form=null) | |
__get ($name) | |
__set ($name, $value) | |
setForm (Form $form) | |
setup (\SimpleXMLElement $element, $value, $group=null) | |
setValue ($value) | |
getAttribute ($name, $default=null) | |
getDataAttributes () | |
renderDataAttributes () | |
render ($layoutId, $data=array()) | |
renderField ($options=array()) | |
filter ($value, $group=null, Registry $input=null) | |
validate ($value, $group=null, Registry $input=null) | |
postProcess ($value, $group=null, Registry $input=null) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres protégées | |
getInput () | |
getName ($fieldName) | |
loadSubFormData (Form $subForm) | |
Fonctions membres protégées hérités de FormField | |
getId ($fieldId, $fieldName) | |
getInput () | |
getTitle () | |
getLabel () | |
getName ($fieldName) | |
getFieldName ($fieldName) | |
getLayoutData () | |
getLayoutPaths () | |
getRenderer ($layoutId='default') | |
isDebugEnabled () | |
Attributs protégés | |
$type = 'Subform' | |
$formsource | |
$min = 0 | |
$max = 1000 | |
$layout = 'joomla.form.field.subform.default' | |
$groupByFieldset = false | |
$buttons = array('add' => true, 'remove' => true, 'move' => true) | |
Attributs protégés hérités de FormField | |
$description | |
$hint | |
$autocomplete = 'on' | |
$spellcheck = true | |
$autofocus = false | |
$element | |
$form | |
$formControl | |
$hidden = false | |
$hiddenLabel = false | |
$hiddenDescription = false | |
$translateLabel = true | |
$translateDescription = true | |
$translateHint = true | |
$id | |
$input | |
$label | |
$multiple = false | |
$pattern | |
$validationtext | |
$name | |
$fieldname | |
$group | |
$required = false | |
$disabled = false | |
$readonly = false | |
$type | |
$validate | |
$value | |
$default | |
$size | |
$class | |
$labelclass | |
$onchange | |
$onclick | |
$showon | |
$parentclass | |
$layout | |
$renderLayout = 'joomla.form.renderfield' | |
$renderLabelLayout = 'joomla.form.renderlabel' | |
$dataAttributes = array() | |
Membres hérités additionnels | |
Champs de données hérités de FormField | |
$repeat = false | |
Attributs protégés statiques hérités de FormField | |
static | $count = 0 |
static | $generated_fieldname = '__field' |
The Field to load the form inside current form
with all attributes: <field name="field-name" type="subform" formsource="path/to/form.xml" min="1" max="3" multiple="true" buttons="add,remove,move" layout="joomla.form.field.subform.repeatable-table" groupbyfieldset="false" component="com_example" client="site" label="Field Label" description="Field Description">
__get | ( | $name | ) |
Method to get certain otherwise inaccessible properties from the form field object.
string | $name | The property name for which to get the value. |
Références $name.
__set | ( | $name, | |
$value | |||
) |
Method to set certain otherwise inaccessible properties of the form field object.
string | $name | The property name for which to set the value. |
mixed | $value | The value of the property. |
Références $name, $value, Path\clean(), JPATH_ROOT, null, et value.
Method to filter a field value.
mixed | $value | The optional value to use as the default for the field. |
string | $group | The optional dot-separated form group path on which to find the field. |
Registry | $input | An optional Registry object with the entire data set to filter against the entire form. |
Références $input, $key, $return, $this, $val, $value, et null.
|
protected |
Method to get the field input markup.
For each rendering process of a subform element, we want to have a separate unique subform id present to could distinguish the eventhandlers regarding adding/moving/removing rows from nested subforms from their parents.
Références $buttons, $control, $data, $html, $id, $name, $renderer, $tmpl, name, et null.
|
protected |
loadSubForm | ( | ) |
|
protected |
Binds given data to the subform and its elements.
Références $c, $control, $i, $value, Form\bind(), Form\getInstance(), Form\getName(), name, et value.
setup | ( | \SimpleXMLElement | $element, |
$value, | |||
$group = null |
|||
) |
Method to attach a Form object to the field.
\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. |
Which buttons to show in multiple mode
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |