API17

Difference between revisions of "JForm::setFields"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JForm::setFields|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JForm::setFields|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JForm->setFields (&$elements, $group=null, $replace=true)
+
public function setFields (
 +
        &$elements
 +
        $group=null
 +
        $replace=true
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 902 of libraries/joomla/form/form.php
===Defined in===
 
libraries/joomla/form/form.php
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JForm::setFields source code''' on [[jplatform:form/form.php#cl-894|BitBucket]]
 +
* {{JVer|11.1}} Class [[JForm/11.1|JForm]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Form/11.1|Form]]
 +
* [[JForm::setFields|Other versions of JForm::setFields]]
 +
{{SeeAlso:JForm::setFields}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JForm::setFields|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JForm::setFields|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JForm/11.1|JForm]]
+
===User contributed notes===
* [[JForm::setFields|Other versions of this method]]
 
{{SeeAlso:JForm::setFields}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 55: Line 57:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JForm]][[Category:JForm::setFields]]</noinclude>
 
<noinclude>[[Category:JForm]][[Category:JForm::setFields]]</noinclude>

Revision as of 21:00, 27 April 2011

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JForm::setFields[edit]

Description[edit]

Method to set some field XML elements to the form definition.

Template:Description:JForm::setFields [Edit Descripton]

public function setFields (
        &$elements
        $group=null
        $replace=true
)
Parameter Type Default Description
&$elements
$group null
$replace true
  • Returns
  • Defined on line 902 of libraries/joomla/form/form.php

See also[edit]

Template:SeeAlso:JForm::setFields [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />