JModelForm::loadForm: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
Layout updates |
||
| Line 10: | Line 10: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
protected | protected JModelForm::loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 48: | Line 48: | ||
mixed object on success, False on error. | mixed object on success, False on error. | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/application/component/modelform.php | libraries/joomla/application/component/modelform.php (line 122) | ||
* see source code in [[jplatform:application/component/modelform.php#cl-122|BitBucket]] | |||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== | ||
Revision as of 01:59, 24 April 2011
JModelForm::loadForm
Description
Method to get a form object.
Template:Description:JModelForm::loadForm [Edit Descripton]
Synopsis
protected JModelForm::loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | string | The name of the form. | |
| $source | string | null | The form source. Can be XML string if file flag is set to false. |
| $options | array | array() | Optional array of options for the form creation. |
| $clear | boolean | false | Optional argument to force load a new form. |
| $xpath | string | false | An optional xpath to search for the fields. |
Returns
mixed object on success, False on error.
Defined in
libraries/joomla/application/component/modelform.php (line 122)
- see source code in BitBucket
Referenced by
See also
Template:SeeAlso:JModelForm::loadForm
Examples
<CodeExamplesForm />