Actions

API17

Difference between revisions of "JModelForm::loadForm"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JModelForm::loadForm|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JModelForm::loadForm|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
protected JModelForm::loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false)
+
protected function loadForm (
 +
        $name
 +
        $source=null
 +
        $options=array
 +
        $clear=false
 +
        $xpath=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 45: Line 50:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''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
===Defined in===
+
libraries/joomla/application/component/modelform.php (line 122)
+
* see source code in [[jplatform:application/component/modelform.php#cl-122|BitBucket]]
+
===Referenced by===
+
 
===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>
* [[JModelForm/11.1|JModelForm]]
+
===User contributed notes===
* [[JModelForm::loadForm|Other versions of this method]]
+
{{SeeAlso:JModelForm::loadForm}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 66: 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

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 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

SeeAlso:JModelForm::loadForm [Edit See Also]

User contributed notes

<CodeExamplesForm />