API17

Difference between revisions of "JModelList"

From Joomla! Documentation

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

Revision as of 18:00, 23 April 2011

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.

[Edit Descripton] Template:Description:JModelList

Defined in[edit]

libraries/joomla/application/component/modellist.php

Subpackage[edit]

Application

Extends[edit]

JModel

Extended by[edit]

Methods[edit]

Method name Description
__construct Constructor.
getItems Method to get an array of data items.
getPagination Method to get a object for the data set.
getstart Method to get the starting number of items for the data set.
getTotal Method to get the total number of items for the data set.
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.
getListQuery Method to get a object for retrieving the data set from a database.
getStoreId Method to get a store id based on the model configuration state.
populateState Method to auto-populate the model state.

Importing[edit]

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

See also[edit]

Template:SeeAlso:JModelList [Edit See Also]

Examples[edit]

<CodeExamplesForm />