API17

Difference between revisions of "JModelForm::preprocessForm"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JModelForm::preprocessForm|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JModelForm::preprocessForm|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
protected JModelForm::preprocessForm (JForm $form, $data, $group= 'content')
+
protected function preprocessForm (
 +
        JForm $form
 +
        $data
 +
        $group= 'content'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 187 of libraries/joomla/application/component/modelform.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/component/modelform.php (line 187)
 
* see source code in [[jplatform:application/component/modelform.php#cl-187|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JModelForm::preprocessForm source code''' on [[jplatform:application/component/modelform.php#cl-179|BitBucket]]
 +
* {{JVer|11.1}} Class [[JModelForm/11.1|JModelForm]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
 +
* [[JModelForm::preprocessForm|Other versions of JModelForm::preprocessForm]]
 +
{{SeeAlso:JModelForm::preprocessForm}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModelForm::preprocessForm|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JModelForm::preprocessForm|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JModelForm/11.1|JModelForm]]
+
===User contributed notes===
* [[JModelForm::preprocessForm|Other versions of this method]]
 
{{SeeAlso:JModelForm::preprocessForm}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 58: Line 58:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JModelForm]][[Category:JModelForm::preprocessForm]]</noinclude>
 
<noinclude>[[Category:JModelForm]][[Category:JModelForm::preprocessForm]]</noinclude>

Revision as of 21:24, 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 JModelForm::preprocessForm[edit]

Description[edit]

Method to allow derived classes to preprocess the form.

Template:Description:JModelForm::preprocessForm [Edit Descripton]

protected function preprocessForm (
        JForm $form
        $data
        $group= 'content'
)
Parameter Type Default Description
$form Exception if there is an error in the form event.
$data mixed The data expected for the form.
$group string 'content' The name of the plugin group to import (defaults to "content").
  • Returns
  • Defined on line 187 of libraries/joomla/application/component/modelform.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JModelForm::preprocessForm [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />