Difference between revisions of "JForm::getInstance"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
(Layout updates) |
||
Line 50: | Line 50: | ||
object instance. | object instance. | ||
===Defined in=== | ===Defined in=== | ||
− | libraries/joomla/form/form.php | + | libraries/joomla/form/form.php (line 1678) |
+ | * see source code in [[jplatform:form/form.php#cl-1678|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
− | * [[JModelForm | + | * [[JModelForm::loadForm/11.1|JModelForm::loadForm]] |
===See also=== | ===See also=== | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> |
Revision as of 20:34, 23 April 2011
The "API17" 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.
JForm::getInstance[edit]
Description[edit]
Method to get an instance of a form.
Template:Description:JForm::getInstance [Edit Descripton]
Since[edit]
Synopsis[edit]
public static JForm::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. |
Returns[edit]
object instance.
Defined in[edit]
libraries/joomla/form/form.php (line 1678)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JForm::getInstance
Examples[edit]
<CodeExamplesForm />