Difference between revisions of "JForm"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JForm}}
===Defined in===
libraries...) |
|||
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]] |
Revision as of 04:56, 27 August 2010
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JForm
Defined in[edit]
libraries/joomla/form/form.php
Methods[edit]
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. |
Importing[edit]
jimport( 'joomla.form.form' );
[Edit See Also] Template:SeeAlso:JForm
Examples[edit]
<CodeExamplesForm />