Actions

API17

Difference between revisions of "JControllerForm"

From Joomla! Documentation

m (JoomlaWikiBot moved page JControllerForm/11.1 to API17:JControllerForm without leaving a redirect: Robot: Moved page)
m (moving preparation)
 
(One intermediate revision by one user not shown)
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::__construct/11.1|__construct]]
+
|[[API17:JControllerForm::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::add/11.1|add]]
+
|[[API17:JControllerForm::add|add]]
 
|Method to add a new record.  
 
|Method to add a new record.  
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::cancel/11.1|cancel]]
+
|[[API17:JControllerForm::cancel|cancel]]
 
|Method to cancel an edit.  
 
|Method to cancel an edit.  
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::edit/11.1|edit]]
+
|[[API17:JControllerForm::edit|edit]]
 
|Method to edit an existing record.  
 
|Method to edit an existing record.  
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::getModel/11.1|getModel]]
+
|[[API17:JControllerForm::getModel|getModel]]
 
|Method to get a model object, loading it if required.  
 
|Method to get a model object, loading it if required.  
 
|-
 
|-
 
|public  
 
|public  
|[[JControllerForm::save/11.1|save]]
+
|[[API17:JControllerForm::save|save]]
 
|Method to save a record.  
 
|Method to save a record.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::allowAdd/11.1|allowAdd]]
+
|[[API17:JControllerForm::allowAdd|allowAdd]]
 
|Method to check if you can add a new record.  
 
|Method to check if you can add a new record.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::allowEdit/11.1|allowEdit]]
+
|[[API17:JControllerForm::allowEdit|allowEdit]]
 
|Method to check if you can add a new record.  
 
|Method to check if you can add a new record.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::allowSave/11.1|allowSave]]
+
|[[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.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::getRedirectToItemAppend/11.1|getRedirectToItemAppend]]
+
|[[API17:JControllerForm::getRedirectToItemAppend|getRedirectToItemAppend]]
 
|Gets the URL arguments to append to an item redirect.  
 
|Gets the URL arguments to append to an item redirect.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::getRedirectToListAppend/11.1|getRedirectToListAppend]]
+
|[[API17:JControllerForm::getRedirectToListAppend|getRedirectToListAppend]]
 
|Gets the URL arguments to append to a list redirect.  
 
|Gets the URL arguments to append to a list redirect.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JControllerForm::postSaveHook/11.1|postSaveHook]]
+
|[[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
 
* '''Defined in''' libraries/joomla/application/component/controllerform.php
* '''Extends''' [[JController/11.1|JController]]
+
* '''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===
 
* {{JVer|11.1}} '''JControllerForm source code''' on [[jplatform:application/component/controllerform.php|BitBucket]]
 
* {{JVer|11.1}} '''JControllerForm source code''' on [[jplatform:application/component/controllerform.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JControllerForm|Other versions of JControllerForm]]
+
* [[API17:JControllerForm|Other versions of JControllerForm]]
 
{{SeeAlso:JControllerForm}}
 
{{SeeAlso:JControllerForm}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 85: Line 85:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JControllerForm]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 19:59, 11 May 2013

Replacement filing cabinet.png
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.

Joomla 11.1 JControllerForm

Description

Description:JControllerForm [Edit Descripton]

Methods

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

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

See also

SeeAlso:JControllerForm [Edit See Also]

User contributed notes

<CodeExamplesForm />