API16:JForm
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JForm}}
===Defined in===
libraries...) |
(→getFieldset) |
||
| Line 71: | Line 71: | ||
|[[API16:JForm/setFields|setFields]] | |[[API16:JForm/setFields|setFields]] | ||
|Method to assign an array of fields to a group. | |Method to assign an array of fields to a group. | ||
| + | |- | ||
| + | |[[API16:JForm/getFieldset|getFieldset]] | ||
| + | |Method to get a set of fields. | ||
|- | |- | ||
|[[API16:JForm/getFieldsets|getFieldsets]] | |[[API16:JForm/getFieldsets|getFieldsets]] | ||
Latest revision as of 04:56, 27 August 2010
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JForm
Contents |
[edit] Defined in
libraries/joomla/form/form.php
[edit] Methods
| Method name | Description |
|---|---|
| getInstance | Method to get an instance of a form. |
| addFormPath | Method to add a path to the list of form include paths. |
| addFieldPath | Method to add a path to the list of field include paths. |
| __construct | Method to construct the object on instantiation. |
| getName | Method to get the form name. |
| setName | Method to set the form name. |
| bind | Method to recursively bind values to form fields. |
| load | Method to load the form description from a file or string. |
| loadFolder | Method to load form descriptions from a complete folder. |
| filter | Method to recursively filter data for form fields. |
| validate | Method to validate form data. |
| addField | Method to add a field to a group. |
| addFields | Method to add an array of fields to a group. |
| getField | Method to get a form field. |
| getFieldAttribute | Method to get a field attribute value. |
| setField | Method to replace a field in a group. |
| removeField | Method to remove a field from a group. |
| setFieldAttribute | Method to set a field attribute value. |
| getFields | Method to get the fields in a group. |
| setFields | Method to assign an array of fields to a group. |
| getFieldset | Method to get a set of fields. |
| getFieldsets | |
| getGroups | Method to get a list of groups. |
| removeGroup | Method to remove a group. |
| getInput | Method to get the input control for a field. |
| getLabel | Method to get the label for a field. |
| getValue | Method to get the value of a field. |
| setValue | Method to set the value of a field. |
| loadFieldsXML | Loads form fields from an XML fields element optionally reseting fields before loading new ones. |
| loadFieldType | Method to load a form field object. |
[edit] Importing
jimport( 'joomla.form.form' );
[edit] Examples
<CodeExamplesForm />
