API17:JModelForm::loadForm
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Updated to r1448:247ba8d88526) |
||
| (One intermediate revision by one user not shown) | |||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JModelForm::loadForm|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JModelForm::loadForm|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<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 50: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''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 [[JModelForm/11.1|JModelForm]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]] | ||
| + | * [[JModelForm::loadForm|Other versions of JModelForm::loadForm]] | ||
| + | {{SeeAlso:JModelForm::loadForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JModelForm::loadForm|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JModelForm::loadForm|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 65: | Line 69: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JModelForm]][[Category:JModelForm::loadForm]]</noinclude> | <noinclude>[[Category:JModelForm]][[Category:JModelForm::loadForm]]</noinclude> | ||
Revision as of 21:24, 27 April 2011
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.
JModelForm::loadForm
Description
Method to get a form object.
Description:JModelForm::loadForm [Edit Descripton]
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
SeeAlso:JModelForm::loadForm [Edit See Also]
User contributed notes
<CodeExamplesForm />
