Difference between revisions of "JControllerForm"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (moving preparation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JControllerForm== | ||
+ | ===Description=== | ||
+ | {{Description:JControllerForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JControllerForm|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JControllerForm|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JControllerForm::__construct | + | |public |
+ | |[[API17:JControllerForm::__construct|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
− | |[[JControllerForm::add | + | |public |
+ | |[[API17:JControllerForm::add|add]] | ||
|Method to add a new record. | |Method to add a new record. | ||
|- | |- | ||
− | |[[JControllerForm::cancel | + | |public |
+ | |[[API17:JControllerForm::cancel|cancel]] | ||
|Method to cancel an edit. | |Method to cancel an edit. | ||
|- | |- | ||
− | |[[JControllerForm::edit | + | |public |
+ | |[[API17:JControllerForm::edit|edit]] | ||
|Method to edit an existing record. | |Method to edit an existing record. | ||
|- | |- | ||
− | |[[JControllerForm::getModel | + | |public |
+ | |[[API17:JControllerForm::getModel|getModel]] | ||
|Method to get a model object, loading it if required. | |Method to get a model object, loading it if required. | ||
|- | |- | ||
− | |[[JControllerForm::save | + | |public |
+ | |[[API17:JControllerForm::save|save]] | ||
|Method to save a record. | |Method to save a record. | ||
|- | |- | ||
− | |[[JControllerForm::allowAdd | + | |protected |
+ | |[[API17:JControllerForm::allowAdd|allowAdd]] | ||
|Method to check if you can add a new record. | |Method to check if you can add a new record. | ||
|- | |- | ||
− | |[[JControllerForm::allowEdit | + | |protected |
+ | |[[API17:JControllerForm::allowEdit|allowEdit]] | ||
|Method to check if you can add a new record. | |Method to check if you can add a new record. | ||
|- | |- | ||
− | |[[JControllerForm::allowSave | + | |protected |
+ | |[[API17:JControllerForm::allowSave|allowSave]] | ||
|Method to check if you can save a new or existing record. | |Method to check if you can save a new or existing record. | ||
|- | |- | ||
− | |[[JControllerForm::getRedirectToItemAppend | + | |protected |
+ | |[[API17:JControllerForm::getRedirectToItemAppend|getRedirectToItemAppend]] | ||
|Gets the URL arguments to append to an item redirect. | |Gets the URL arguments to append to an item redirect. | ||
|- | |- | ||
− | |[[JControllerForm::getRedirectToListAppend | + | |protected |
+ | |[[API17:JControllerForm::getRedirectToListAppend|getRedirectToListAppend]] | ||
|Gets the URL arguments to append to a list redirect. | |Gets the URL arguments to append to a list redirect. | ||
|- | |- | ||
− | |[[JControllerForm::postSaveHook | + | |protected |
+ | |[[API17:JControllerForm::postSaveHook|postSaveHook]] | ||
|Function that allows child controller access to model data after the data has been saved. | |Function that allows child controller access to model data after the data has been saved. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/application/component/controllerform.php | ||
+ | * '''Extends''' [[API17:JController|JController]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.component.controllerform' );</source> | <source lang="php">jimport( 'joomla.application.component.controllerform' );</source> | ||
===See also=== | ===See also=== | ||
− | * [[JControllerForm|Other versions of | + | * {{JVer|11.1}} '''JControllerForm source code''' on [[jplatform:application/component/controllerform.php|BitBucket]] |
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] | ||
+ | * [[API17:JControllerForm|Other versions of JControllerForm]] | ||
{{SeeAlso:JControllerForm}} | {{SeeAlso:JControllerForm}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JControllerForm|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JControllerForm|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 70: | Line 82: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 19:59, 11 May 2013
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.
JControllerForm[edit]
Description[edit]
Template:Description:JControllerForm [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | add | Method to add a new record. |
public | cancel | Method to cancel an edit. |
public | edit | Method to edit an existing record. |
public | getModel | Method to get a model object, loading it if required. |
public | save | Method to save a record. |
protected | allowAdd | Method to check if you can add a new record. |
protected | allowEdit | Method to check if you can add a new record. |
protected | allowSave | Method to check if you can save a new or existing record. |
protected | getRedirectToItemAppend | Gets the URL arguments to append to an item redirect. |
protected | getRedirectToListAppend | Gets the URL arguments to append to a list redirect. |
protected | postSaveHook | Function that allows child controller access to model data after the data has been saved. |
- Defined in libraries/joomla/application/component/controllerform.php
- Extends JController
Importing[edit]
jimport( 'joomla.application.component.controllerform' );
See also[edit]
- JControllerForm source code on BitBucket
- Subpackage Application
- Other versions of JControllerForm
Template:SeeAlso:JControllerForm [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />