JModelForm::loadForm: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Method to get a form object. | Method to get a form object. | ||
<source lang="php"> | <source lang="php"> | ||
protected | protected function loadForm ( | ||
$name | |||
$source=null | |||
$options=array | |||
$clear=false | |||
$xpath=false | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 45: | Line 48: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' mixed object on success, False on error. | |||
mixed object on success, False on error. | * '''Defined''' on line 122 of libraries/joomla/application/component/modelform.php | ||
libraries/joomla/application/component/modelform.php | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JModelForm::loadForm source code''' on [[jplatform:application/component/modelform.php#cl-114|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JModelForm|JModelForm]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]] | |||
* | * [[API17:JModelForm::loadForm|Other versions of JModelForm::loadForm]] | ||
* [[JModelForm::loadForm|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JModelForm::loadForm | category=JModelForm::loadForm | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:28, 25 March 2017
JModelForm::loadForm
Description
Method to get a form object.
protected function 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 on line 122 of libraries/joomla/application/component/modelform.php
See also
JModelForm::loadForm source code on BitBucket
Class JModelForm
Subpackage Application- Other versions of JModelForm::loadForm
User contributed notes
Code Examples