JPagination

From Joomla! Documentation

Revision as of 22:50, 3 July 2009 by Chris Davenport (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

The JPagination class supports pagination of lists of items across multiple pages. It can be used in both the front-end and back-end, although there are slight differences in behaviour. The HTML output can be overridden using a template layout override.

Contents

Availability

Joomla 1.5 Joomla 1.6

Defined in

/libraries/joomla/html/pagination.php

Extends

Methods

Method name Description
getData Return the pagination data object, only creating it if it doesn't already exist.
getLimitBox Creates a dropdown box for selecting how many records to show per page.
getListFooter Return the pagination footer.
getPagesCounter Create and return the pagination pages counter string, eg. Page 2 of 4.
getPagesLinks Create and return the pagination page list string, eg. Previous, Next, 1 2 3 ... x.
getRowOffset Return the rationalised offset for a row with a given index.
getResultsCounter Create and return the pagination result set counter string, eg. Results 1-10 of 42.
orderDownIcon Return the icon to move an item down.
orderUpIcon Return the icon to move an item up.

Importing

jimport( 'joomla.html.pagination' );

See also

Personal tools