API17

JModelForm: Difference between revisions

From Joomla! Documentation

m →User contributed notes: bad link repair
m preparing for archive only
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
=={{JVer|11.1}} JModelForm==
=={{JVer|11.1}} JModelForm==
===Description===
===Description===
{{Description:JModelForm}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JModelForm|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
Line 14: Line 12:
|-
|-
|public  
|public  
|[[JModelForm::checkin/11.1|checkin]]
|[[API17:JModelForm::checkin|checkin]]
|Method to checkin a row.  
|Method to checkin a row.  
|-
|-
|public  
|public  
|[[JModelForm::checkout/11.1|checkout]]
|[[API17:JModelForm::checkout|checkout]]
|Method to check-out a row for editing.  
|Method to check-out a row for editing.  
|-
|-
|public  
|public  
|[[JModelForm::getForm/11.1|getForm]]
|[[API17:JModelForm::getForm|getForm]]
|Abstract method for getting the form from the model.  
|Abstract method for getting the form from the model.  
|-
|-
|public  
|public  
|[[JModelForm::validate/11.1|validate]]
|[[API17:JModelForm::validate|validate]]
|Method to validate the form data.  
|Method to validate the form data.  
|-
|-
|protected  
|protected  
|[[JModelForm::loadForm/11.1|loadForm]]
|[[API17:JModelForm::loadForm|loadForm]]
|Method to get a form object.  
|Method to get a form object.  
|-
|-
|protected  
|protected  
|[[JModelForm::loadFormData/11.1|loadFormData]]
|[[API17:JModelForm::loadFormData|loadFormData]]
|Method to get the data that should be injected in the form.  
|Method to get the data that should be injected in the form.  
|-
|-
|protected  
|protected  
|[[JModelForm::preprocessForm/11.1|preprocessForm]]
|[[API17:JModelForm::preprocessForm|preprocessForm]]
|Method to allow derived classes to preprocess the form.  
|Method to allow derived classes to preprocess the form.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/application/component/modelform.php
* '''Defined in''' libraries/joomla/application/component/modelform.php
* '''Extends''' [[JModel/11.1|JModel]]
* '''Extends''' [[API17:JModel|JModel]]
* '''Extended by'''
* '''Extended by'''
** [[JModelAdmin/11.1|JModelAdmin]]
** [[API17:JModelAdmin|JModelAdmin]]
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.application.component.modelform' );</source>
<source lang="php">jimport( 'joomla.application.component.modelform' );</source>
===See also===
===See also===
* {{JVer|11.1}} '''JModelForm source code''' on [[jplatform:application/component/modelform.php|BitBucket]]
* {{JVer|11.1}} '''JModelForm source code''' on [[jplatform:application/component/modelform.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JModelForm|Other versions of JModelForm]]
* [[API17:JModelForm|Other versions of JModelForm]]
{{SeeAlso:JModelForm}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModelForm|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JModelForm
category=JModelForm
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*
Line 67: Line 63:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JModelForm]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:27, 25 March 2017

Joomla 11.1 JModelForm

Description

Methods

Visibility Method name Description
public checkin Method to checkin a row.
public checkout Method to check-out a row for editing.
public getForm Abstract method for getting the form from the model.
public validate Method to validate the form data.
protected loadForm Method to get a form object.
protected loadFormData Method to get the data that should be injected in the form.
protected preprocessForm Method to allow derived classes to preprocess the form.
  • Defined in libraries/joomla/application/component/modelform.php
  • Extends JModel
  • Extended by

Importing

jimport( 'joomla.application.component.modelform' );

See also


User contributed notes

Code Examples