Actions

API17

Difference between revisions of "JModelAdmin"

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}} JModelAdmin==
 +
===Description===
 +
{{Description:JModelAdmin}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JModelAdmin|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JModelAdmin|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JModelAdmin}}
 
===Defined in===
 
libraries/joomla/application/component/modeladmin.php
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
===Extends===
 
[[JModelForm/11.1|JModelForm]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JModelAdmin::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JModelAdmin::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
|[[JModelAdmin::checkin/11.1|checkin]]
+
|public
 +
|[[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.  
 
|-
 
|-
|[[JModelAdmin::checkout/11.1|checkout]]
+
|public
 +
|[[API17:JModelAdmin::checkout|checkout]]
 
|Method override to check-out a record.  
 
|Method override to check-out a record.  
 
|-
 
|-
|[[JModelAdmin::delete/11.1|delete]]
+
|public
 +
|[[API17:JModelAdmin::delete|delete]]
 
|Method to delete one or more records.  
 
|Method to delete one or more records.  
 
|-
 
|-
|[[JModelAdmin::getItem/11.1|getItem]]
+
|public
 +
|[[API17:JModelAdmin::getItem|getItem]]
 
|Method to get a single record.  
 
|Method to get a single record.  
 
|-
 
|-
|[[JModelAdmin::publish/11.1|publish]]
+
|public
 +
|[[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.  
 
|-
 
|-
|[[JModelAdmin::reorder/11.1|reorder]]
+
|public
 +
|[[API17:JModelAdmin::reorder|reorder]]
 
|Method to adjust the ordering of a row.  
 
|Method to adjust the ordering of a row.  
 
|-
 
|-
|[[JModelAdmin::save/11.1|save]]
+
|public
 +
|[[API17:JModelAdmin::save|save]]
 
|Method to save the form data.  
 
|Method to save the form data.  
 
|-
 
|-
|[[JModelAdmin::saveorder/11.1|saveorder]]
+
|public
 +
|[[API17:JModelAdmin::saveorder|saveorder]]
 
|Saves the manually set order of records.  
 
|Saves the manually set order of records.  
 
|-
 
|-
|[[JModelAdmin::canDelete/11.1|canDelete]]
+
|protected
 +
|[[API17:JModelAdmin::canDelete|canDelete]]
 
|Method to test whether a record can be deleted.  
 
|Method to test whether a record can be deleted.  
 
|-
 
|-
|[[JModelAdmin::canEditState/11.1|canEditState]]
+
|protected
 +
|[[API17:JModelAdmin::canEditState|canEditState]]
 
|Method to test whether a record can be deleted.  
 
|Method to test whether a record can be deleted.  
 
|-
 
|-
|[[JModelAdmin::getReorderConditions/11.1|getReorderConditions]]
+
|protected
 +
|[[API17:JModelAdmin::getReorderConditions|getReorderConditions]]
 
|A protected method to get a set of ordering conditions.  
 
|A protected method to get a set of ordering conditions.  
 
|-
 
|-
|[[JModelAdmin::populateState/11.1|populateState]]
+
|protected
 +
|[[API17:JModelAdmin::populateState|populateState]]
 
|Stock method to auto-populate the model state.  
 
|Stock method to auto-populate the model state.  
 
|-
 
|-
|[[JModelAdmin::prepareTable/11.1|prepareTable]]
+
|protected
 +
|[[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
 +
* '''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===
* [[JModelAdmin|Other versions of this class]]
+
* {{JVer|11.1}} '''JModelAdmin source code''' on [[jplatform:application/component/modeladmin.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
 +
* [[API17:JModelAdmin|Other versions of JModelAdmin]]
 
{{SeeAlso:JModelAdmin}}
 
{{SeeAlso:JModelAdmin}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModelAdmin|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JModelAdmin|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 76: Line 90:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JModelAdmin]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:12, 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 JModelAdmin

Description

Description:JModelAdmin [Edit Descripton]

Methods

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

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

See also

SeeAlso:JModelAdmin [Edit See Also]

User contributed notes

<CodeExamplesForm />