API17

JControllerForm: Difference between revisions

From Joomla! Documentation

m moving preparation
m clean up
Line 2: Line 2:
=={{JVer|11.1}} JControllerForm==
=={{JVer|11.1}} JControllerForm==
===Description===
===Description===
{{Description:JControllerForm}}
{{subst:Description:JControllerForm}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JControllerForm|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
Line 70: Line 68:
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[API17:JControllerForm|Other versions of JControllerForm]]
* [[API17:JControllerForm|Other versions of JControllerForm]]
{{SeeAlso:JControllerForm}}
{{subst:SeeAlso:JControllerForm}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JControllerForm|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 14:57, 24 March 2017

Joomla 11.1 JControllerForm

Description

{{subst:Description:JControllerForm}}

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

{{subst:SeeAlso:JControllerForm}}

User contributed notes

<CodeExamplesForm />