JPagination
Description
Pagination Class. Provides a common interface for content pagination for the Joomla! Framework
Located in /joomla/html/pagination.php (line 26)
JObject (Subpackage Base)
![]()
JPagination (Subpackage HTML)
Variable Summary
Method Summary
string
orderDownIcon
(int $i, int $n, [boolean $condition = true], [string $task = 'orderdown'], [string $alt = 'Move Down'], [ $enabled = true])
string
orderUpIcon
(int $i, [boolean $condition = true], [string $task = 'orderup'], [string $alt = 'Move Up'], [ $enabled = true])
Variables
Methods
Constructor
JPagination
__construct
(int $total, int $limitstart, int $limit)
- int $total: The total number of items
- int $limitstart: The offset of the item to start at
- int $limit: The number of items to display per page
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Return the pagination data object, only creating it if it doesn't already exist
object Pagination
getData
()
Creates a dropdown box for selecting how many records to show per page
string
getLimitBox
()
Create and return the pagination pages counter string, ie. Page 2 of 4
string
getPagesCounter
()
Create and return the pagination page list string, ie. Previous, Next, 1 2 3 ... x
string
getPagesLinks
()
Create and return the pagination result set counter string, ie. Results 1-10 of 42
string
getResultsCounter
()
Return the rationalised offset for a row with a given index.
int
getRowOffset
(int $index)
- int $index: The row index
Return the icon to move an item DOWN
string
orderDownIcon
(int $i, int $n, [boolean $condition = true], [string $task = 'orderdown'], [string $alt = 'Move Down'], [ $enabled = true])
- int $i: The row index
- int $n: The number of items in the list
- boolean $condition: True to show the icon
- string $task: The task to fire
- string $alt: The image alternate text string
- $enabled
Return the icon to move an item UP
string
orderUpIcon
(int $i, [boolean $condition = true], [string $task = 'orderup'], [string $alt = 'Move Up'], [ $enabled = true])
- int $i: The row index
- boolean $condition: True to show the icon
- string $task: The task to fire
- string $alt: The image alternate text string
- $enabled
Create and return the pagination data object
object Pagination
_buildDataObject
()
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Mon, 22 Sep 2008 12:11:21 +0100 by phpDocumentor 1.3.1



