API17:JModelForm
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
m (→User contributed notes: bad link repair) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|11.1}} JModelForm== | ||
| + | ===Description=== | ||
| + | {{Description:JModelForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JModelForm|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JModelForm|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JModelForm::checkin/11.1|checkin]] | |[[JModelForm::checkin/11.1|checkin]] | ||
|Method to checkin a row. | |Method to checkin a row. | ||
|- | |- | ||
| + | |public | ||
|[[JModelForm::checkout/11.1|checkout]] | |[[JModelForm::checkout/11.1|checkout]] | ||
|Method to check-out a row for editing. | |Method to check-out a row for editing. | ||
|- | |- | ||
| + | |public | ||
|[[JModelForm::getForm/11.1|getForm]] | |[[JModelForm::getForm/11.1|getForm]] | ||
|Abstract method for getting the form from the model. | |Abstract method for getting the form from the model. | ||
|- | |- | ||
| + | |public | ||
|[[JModelForm::validate/11.1|validate]] | |[[JModelForm::validate/11.1|validate]] | ||
|Method to validate the form data. | |Method to validate the form data. | ||
|- | |- | ||
| + | |protected | ||
|[[JModelForm::loadForm/11.1|loadForm]] | |[[JModelForm::loadForm/11.1|loadForm]] | ||
|Method to get a form object. | |Method to get a form object. | ||
|- | |- | ||
| + | |protected | ||
|[[JModelForm::loadFormData/11.1|loadFormData]] | |[[JModelForm::loadFormData/11.1|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 | ||
|[[JModelForm::preprocessForm/11.1|preprocessForm]] | |[[JModelForm::preprocessForm/11.1|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 | ||
| + | * '''Extends''' [[JModel/11.1|JModel]] | ||
| + | * '''Extended by''' | ||
| + | ** [[JModelAdmin/11.1|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=== | ||
| − | * JModelForm source code | + | * {{JVer|11.1}} '''JModelForm source code''' on [[jplatform:application/component/modelform.php|BitBucket]] |
| − | * [[JModelForm|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]] |
| + | * [[JModelForm|Other versions of JModelForm]] | ||
{{SeeAlso:JModelForm}} | {{SeeAlso:JModelForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JModelForm|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JModelForm|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 58: | Line 64: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
| − | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JModelForm]]</noinclude> | + | <noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JModelForm]]</noinclude> |
Revision as of 13:57, 29 August 2012
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JModelForm
Description
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
SeeAlso:JModelForm [Edit See Also]
User contributed notes
<CodeExamplesForm />
