API17:JForm::getInstance
From Joomla! Documentation
JForm::getInstance
Description
Method to get an instance of a form.
public static function getInstance (
$name
$data=null
$options=array
$replace=true
$xpath=false
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | Exception | if an error occurs. | |
| $data | string | null | The name of an XML file or string to load as the form definition. |
| $options | array | array() | An array of form options. |
| $replace | string | true | Flag to toggle whether form fields should be replaced if a field already exists with the same group/name. |
| $xpath | string | false | An optional xpath to search for the fields. |
See also
JForm::getInstance source code on BitBucket
Class JForm
Subpackage Form- Other versions of JForm::getInstance
User contributed notes
Code Examples