Actions

API17

Difference between revisions of "JForm::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JForm::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JForm::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JForm::getInstance ($name, $data=null, $options=array(), $replace=true, $xpath=false)
+
public static function getInstance (
 +
        $name
 +
        $data=null
 +
        $options=array
 +
        $replace=true
 +
        $xpath=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 47: Line 50:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object  instance.
object  instance.
+
* '''Defined''' on line 1688 of libraries/joomla/form/form.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/form/form.php (line 1678)
+
* '''Referenced by'''
* see source code in [[jplatform:form/form.php#cl-1678|BitBucket]]
+
** [[JModelForm::loadForm/11.1|JModelForm::loadForm]]
===Referenced by===
+
* [[JModelForm::loadForm/11.1|JModelForm::loadForm]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JForm::getInstance source code''' on [[jplatform:form/form.php#cl-1680|BitBucket]]
 +
* {{JVer|11.1}} Class [[JForm/11.1|JForm]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Form/11.1|Form]]
 +
* [[JForm::getInstance|Other versions of JForm::getInstance]]
 +
{{SeeAlso:JForm::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JForm::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JForm::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JForm/11.1|JForm]]
+
===User contributed notes===
* [[JForm::getInstance|Other versions of this method]]
+
{{SeeAlso:JForm::getInstance}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 69: Line 72:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JForm]][[Category:JForm::getInstance]]</noinclude>
 
<noinclude>[[Category:JForm]][[Category:JForm::getInstance]]</noinclude>

Revision as of 19:59, 27 April 2011

Replacement filing cabinet.png
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.

Joomla 11.1 JForm::getInstance

Description

Method to get an instance of a form.

Description:JForm::getInstance [Edit Descripton]

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.
  • Returns object instance.
  • Defined on line 1688 of libraries/joomla/form/form.php
  • Since Joomla 11.1
  • Referenced by

See also

SeeAlso:JForm::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />