API17

JModelList: Difference between revisions

From Joomla! Documentation

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

Revision as of 15:53, 24 March 2017

Joomla 11.1 JModelList

Description

{{subst:Description:JModelList}}

Methods

Visibility Method name Description
public __construct Constructor.
public getItems Method to get an array of data items.
public getPagination Method to get a object for the data set.
public getstart Method to get the starting number of items for the data set.
public getTotal Method to get the total number of items for the data set.
public getUserStateFromRequest Gets the value of a user state variable and sets it in the session This is the same as the method in except that this also can optionally force you back to the first page when a filter has changed.
protected getListQuery Method to get a object for retrieving the data set from a database.
protected getStoreId Method to get a store id based on the model configuration state.
protected populateState Method to auto-populate the model state.
  • Defined in libraries/joomla/application/component/modellist.php
  • Extends JModel

Importing

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

See also

{{subst:SeeAlso:JModelList}}

User contributed notes

<CodeExamplesForm />