JModelForm: Difference between revisions
From Joomla! Documentation
m →User contributed notes: moving preparation |
m moving preparation |
||
| Line 14: | Line 14: | ||
|- | |- | ||
|public | |public | ||
|[[JModelForm::checkin | |[[API17:JModelForm::checkin|checkin]] | ||
|Method to checkin a row. | |Method to checkin a row. | ||
|- | |- | ||
|public | |public | ||
|[[JModelForm::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 | |[[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 | |[[API17:JModelForm::validate|validate]] | ||
|Method to validate the form data. | |Method to validate the form data. | ||
|- | |- | ||
|protected | |protected | ||
|[[JModelForm::loadForm | |[[API17:JModelForm::loadForm|loadForm]] | ||
|Method to get a form object. | |Method to get a form object. | ||
|- | |- | ||
|protected | |protected | ||
|[[JModelForm::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 | |[[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 | * '''Extends''' [[API17:JModel|JModel]] | ||
* '''Extended by''' | * '''Extended by''' | ||
** [[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 | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] | ||
* [[JModelForm|Other versions of JModelForm]] | * [[API17:JModelForm|Other versions of JModelForm]] | ||
{{SeeAlso:JModelForm}} | {{SeeAlso:JModelForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 02:13, 12 May 2013
JModelForm
Description
Template:Description:JModelForm [Edit Descripton]
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
JModelForm source code on BitBucket
Subpackage Application- Other versions of JModelForm
Template:SeeAlso:JModelForm [Edit See Also]
User contributed notes
<CodeExamplesForm />