API17

JModelForm::preprocessForm: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
m preparing for archive only
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Method to allow derived classes to preprocess the form.  
Method to allow derived classes to preprocess the form.  


{{Description:JModelForm::preprocessForm}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JModelForm::preprocessForm|Edit Descripton]]<nowiki>]</nowiki>
</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 36:
|-
|-
|}
|}
===Returns===
* '''Returns'''
* '''Defined''' on line 187 of libraries/joomla/application/component/modelform.php
* '''Since''' {{JVer|11.1 }}
===See also===
* {{JVer|11.1}} '''JModelForm::preprocessForm source code''' on [[jplatform:application/component/modelform.php#cl-179|BitBucket]]
* {{JVer|11.1}} Class [[API17:JModelForm|JModelForm]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[API17:JModelForm::preprocessForm|Other versions of JModelForm::preprocessForm]]


===Defined in===
 
libraries/joomla/application/component/modelform.php (line 187)
===User contributed notes===
* see source code in [[jplatform:application/component/modelform.php#cl-187|BitBucket]]
=== Code Examples ===
===Referenced by===
===See also===
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JModelForm::preprocessForm|Edit See Also]]<nowiki>]</nowiki>
</span>
* [[JModelForm/11.1|JModelForm]]
* [[JModelForm::preprocessForm|Other versions of this method]]
{{SeeAlso:JModelForm::preprocessForm}}
===Examples===
<CodeExamplesForm />
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JModelForm::preprocessForm
category=JModelForm::preprocessForm
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JModelForm]][[Category:JModelForm::preprocessForm]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:28, 25 March 2017

Joomla 11.1 JModelForm::preprocessForm

Description

Method to allow derived classes to preprocess the form.


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


User contributed notes

Code Examples