Actions

API17

Difference between revisions of "JModelAdmin"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/application/component/modeladmin.php
 
libraries/joomla/application/component/modeladmin.php
 +
* see source code in [[jplatform:application/component/modeladmin.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
[[Subpackage Application/11.1|Application]]
Line 63: Line 64:
 
<source lang="php">jimport( 'joomla.application.component.modeladmin' );</source>
 
<source lang="php">jimport( 'joomla.application.component.modeladmin' );</source>
 
===See also===
 
===See also===
 +
* JModelAdmin source code in [[jplatform:application/component/modeladmin.php|BitBucket]]
 
* [[JModelAdmin|Other versions of this class]]
 
* [[JModelAdmin|Other versions of this class]]
 
{{SeeAlso:JModelAdmin}}
 
{{SeeAlso:JModelAdmin}}

Revision as of 17:59, 23 April 2011

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.

[Edit Descripton] Description:JModelAdmin

Defined in

libraries/joomla/application/component/modeladmin.php

Subpackage

Application

Extends

JModelForm

Extended by

Methods

Method name Description
__construct Constructor.
checkin Method override to check-in a record or an array of record.
checkout Method override to check-out a record.
delete Method to delete one or more records.
getItem Method to get a single record.
publish Method to change the published state of one or more records.
reorder Method to adjust the ordering of a row.
save Method to save the form data.
saveorder Saves the manually set order of records.
canDelete Method to test whether a record can be deleted.
canEditState Method to test whether a record can be deleted.
getReorderConditions A protected method to get a set of ordering conditions.
populateState Stock method to auto-populate the model state.
prepareTable Prepare and sanitise the table data prior to saving.

Importing

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

See also

SeeAlso:JModelAdmin [Edit See Also]

Examples

<CodeExamplesForm />