API17

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/11.1|__construct]]
+
|[[API17:JModelAdmin::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
 
|public  
 
|public  
|[[JModelAdmin::checkin/11.1|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/11.1|checkout]]
+
|[[API17:JModelAdmin::checkout|checkout]]
 
|Method override to check-out a record.  
 
|Method override to check-out a record.  
 
|-
 
|-
 
|public  
 
|public  
|[[JModelAdmin::delete/11.1|delete]]
+
|[[API17:JModelAdmin::delete|delete]]
 
|Method to delete one or more records.  
 
|Method to delete one or more records.  
 
|-
 
|-
 
|public  
 
|public  
|[[JModelAdmin::getItem/11.1|getItem]]
+
|[[API17:JModelAdmin::getItem|getItem]]
 
|Method to get a single record.  
 
|Method to get a single record.  
 
|-
 
|-
 
|public  
 
|public  
|[[JModelAdmin::publish/11.1|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/11.1|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/11.1|save]]
+
|[[API17:JModelAdmin::save|save]]
 
|Method to save the form data.  
 
|Method to save the form data.  
 
|-
 
|-
 
|public  
 
|public  
|[[JModelAdmin::saveorder/11.1|saveorder]]
+
|[[API17:JModelAdmin::saveorder|saveorder]]
 
|Saves the manually set order of records.  
 
|Saves the manually set order of records.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JModelAdmin::canDelete/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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>[[Category:Platform]][[Category:Platform 11.1]][[Category:JModelAdmin]]</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.

Joomla 11.1 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]

Template:SeeAlso:JModelAdmin [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />