Difference between revisions of "JModelAdmin"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (moving preparation) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::__construct | + | |[[API17:JModelAdmin::__construct|__construct]] |
|Constructor. | |Constructor. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::checkin | + | |[[API17:JModelAdmin::checkin|checkin]] |
|Method override to check-in a record or an array of record. | |Method override to check-in a record or an array of record. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::checkout | + | |[[API17:JModelAdmin::checkout|checkout]] |
|Method override to check-out a record. | |Method override to check-out a record. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::delete | + | |[[API17:JModelAdmin::delete|delete]] |
|Method to delete one or more records. | |Method to delete one or more records. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::getItem | + | |[[API17:JModelAdmin::getItem|getItem]] |
|Method to get a single record. | |Method to get a single record. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::publish | + | |[[API17:JModelAdmin::publish|publish]] |
|Method to change the published state of one or more records. | |Method to change the published state of one or more records. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::reorder | + | |[[API17:JModelAdmin::reorder|reorder]] |
|Method to adjust the ordering of a row. | |Method to adjust the ordering of a row. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::save | + | |[[API17:JModelAdmin::save|save]] |
|Method to save the form data. | |Method to save the form data. | ||
|- | |- | ||
|public | |public | ||
− | |[[JModelAdmin::saveorder | + | |[[API17:JModelAdmin::saveorder|saveorder]] |
|Saves the manually set order of records. | |Saves the manually set order of records. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JModelAdmin::canDelete | + | |[[API17:JModelAdmin::canDelete|canDelete]] |
|Method to test whether a record can be deleted. | |Method to test whether a record can be deleted. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JModelAdmin::canEditState | + | |[[API17:JModelAdmin::canEditState|canEditState]] |
|Method to test whether a record can be deleted. | |Method to test whether a record can be deleted. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JModelAdmin::getReorderConditions | + | |[[API17:JModelAdmin::getReorderConditions|getReorderConditions]] |
|A protected method to get a set of ordering conditions. | |A protected method to get a set of ordering conditions. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JModelAdmin::populateState | + | |[[API17:JModelAdmin::populateState|populateState]] |
|Stock method to auto-populate the model state. | |Stock method to auto-populate the model state. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JModelAdmin::prepareTable | + | |[[API17:JModelAdmin::prepareTable|prepareTable]] |
|Prepare and sanitise the table data prior to saving. | |Prepare and sanitise the table data prior to saving. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/application/component/modeladmin.php | * '''Defined in''' libraries/joomla/application/component/modeladmin.php | ||
− | * '''Extends''' [[JModelForm | + | * '''Extends''' [[API17:JModelForm|JModelForm]] |
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.component.modeladmin' );</source> | <source lang="php">jimport( 'joomla.application.component.modeladmin' );</source> | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JModelAdmin source code''' on [[jplatform:application/component/modeladmin.php|BitBucket]] | * {{JVer|11.1}} '''JModelAdmin source code''' on [[jplatform:application/component/modeladmin.php|BitBucket]] | ||
− | * {{JVer|11.1}} Subpackage [[Subpackage Application | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] |
− | * [[JModelAdmin|Other versions of JModelAdmin]] | + | * [[API17:JModelAdmin|Other versions of JModelAdmin]] |
{{SeeAlso:JModelAdmin}} | {{SeeAlso:JModelAdmin}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Line 93: | Line 93: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:12, 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.
JModelAdmin[edit]
Description[edit]
Template:Description:JModelAdmin [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Constructor. |
public | checkin | Method override to check-in a record or an array of record. |
public | checkout | Method override to check-out a record. |
public | delete | Method to delete one or more records. |
public | getItem | Method to get a single record. |
public | publish | Method to change the published state of one or more records. |
public | reorder | Method to adjust the ordering of a row. |
public | save | Method to save the form data. |
public | saveorder | Saves the manually set order of records. |
protected | canDelete | Method to test whether a record can be deleted. |
protected | canEditState | Method to test whether a record can be deleted. |
protected | getReorderConditions | A protected method to get a set of ordering conditions. |
protected | populateState | Stock method to auto-populate the model state. |
protected | prepareTable | Prepare and sanitise the table data prior to saving. |
- Defined in libraries/joomla/application/component/modeladmin.php
- Extends JModelForm
Importing[edit]
jimport( 'joomla.application.component.modeladmin' );
See also[edit]
- JModelAdmin source code on BitBucket
- Subpackage Application
- Other versions of JModelAdmin
Template:SeeAlso:JModelAdmin [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />